Powershell: unexpected token when compose path from env variable
I am trying to run powershell command. I have set up 2 variables:
Powershell script to change scalling
I hope this question find you well.
Create the ls.exe –color=auto alias on Powershell
So on Linux almost everyone has in their shell startup scripts:
POWERSHELL CommentHelp: cannot access .OUTPUTS and .NOTES in function-CommentHelp
I’m on WINDOWS 10 and use POWERSHELL 7.4.2.
How to Launch MS Paint 3D by Powershell without Passing it to Old MS Paint Application
Apparently Windows (only 10?) installed some troublesome updates that make it impossible to open Paint 3D using old microsoft paint environment. To make things worse, Paint 3D does not have an .exe address to use right click context menu to “open with” images.
How to set proxy on invoke-webrequest
I have the below script to install a defender software on my development server and when I run it I run into a error where “defender.ps1 is not recognized and err : invalid token”I feel like it needs proxy passed in the script to reach the internet, can someone help me with how I can pass proxy here in this script and if I am missing any syntax here?
The powershell function doesn’t get executed
I have following power-shell function to add registry items to the registry. But it doesn’t execute and I can’t see any errors. I am newbie to power-shell. Can’t figure it out why it’s not working. Any ideas?
New-SelfSignedCertificate -Subject parameter broke
I was trying to use the method New-SelfSignedCertificate
. Let say that I’ve used the example call from here: https://learn.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps
Open new PowerShell tabs from ps1 script
I have a ps1 script, in which I open multiple PowerShell windows with different commands on each window using this syntax:
Net use /delete says connection not found, but Test-Path returns true
For context, I need to check if a network drive exists. If it exists then no action, if it doesn’t exist need to map it