Relative Content

Tag Archive for windowspowershell

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