lite-server cannot be loaded because running scripts is disabled on this system 1

lite-server cannot be loaded because running scripts is disabled on this system

Set-ExecutionPolicy Unrestricted

Here is what the above code is Doing:
1. It’s creating a new folder called “C:\Users\Public\Documents\WindowsPowerShell\Scripts”
2. It’s creating a new file called “C:\Users\Public\Documents\WindowsPowerShell\Scripts\Start-WindowsUpdate.ps1”
3. It’s writing the code below to the file
4. It’s setting the execution policy to unrestricted

Similar Posts