Replies: 1 comment
-
It is a powershell console error. In the following video you can see the problem and a solution. Disable Quick Edit for long running PowerShell Another solution is to run the powershell with administrator permissions manually or start your script from other script with the code: Start-Process -FilePath "pwsh.exe" -ArgumentList "-File ./main.ps1" -Verb runas |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have developed a powershell script that contains the following code snippet:
Sometimes the console freezes applying a template until you press any key.
Any ideas on what to do so that the execution never stops?
I tried:
$r = Invoke-pnpsitetemplate ...
$r = invoke-pnpsitetempalte | out-null
$progressPreference = 0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions