raandree / NTFSSecurity

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

Set-NTFSOwner does not support Whatif/Confirm (SupportShouldProcess) #68

Open cjpalmer opened 4 years ago

cjpalmer commented 4 years ago

Set-NTFSOwner cmdlet is not configured to support ShouldProcess (adding the Whatif and Confirm switches). Kevin Marquette has an excellent article explaining its use: https://powershellexplained.com/2020-03-15-Powershell-shouldprocess-whatif-confirm-shouldcontinue-everything/ I know how to add the functionality in a PowerShell script and I am currently adding this functionality into my own scripts that use this Cmdlet. I am not familiar with .cs files.