When working with virtual machines on a SharePoint install, I needed to set the execution-policy to unrestricted.
Then I type in a command and am about to add url for a parameter. All of a sudden when I hit a “/” or “.” –I get this PowerShell prompt that I don’t mind confirming once I’ve typed in my command.
“Run only scripts that you trust. while scripts from the internet can be useful, this script can potentially harm your computer. Do you want to run: C\……
“Do not run” “Run Once” “Suspend”
Sure slows down my progress.
No, not individual commands. You just have to run it once initially. Just like when you change the execution policy to unrestricted, this is going to bypass the execution policy check.
Not recommended for Production environments but you can do it in test environment.