1 2 3 4 5 |
$path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch"; $account = New-Object -TypeName System.Security.Principal.NTAccount -ArgumentList 'Administrateurs'; $acl = Get-Acl -Path $path; $acl.SetOwner($account); Set-Acl -Path $path -AclObject $acl; |
Cet article n'a pas été revu depuis la publication.
Cet article a été créé par david le 12 octobre 2017.
Laisser un commentaire