Đã hoàn thành

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

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:

#Test if the SID exists

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

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

#If SID exists, execute the following

if

( -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

Else

{

Write-Host "not found" | Write-Error

Exit

}

Write-Host "Configuration complete" -ForegroundColor Blue

Kĩ năng: Powershell

Xem nhiều hơn: need powershell script roaming profile, need to fix remote desktop connection on windows 10 pro, how do you remove a login password on windows 10?, how to run python script on windows 10, do i need java on windows 10, quick powershell script to check dns settings on all servers, powershell script to move files based on age, powershell script to find local administrators on workstations, powershell script to find local administrators on servers, powershell script to compare users group membership, do i need java on windows 10 2019, powershell script to run sql query on multiple servers, powershell script to run sql query on multiple databases, powershell script to stop multiple services on multiple servers, powershell script to list installed software on multiple computers, how to run php script on windows 10, powershell script to check service status on multiple servers and send email, powershell script to check disk space on multiple servers, powershell script to check disk space on multiple servers in excel, powershell script to check disk space on multiple servers and send email

Về Bên Thuê:
( 1 Nhận xét ) MONROVIA, United States

ID dự án: #31520836

Được trao cho:

phicong333

Hello, I will provide script as your requirements. I understand your issue when device join to Azure AD the global admin and device admin will be added to local admin group automatically. We can sort it out by either Thêm

$25 USD trong 1 ngày
(2 Đánh Giá)
1.6

6 freelancer chào giá trung bình$44 cho công việc này

sachinparkhi17

PowerShell Expert.... Hey There, Greeting for the day.... I am Microsoft/VMware/Citrix and Azure Cloud Certified administrator with 12+ years of experience. I am very good in PowerShell scripting. I can prepared autom Thêm

$40 USD trong 1 ngày
(24 Nhận xét)
4.9
AhmadSameer

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!

$100 USD trong 7 ngày
(10 Nhận xét)
4.5
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 Thêm

$27 USD trong 3 ngày
(11 Nhận xét)
3.8
archanakadian24

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

$45 USD trong 2 ngày
(0 Nhận xét)
0.0
(1 Nhận xét)
0.0