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.
Looks like that is unrestricted with no questions ask.
Didn’t know about it. I’ll try it.
thanks Chirag,
Stephan
If you mean on the individual commands — it’s too late. That where I have the problem just typing the command–it interrupts when I enter “/” or “.” and asks me to confirm.
Hey Stephan,
Yes, it is PowerShell that warns you.
Do this.
Set-ExecutionPolicy bypass
You won’t see those bugging messages anymore.
hmm, unrestricted should stop bugging you. IF no try adding “-Confirm:$false” at the end.