Bypass Confirmation on Powershell Commands


If your trying to automate running specific powershell commands, you can do this using the below example with -Confirm and WhatIf.

Set-ExecutionPolicy RemoteSigned -Confirm:$Y -WhatIf

 

Advertisements