我在powershell虚拟机Windows 8.1中用azure创建。和Set-Azure DSC。但是在执行DSC期间我看到了错误:
[10/21/2014 14:17:39.44]执行:C:\ Packages \ Plugins \ Microsoft.Powershell.DSC \ 1.3.0.0 \ bin \ install.cmd [10/21/2014 14:17:47.24]执行完成。
#
Execution Output:
Execution Error:
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.3.0.0\bin\install.ps1 : File
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.3.0.0\bin\install.ps1 cannot be
loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ C:\Packages\Plugins\Microsoft.Powershell.DSC\1.3.0.0\bin\install.ps1 -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
如何在PowerShell中创建VM期间启用安全策略?