mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
parent
9df17e1068
commit
7b408b209c
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ function Get-IcingaUserSID()
|
|||
}
|
||||
|
||||
try {
|
||||
$NTUser = [System.Security.Principal.NTAccount]::New($Domain, $Username);
|
||||
$NTUser = New-Object System.Security.Principal.NTAccount($Domain, $Username);
|
||||
$SecurityData = $NTUser.Translate([System.Security.Principal.SecurityIdentifier]);
|
||||
} catch {
|
||||
throw $_.Exception;
|
||||
|
|
|
|||
Loading…
Reference in a new issue