Skip to main content
Just launched! Check out the new Stack Internal platform. Create a free workspace

Question list filters

Filter by
Sorted by
Tagged with
Score of 0
1 answer
32 views

I have a loop that creates runspaces, adds them to $RunspacePool, executes .BeginInvoke() and eventually adds them to an array in synchronized hastable. The scriptblock for each of the runspaces is in ...
Score of 0
1 answer
117 views

I have a very simple script that is supposed to download multiple repos simultaneously. But I am having trouble even getting one working. $blah = Start-Job { git clone https://github.com/...
Score of 4
1 answer
115 views

In this example, is there a way to programmatically infer the source object's ("MyTestString") type ? Assume that the source object is a literal and not stored in a variable. PS C:\> $...
Score of -1
0 answers
98 views

I have a PowerShell script that checks the HTTP status code of a website and i want it to highlight certain lines that say OK in Green and then the ones that fail in Red, but this is not functioning ...
Score of 0
2 answers
180 views

I maintain a lot of servers, and I am looking to auto-update Git for Windows on all of them periodically. There is a built-in way to do this with git update-git-for-windows -y. This works great on the ...
Score of 2
1 answer
99 views

I am trying to set the proxy registry values via powershell deployed via a GPO as a logon script on my domain controller. The purpose is for all windows clients (7, 8 ,8.1 ,10 and 11) to have the ...
Score of 1
2 answers
192 views

-WhatIf is a Common Parameter in PowerShell that describes the effect of the command, instead of executing the command. How can I create a PowerShell script with -WhatIf support, so potentially ...
Score of -1
1 answer
201 views

I have the following multiline string: Inside Magic Kingdom Park at @waltdisneyworld is a memorial next to the Mad Tea Party that thousands of guests unknowingly pass by every day. Randy Pausch co-...
Score of -3
1 answer
194 views

I wrote a PowerShell script that: Kills Windows Magnify (built-in app), aka: just Magnify, process, if it is running; Runs Magnify in lens mode; Launches GOG's Skyrim Anniversary Edition mod pack ...
Score of 2
1 answer
117 views

On Windows 11 Pro, using PowerShell v5.1, I'm trying to create a WebView2 browser pop-up dialog. Add_Type function Parameters: $fullPath = "C:\Program Files (x86)\Windows Kits\10\Windows ...
Score of 1
2 answers
224 views

I'm trying to install unsigned programs with Install-Module. I understand the risks of doing so. After reading the error message, I looked into Execution Policies and tried to update my local one (...
Score of 1
1 answer
279 views

I get this error on Codex CLI every time I try to update codex when a new version is available. iex : The property 'OSArchitecture' cannot be found on this object. Verify that the property exists. I ...
Score of 0
1 answer
198 views

I’m trying to clone a private GitHub repository over SSH from inside WSL2 (Ubuntu): git clone [email protected]:username/repository.git The command starts normally: Cloning into 'repository'... but ...
Score of 5
2 answers
223 views

I have a Visual Studio project with a post-build event. Part of the post-build script executes a PowerShell script. I recently moved to a new computer, and the PS script failed with this error: The ...
Score of 2
2 answers
173 views

ls * | ft length ls * | ft {$_.length} In the first statement the length of the subfolders in the current folder shows up as $null and in the second as 1. Can somebody please explain to me what the ...

15 30 50 per page
1
2 3 4 5
…
7938