I'm running the following MSBuild command from PowerShell to publish a solution file: $Configuration = "Release" $slnFullPath = "...\Solution.sln"; $PublishPath
I'm trying to write a simple script which automatically cycles tabs on 2 different edge windows, I have it working on one window in the code below while(1 -eq 1
In the PNP Docs it shows: https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#example-13 you can access the resource with an Oauth2 AccessToken: Con
I try to open a React project path in terminal window using VS Code's Open in Integrated Terminal (Ctrl+Shift+`), but it sets C:\Windows\System32\WindowsPowerSh
Since IE11 is retiring soon, I was attempting to re-write my PS Scripts to automate MS Edge. I have searched online and apparently I need edgedriver_win64 and a
I have a shell script file. ./1.ps1 ./2.ps1 I generate a string such as env-0 in 1.ps1 and need to export it to 2.ps1.UPDATE: 1.ps1 generate many string and I
I have a shell script file. ./1.ps1 ./2.ps1 I generate a string such as env-0 in 1.ps1 and need to export it to 2.ps1.UPDATE: 1.ps1 generate many string and I
I need to know how to get an error code and possibly the error from a terraform apply task into a powershell variable - i am sure this is possible but I cannot
I am trying to create a timeout for a socket in powershell and I have encountered a problem that I do not know how to solve even after many hours of Google sear
I had a list of 50 users with the Active Directory extensionAttribute12 sent to me, I was told that extensionAttribute13 was mixed up. So far, as I go through a
i use a script to connect AzureAD and MsolService. Connect-AzureAD Connect-MsolService and it ask me both for username, password, and telephone verification. I
Based on How to execute a PowerShell function several times in parallel?, I'm able to do this, where I stop all running jobs, in parallel. # Run this in paralle
I'm trying to consume Azure DevOps .NET API, specifically the Git client, from Powershell 5.1. There is a copy of all client libraries under C:\Program Files\Mi
I am using AzureAdPreview moudule and with the help of this I am trying to create a group with types "Unified" as well as "DynamicMembership". So as per microso
I installed powershell on Linux-Box. At end of my *.PS1 file I put the following code: Exit 2222 I run my ps1 file such as: pwsh-lts -File my
I am new to powershell and would like to create a tool to add a single printer to multiple servers. Here is my code so far: $printer = read-host "Please enter t
I am having the below code to delete the contents for folder $SB_Folder = "\\$hostname\c$\SB" $Automation_Folder = "\\$hostname\C$\Scripts\" Get-ChildItem -Pat
This is the script get-childitem D:\media\*.mkv -recurse | Select-Object -Property name, @{n='Resolution';expression={mediainfo $_.FullName --inform="Video;%Wi
We are trying to execute a powershell script that will import a scheduled task to non domain and domain joined computers in our organization. The task is simpl
I am trying to perform changes to a existing CSV, such as keeping specific columns (and removing the rest). However when I use Import-CSV, the leading zeros on