2
votes

Can somebody explain what did I miss. I'm trying to import NTFSSecurity powershell module. Folder is extracted at "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\", also changed execution policy. Still getting an error. System 2008R2 PS v.: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
1

1 Answers

0
votes

Run your shell as administrator(elevated prompt) and unblock all the files in NTFSSecurity folder.