If you get the following error:
File C:\some_file.psm1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At :line:11 char:13
+ Import-Module <<<< -name C:\some_file
This is due to restrictions with the execution policy. To update this, open PowerShell as an Administrator, and run:
ps> Set-ExecutionPolicy Unrestricted
Which should give:
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
PS C:\Users\Administrator.DOMAIN>
You can set other Execution Policies, to find out more about these, go to:
http://technet.microsoft.com/en-us/library/ee176961.aspx
|
|
||||||||
|
This Month
Month Archive
About Me
Login
|
File C:\some_file.psm1 cannot be loaded because the execution of scripts is disabled on this system
No comments found.
|
Search
Recent Articles
Favourite blogs
|
||||||
|
||||||||
