小编dba*_*ile的帖子

New-Object上的Windows RT Powershell(PermissionDenied)

我试图在Powershell中为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
Run Code Online (Sandbox Code Playgroud)

我只花了最后三十分钟搞了一些非常沉重的谷歌,并且找不到任何与类似问题相近的东西,更不用说答案了.我希望我只需要配置一些东西; 我担心Windows RT会附带一个残缺的Powershell版本.

有谁知道它是哪种情况?

powershell

5
推荐指数
1
解决办法
3783
查看次数

标签 统计

powershell ×1