I tried creating an ultimate setup for my powershell environment.
I created "Microsoft.PowerShell_profiles.ps1" with a bunch of statements to setup my default profile.
When I start a PowerShell session though, I get:
File C:\Documents and Settings\xxx\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded.
The file C:\Documents and Settings\xxx\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 is not digitally signed. The script will not execute on the system.
Best Answer
The easiest solution is to
but that will run all scripts that are on the local disk (and are not in a Remote zone - like downloaded via IE)