当前位置:网站首页>PowerShell - because running scripts is prohibited on this system
PowerShell - because running scripts is prohibited on this system
2022-04-21 07:23:00 【Landscape Shepherd】
The phenomenon :
PS C:\WINDOWS\system32> Import-Module VMware.VimAutomation.Core
Import-Module : Unable to load file C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\11.5.0.14898111\VMware.VimAutomation.Sdk.psm1, Because scripts are not allowed to run on this system
. For more information , see also https:/go.microsoft.com/fwlink/?LinkID=135170 Medium about_Execution_Policies.
The position of That's ok :1 character : 1
+ Import-Module VMware.VimAutomation.Core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [Import-Module],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand
reason :
PowerShell Execution policy is a security function , User control PowerShell Conditions for loading configuration files and running scripts .
By default , Unregistered scripts cannot be run directly , Need to modify execution permission .
resolvent :
PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned
Implement policy changes
Execution policies help you prevent execution of untrusted scripts . Changing execution policies can create security risks , Such as https:/go.microsoft.com/fwlink/?LinkID=135170
Medium about_Execution_Policies Help topics . Do you want to change the execution policy ?
[Y] yes (Y) [A] Is full of (A) [N] no (N) [L] None (L) [S] Pause (S) [?] help ( The default value is “N”): A
About more execution strategies , You can see .
版权声明
本文为[Landscape Shepherd]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210619114253.html
边栏推荐
猜你喜欢

MySQL workbench cannot use clear text authentication over non SSL connections problem solving

用JS函数形式实现一个Array.prototype.forEach(),.map(),.filter()

【LeetCode 67】二个进制数求和

Fundamentals of graphics anti aliasing

【LeetCode 401】二进制手表

图形学基础|泛光(Bloom)

Data heterogeneity scheme

传染病模型进行仿真Matlab(仅做Matlab仿真学习与练习,非实际情况与应用)

验证码的生成

力扣-354.俄罗斯套娃信封问题
随机推荐
SQL--数据的过滤和分组
dpdk 问题分析:dpdk-20.11 ice 100G 网卡 rss_hash 配置无效问题
2020杭电多校赛第四场1007 Go Running(hdu6808)
grub boot.S代码分析
Eal:Error reading from file descriptor 33: Input/output error
Fundamentals of graphics | area light rendering based on LTC
【LeetCode 19】删除链表的倒数第 N 个结点
图形学基础|实时阴影渲染
网络攻防安全学习平台-上传关3
Oracle generates random numbers
C# Winform 关于ListView显示不全问题
“华为杯“ 武汉大学21级新生程序设计竞赛 J.传闻档案
Reflection cannot find the class message classnotfound of UDF when executing flinksql code
数据的增删查改
Could not initialize cudnn ,please check cudnn installation.
读书笔记-思维的精进
WordPress插件-Display Posts
dpdk 问题定位:某四光口 x710 网卡某个口无法初始化问题
C语言版:二叉树的前序,中序,后序非递归遍历实现
The difference between batchupdateexception in MySQL and Oracle