need a powershell script to remove SIDS from Adminstrators Group On Windows 10 Hybrid AD Joined Devices

Completed Posted 2 years ago Paid on delivery
Completed Paid on delivery

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.

Pseudo Code:

If

Get-LocalUser -S-1-12-1-3598938502-1280727568-3632501898-3897530764

Get-LocalUser -S-1-12-1-61017865-1125260692-820944550-834916098

True

Then

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"

Write out removed

Else Write out not found

Powershell

Project ID: #31509696

About the project

2 proposals Remote project Active 2 years ago

Awarded to:

hieuhoang117

Hello, I'm HieuHoang, a System Admin. I have 3-years of experience working with Powershell script relate Windows, Active directory, Office 365, AzureAD. I think I can help you complete it soon. Please consider and con More

$25 USD in 3 days
(10 Reviews)
3.8

2 freelancers are bidding on average $28 for this job

AnantKRPramanik

I am a professional PowerShell script developer and have knowledge of windows environment. Active Directory is something that I have been working since a long time now.

$30 USD in 7 days
(1 Review)
1.2