I have an open issue w/ MSFT; I have AutoPilot devices w/ Global Admins and Device Admins in the Administrators Group on Windows 10 Devices. I have to remove these SIDS.
#Test if the SID exists
#If SID exists, execute the following
( -eq $true)
Remove-LocalGroupMember -Group "Administrators" -Member "S-1-12-1-3598938502-1280727568-3632501898-3897530764"
Remove-LocalGroupMember -Group "Administrators" -Member "S-1-12-1-61017865-1125260692-820944550-834916098"
#If SID doesn't exist, write error message
Write-Host "not found" | Write-Error
Write-Host "Configuration complete" -ForegroundColor Blue
6 pekerja bebas membida secara purata $44 untuk pekerjaan ini
Hey there, I had developed tons of PowerShell scripts. I checked your project details. Why did you include some Pseudo code? Are these included SIDs the only ones you want to remove? Regards!
Hello Dear, I m working as subject matter expert and have 12 years of experience on powershell, Windows administration and VMware Virtualization. please let me know if I can be your help..thx