Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server 2012 R2 with PS 5.1 - Could not load file or assembly #23

Open
tw34ksource opened this issue Nov 5, 2017 · 0 comments
Open

Server 2012 R2 with PS 5.1 - Could not load file or assembly #23

tw34ksource opened this issue Nov 5, 2017 · 0 comments

Comments

@tw34ksource
Copy link

tw34ksource commented Nov 5, 2017

https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85/file/107400/19/NTFSSecurity.zip

Any idea how to address this?

`PS C:\Scripts\Powershell> Import-Module NTFSSecurity
Add-Type : Could not load file or assembly 'file:///C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\Security2.dll' or
one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.Init.ps1:75 char:1

  • Add-Type -Path $PSScriptRoot\Security2.dll
  •   + CategoryInfo          : NotSpecified: (:) [Add-Type], FileLoadException
      + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand
    
    

Add-Type : Could not load file or assembly
'file:///C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\PrivilegeControl.dll' or one of its dependencies. Operation
is not supported. (Exception from HRESULT: 0x80131515)
At C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.Init.ps1:76 char:1

  • Add-Type -Path $PSScriptRoot\PrivilegeControl.dll -ReferencedAssembli ...
  •   + CategoryInfo          : NotSpecified: (:) [Add-Type], FileLoadException
      + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand
    
    

Add-Type : Could not load file or assembly
'file:///C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\ProcessPrivileges.dll' or one of its dependencies. Operation
is not supported. (Exception from HRESULT: 0x80131515)
At C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.Init.ps1:77 char:1

  • Add-Type -Path $PSScriptRoot\ProcessPrivileges.dll
  •   + CategoryInfo          : NotSpecified: (:) [Add-Type], FileLoadException
      + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand
    
    

Import-Module : Could not load file or assembly
'file:///C:\Users\Administrator\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.dll' or one of its dependencies. Operation is
not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:1

  • Import-Module NTFSSecurity
  •   + CategoryInfo          : NotSpecified: (:) [Import-Module], FileLoadException
      + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand`
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant