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
Problem with Get-NTFSEffectiveAccess after KB5026370 (Windows Server 2022) #85
The Get-NTFSEffectiveAccess cmdlet seems to be broken after KB5026370 update.
It worked fine before update and works fine when this update is uninstalled.
Steps to reproduce
I used 'NT AUTHORITY\SYSTEM' just as an example. You can use any other acount.
I waited about 8 hours - nothing happened.
PowerShell totally utilizate one CPU core during this process.
If I run it with the -Debug parameter, it goes until "DEBUG: The privilege Security is disabled...":
PS C:\Windows\system32> Get-NTFSEffectiveAccess -Path $Path -Account $Account -Debug
VERBOSE: EnablePrivileges enabled in PrivateDate
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A
DEBUG: The privilege TakeOwnership is disabled...
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: ..enabled
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: The privilege Restore is disabled...
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: ..enabled
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: The privilege Backup is disabled...
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: ..enabled
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: The privilege Security is disabled...
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
DEBUG: ..enabled
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
Description
The Get-NTFSEffectiveAccess cmdlet seems to be broken after KB5026370 update. It worked fine before update and works fine when this update is uninstalled.
Steps to reproduce
I used 'NT AUTHORITY\SYSTEM' just as an example. You can use any other acount.
Expected behavior
Output like this:
Actual behavior
It is just sticking like that:
I waited about 8 hours - nothing happened. PowerShell totally utilizate one CPU core during this process.
If I run it with the
-Debug
parameter, it goes until "DEBUG: The privilege Security is disabled...":Environment data