I have an awful memory, so this is more a bookmark for me than anything. Whilst running home grown scripts for PowerShell, you often see the following error:
File C:\scripts\test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_signing" for more details. At line:1 char:19 + c:\scripts\test.ps1
This is because PowerShell expects the script to be signed (something I have to look into). But as I’m doing basic scripts, you can disable this by using the following command:
Set-ExecutionPolicy RemoteSigned
You can get more details on this by using the following:
Get-Help About_Signing