Trying to import the module I get the following error:
PS C:\Users\EPederson> Import-Module NTFSSecurity
Import-Module : The following error occurred while loading the extended type data file: Error in TypeData "System.IO.FileInfo": The member Size is
already present.
At line:1 char:1
+ Import-Module NTFSSecurity
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
I tracked this down to a conflict with PSScriptTools and as a workaround I have forked this repo and removed the following lines from NTFSSecurity.types.ps1xml:
<AliasProperty>
<Name>Size</Name>
<ReferencedMemberName>LengthOnDisk</ReferencedMemberName>
</AliasProperty>
Trying to import the module I get the following error:
I tracked this down to a conflict with PSScriptTools and as a workaround I have forked this repo and removed the following lines from NTFSSecurity.types.ps1xml: