PowerShell / PowerShell

PowerShell for every system!
https://microsoft.com/PowerShell
MIT License
43.55k stars 7.06k forks source link

Restart-Computrr add proxyaccestype #21535

Open B00t4me opened 3 weeks ago

B00t4me commented 3 weeks ago

Summary of the new feature / enhancement

I have moved to a new environment in order to run invoke-command I need to add sessionoption proxyaccesstype noproxy. This works however when it comes to restart-computer and use -wait it times out on waiting for WinRM. At this time the machine is up and connectable.

Proposed technical implementation details (optional)

To add the parameter for the WinRM part of the script to use the same pssessionoption -proxyaxxesstype NoProxy