导入powershell模块失败

导入powershell模块失败,powershell,import,module,Powershell,Import,Module,谁能解释一下我错过了什么。我正在尝试导入NTFSSecurity powershell模块。在“C:\Windows\system32\WindowsPowerShell\v1.0\Modules\”提取文件夹,同时更改了执行策略。还是有错误。 系统2008R2 PS版本:2.0 PS C:\Users\admin> $env:PSModulePath C:\Users\admin\Documents\WindowsPowerShell\Modules;C:\Windows\system3

谁能解释一下我错过了什么。我正在尝试导入NTFSSecurity powershell模块。在“C:\Windows\system32\WindowsPowerShell\v1.0\Modules\”提取文件夹,同时更改了执行策略。还是有错误。 系统2008R2 PS版本:2.0

PS C:\Users\admin> $env:PSModulePath
C:\Users\admin\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

PS C:\Users\admin> get-module -ListAvailable -all

ModuleType Name                      ExportedCommands
---------- ----                      ----------------
Binary     PrivilegeControl          {}
Binary     ProcessPrivileges         {}
Binary     Security2                 {}
Manifest   ADRMS                     {}
Manifest   AppLocker                 {}
Manifest   BestPractices             {}
Binary     Microsoft.BestPractice... {}
Manifest   BitsTransfer              {}
Binary     Microsoft.BackgroundIn... {}
Binary     NTFSSecurity              {}
Manifest   NTFSSecurity              {}
Binary     PrivilegeControl          {}
Binary     ProcessPrivileges         {}
Binary     Security2                 {}
Manifest   PSDiagnostics             {}
Script     PSDiagnostics             {}
Manifest   ServerManager             {}
Manifest   TroubleshootingPack       {}

PS C:\Users\admin> import-module NTFSSecurity
Import-Module : The specified module 'NTFSSecurity' was not loaded because no valid module file was found in any module
 directory.
At line:1 char:14
+ import-module <<<<  NTFSSecurity
    + CategoryInfo          : ResourceUnavailable: (NTFSSecurity:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
PS C:\Users\admin>$env:PSModulePath
C:\Users\admin\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PS C:\Users\admin>get模块-ListAvailable-all
ModuleType名称ExportedCommands
---------- ----                      ----------------
二进制特权控制{}
二进制进程特权{}
二进制安全性2{}
清单ADRM{}
清单AppLocker{}
最佳实践清单{}
二进制Microsoft。最佳实践。。。{}
清单比特串{}
二进制Microsoft。背景。。。{}
二进制NTFS安全性{}
清单NTFSSecurity{}
二进制特权控制{}
二进制进程特权{}
二进制安全性2{}
清单PSDiagnostics{}
脚本PSDiagnostics{}
清单服务器管理器{}
清单疑难解答包{}
PS C:\Users\admin>导入模块NTFS安全
导入模块:未加载指定的模块“NTFSSecurity”,因为在任何模块中都找不到有效的模块文件
目录
第1行字符:14

+导入模块以管理员身份运行shell(提升提示)并取消阻止NTFS安全文件夹中的所有文件。

尝试取消阻止文件。PS正在提升模式下运行。相同的红色错误:NTFSSEcurity文件夹的文件列表:NTFSSEcurity-Help.xml NTFSSEcurity.dll NTFSSEcurity.format.ps1xml NTFSSEcurity.Init.ps1 NTFSSEcurity.pdb NTFSSEcurity.psd1 NTFSSEcurity.types.ps1xml privilegecontry.dll PrivilegeControl.pdb ProcessPrivileges.dll ProcessPrivileges.pdb Security2.pdb这是64位框吗?如果是,您是否正在运行64位powershell?谢谢。它被文件屏蔽了。