Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Has there been recent changes to the compress-archive functionality in Powershell? I have some scripts that I have run monthly for years but lately they seem to run at what feels like an order of ...
DanK's user avatar
  • 59
3 votes
1 answer
46 views

I am writing a Powershell 7 script that connects from a Windows 10 device to multiple Linux hosts via SSH. I want to enter the credentials once using Get-Credentials, however when I run the script, I ...
Evan's user avatar
  • 41
3 votes
1 answer
61 views

I'm looking for some help with pulling certificate information from Active Directory. When I'm troubleshooting accounts, it can take a while to manually check each individual settings. One of the ...
Karmaxdw's user avatar
  • 195
-2 votes
0 answers
93 views

I'm trying to audit a user's actions in an MS Exchange Online shared mailbox. I'm not having any luck with my search results. In testing, I've deleted email from a mailbox and my Search-...
RKillcrazy's user avatar
2 votes
2 answers
84 views

I have a custom script in my package.json that commits the working tree, bumps the version of my npm package, and pushes it to the remote. { "scripts": { "bump": "git ...
dimitris.terzz's user avatar
1 vote
0 answers
94 views

I am encountering a strange environment issue where pnpm is accessible and works perfectly in Windows CMD, but PowerShell (PS) fails to recognize it as a command. Environment: OS: Windows 10/11 Node....
WWW's user avatar
  • 33
1 vote
2 answers
81 views

I need to use the script $HOSTNAME = "host" $PASSWORD = "password contains a comma," wmic /node:$HOSTNAME /user:"$HOSTNAME\\admin" /password:"\`"$PASSWORD\`&...
Dev1lq's user avatar
  • 11
11 votes
2 answers
392 views

I've noticed that the Sort-Object sort algorithm is not stable. # v5.1.26100.7462 1..20 | Sort-Object { $_ % 2 } -Descending 1 3 17 5 7 15 9 19 11 13 18 16 14 10 8 6 4 2 12 20 I've looked at the ...
3limin4t0r's user avatar
  • 21.5k
4 votes
1 answer
108 views

Apparently I broke my Permutations cmdlet without noticing it... The cmdlet is supposed to generate permutations of a given set. Be aware that the number of permutations grows rapidly (factorial) ...
iRon's user avatar
  • 24.7k
0 votes
1 answer
89 views

I'm trying to use a powershell script and service principal to export PowerBl reports. If I use my user, the download happens without issues. When I use the service principal, I get the following ...
Erina's user avatar
  • 23
0 votes
1 answer
103 views

So I'm trying to write a script to CLI disable the Take exclusive control setting in Windows 11. I can reliably pull the ID of the device, I can route it to a variable but the problem comes when I try ...
Trigger2931's user avatar
0 votes
0 answers
87 views

I have PowerShell 7.5.4, when I run below command Get-PSRepository Name InstallationPolicy SourceLocation ---- ------------------ -------------- ...
sorosh_sabz's user avatar
  • 3,073
1 vote
4 answers
150 views

I'm new to CLI and trying to use it instead of GUI options to get better at it. Trying to extract a .gz archived pdf, but after running a command to see what happens it seems I can't input anything ...
Luke Rossenvalden's user avatar
0 votes
0 answers
59 views

Here is a minimal working example which turns off all screens: @echo off powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam,...
Myvh's user avatar
  • 31
1 vote
2 answers
104 views

below my $IP variable doesn't output value of the .name property, and it just shows: " is Proxied via Cloudflare" instead of "example.com is Proxied via Cloudflare" $URLs = Get-...
jack rogers's user avatar

15 30 50 per page
1
2 3 4 5
7950