New-Object上的Windows RT Powershell(PermissionDenied)
发布时间:2020-07-21 02:27:32 所属栏目:Windows 来源:互联网
导读:我试图在Power shell中为 Windows RT实例化一个对象,但不断收到以下错误. PS $foo = New-Object System.Security.Cryptography.SHA1ManagedNew-Object : Cannot create type. Only core types are supported in this language mode.At
|
我试图在Power shell中为 Windows RT实例化一个对象,但不断收到以下错误. PS > $foo = New-Object System.Security.Cryptography.SHA1Managed
New-Object : Cannot create type. Only core types are supported in this language mode.
At line:1 char:8
+ $foo = New-Object System.Security.Cryptography.SHA1Managed
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [New-Object],PSNotSupportedException
+ FullyQualifiedErrorId : CannotCreateTypeConstrainedLanguage,Microsoft.PowerShell.Commands.NewObjectCommand
我只花了最后三十分钟搞了一些非常沉重的谷歌,并且找不到任何与类似问题相近的东西,更不用说答案了.我希望我只需要配置一些东西;我担心Windows RT会附带一个残缺的Powershell版本. 有谁知道它是哪种情况? 是的,Windows RT附带了一个锁定版本的PowerShell – 它在ConstrainedLanguageMode中运行,它可以阻止大多数与.NET的交互(prop setters /方法调用).它还有一个有限的命令集IIRC.(编辑:鲜蔬坊站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 立即镜像/同步文件从Windows到Linux服务器的最佳方式
- Windows – LogonUser – 来自系统服务的CreateProcessAsUs
- cmd – 如何为特定应用程序强制传出ip? ForceBindIp似乎不
- 如何在Windows Phone 7系列上获取屏幕尺寸?
- Windows下的PHP安装pear教程
- windows – 是否可以将kubernetes作为docker容器运行?
- windows – 如何将perl脚本打包为32位可执行文件?
- openstack 填坑笔记4:windows 实例运行出现两个鼠标,重影
- 强制Xamarin在Windows上使用Mono
- Windows – 如何将多个文件名传递给上下文菜单Shell命令?
