We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
S-
1 parent 7694491 commit f460272Copy full SHA for f460272
Powershell/General Functions/Add-UserRights.ps1
@@ -166,7 +166,7 @@ PROCESS
166
Default { "($right)" }
167
}
168
Write-Output ("$(Time-Stamp)Granting `"$UserLogonRight`" to user account: $Username on host: $computer.")
169
- if ($Username -match "^S-.*-.*-.*$|^S-.*-.*-.*-.*-.*-.*$|^S-.*-.*-.*-.*-.*$")
+ if ($Username -match "^S-.*-.*-.*$|^S-.*-.*-.*-.*-.*-.*$|^S-.*-.*-.*-.*-.*$|^S-.*-.*-.*-.*$")
170
{
171
$sid = $Username
172
0 commit comments