Managing permissions with PowerShell is only a bit easier than in VBS or the command line as there are no cmdlets for most day-to-day tasks like getting a permission report or adding permission to an item. PowerShell only offers Get-Acl and Set-Acl but everything in between getting and setting the ACL is missing. This module closes the gap.
MIT License
431
stars
61
forks
source link
Incorrect parameter Alias definition in certain commands #36
The following commands fail to import with Import-WinModule because of a bug with the definition of the parameter alias definition:
Add-NTFSAccess
Add-NTFSAudit
Get-NTFSAccess
Get-NTFSAudit
Get-NTFSOrphanedAccess
Get-NTFSOrphanedAudit
Get-NTFSSimpleAccess
Remove-NTFSAccess
Remove-NTFSAudit
The typical error raised is:
Import-Module : Failed to generate proxies for remote module 'NTFSSecurity'. Proxy creation has been skipped for the 'Ad
d-NTFSAudit' command, because PowerShell could not verify the safety of a parameter alias name: 'IdentityReference, ID'.
At C:\Users\jole001\Documents\PowerShell\Modules\WindowsCompatibility\0.0.1\WindowsCompatibility.psm1:479 char:13
+ Import-Module -Name $ImportNames -NoClobber:$NoClobber @ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Import-Module], InvalidOperationException
+ FullyQualifiedErrorId : ErrorSkippedUnsafeAliasName,Microsoft.PowerShell.Commands.ImportModuleCommand
The following commands fail to import with Import-WinModule because of a bug with the definition of the parameter alias definition: Add-NTFSAccess Add-NTFSAudit Get-NTFSAccess Get-NTFSAudit Get-NTFSOrphanedAccess Get-NTFSOrphanedAudit Get-NTFSSimpleAccess Remove-NTFSAccess Remove-NTFSAudit
The typical error raised is:
This is further confirmed by @brucepay in issue 38 of WindowsCompatibility