mirror of https://github.com/raandree/NTFSSecurity
Browse Source
The cmdlets that enable the Backup, Restore, Take Ownership, and Security privileges disabled them only in EndProcessing, which PowerShell skips when a later command, such as Select-Object -First, or a terminating error stops the pipeline. The privileges then stayed enabled in the session. BaseCmdletWithPrivControl now implements IDisposable and disables them in Dispose as well; Enable-Privileges keeps them. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>ai/release-5.0.0-rc6
5 changed files with 93 additions and 8 deletions
Loading…
Reference in new issue