Skip to content

Commit c777954

Browse files
authored
A few small changes 📚
1 parent 09f5d3f commit c777954

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Powershell/General Functions/Set-UserRights.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ PROCESS
235235
{
236236
$sidList = "$($sids.Replace("*$sid", '').Replace("$Username", '').Replace(",,", ',').Replace("= ,", '= '))"
237237
}
238+
Write-Verbose $sidlist
238239
foreach ($line in @("[Unicode]", "Unicode=yes", "[System Access]", "[Event Audit]", "[Registry Values]", "[Version]", "signature=`"`$CHICAGO$`"", "Revision=1", "[Profile Description]", "Description=$ActionType `"$UserLogonRight`" right for user account: $Username", "[Privilege Rights]", "$sidList"))
239240
{
240241
Add-Content $import $line
@@ -385,7 +386,7 @@ PROCESS
385386
else
386387
{
387388

388-
<# Edit line 392 to modify the default command run when this script is executed.
389+
<# Edit line 399 to modify the default command run when this script is executed.
389390
Example:
390391
Set-UserRights -AddRight -UserRight SeServiceLogonRight, SeBatchLogonRight -ComputerName $env:COMPUTERNAME, SQL.contoso.com -UserName CONTOSO\User1, CONTOSO\User2
391392
or

0 commit comments

Comments
 (0)