在PowerShell里執(zhí)行:PS C:UsersJESSE>set-executionpolicy remotesigned
set-executionpolicy Unrestricted
2011-08-30 16: 02 VMware vSphere PowerCLI因?yàn)樵诖讼到y(tǒng)中禁止執(zhí)行腳本。有關(guān)詳細(xì)信息,請參閱 "get-help about_signi打開 VMware vSpherePowerCLI 出現(xiàn)
無法加載文件 C:Program Files (x86)VMwareInfrastructurevSpherePowerCLIScriptsInitialize-PowerCLIEnvironment.ps1,因?yàn)樵诖讼到y(tǒng)中禁止執(zhí)行腳本。有關(guān)詳細(xì)信息,請參閱"get-help about_signing"。所在位置 行:1 字符: 2
+ .<<<<"C:Program Files (x86)VMwareInfrastructurevSpherePowerCLIScript
sInitialize-PowerCLIEnvironment.ps1"
+CategoryInfo: NotSpecified: (:) [], PSSecurityException
+FullyQualifiedErrorId : RuntimeException
執(zhí)行:get-help about_signing 命令
執(zhí)行:get-executionpolicy 命令查看 策略
顯示為:Restricted該策略不允許任何腳本運(yùn)行。
執(zhí)行: set-executionpolicy remotesigned 修改執(zhí)行策略。
輸入: y
退出在打開時(shí)候,顯示正常
愛華網(wǎng)


