Say I have the following powershell script: $hello = "Hello World" Write-Output $hello When I run it I get Hello World Then I decide that I want my variable
I'm trying to automatize the process of storing BitLocker Keys to ADDS. I wanna be able to run the following script at logon, in order to do that, as the OS is
I wondering how to make the following powershell code work with regular expressions. For example I want to call it like this: rename_file -OneFile proj1_file.t
1. Problem I have a complicated batch file where some parts need to run with elevated/admin rights (e.g. interacting with Windows services) and I found a Powers
I am searching for how to connect to my rest API with a Powershell script I know that I need a to send my Body with the POST Method but cant define how to do it
I'm trying to write a simple Script, in PowerShell using EWS managed API. The premise is I need to establish connection with our Enterprise Office365 Exchange e
I have a progress bar that is run when a job is done. Unfortunately, the progress bar is partially hidden. This is the code: Add-Type -AssemblyName System.Windo
I am trying to use Invoke-MgGraphRequest to convert immutableEntryIds to ewsIDs. I have been following Microsoft's documentation and have created the following
When I use a Workflow, only the functions directly called in the Workflow get loaded from the calling script. When dot-sourcing the following script and call Ma
I'm loading a regex from a file into a database using a stored procedure, like this: $stuff = Get-Content -Path '.\data.txt' -Raw Invoke-Sqlcmd -Query "Exec dbo
I'm using PowerShell 5.1, and I want to store some colored text into a variable. I'm aware that you can use Write-Host to print out some colored strings into th
How should one add the PowerShell package as a Native dependency? In spite of adding it one is unable to run basic PowerShell commands to show output on the scr
I have code in shell script, but can't figure out how to parse line by line in column. If person is absent I want to send email. if person is late than hour the
I'm creating a NetSec project to read Chrome information, but the Powershell Unprotect Function returns an unknown error code while trying to read the AES encry
Problem I have a Windows 10 machine with Powershell 7. I wrote the following logic to sign into azure using a service principle: $Secure2 = ConvertTo-SecureStr
I am trying to start an application from Azure Pipelines YAML using Powershell. I want the app to start with a non-administrator account, while the Azure Pipeli
I have two html files containing vm information like os details, memory, network details etc. in table format for pre and post migration. For final analysis I n
How can I force conversion to type System.Version in PowerShell, or more likely, better understand why I cannot arbitrarily assign number strings type System.Ve
I am trying to create a PowerShell script that adds two leading zeros to all the numbers in a particular column.This script is able to add the two zeros to the
I have the following script to apply a DESKLESS license Connect-MsolService Import-Csv 'C:\users.CSV' | foreach {Set-MsolUser -UserPrincipalName $_.EmailAdress