Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
Domain = WScript.Arguments.Item(0) Server = WScript.Arguments.Item(1) Set objAdministrators = GetObject("WinNT://" & Domain & "/" & Server & "/Administrators,group") Set Administrators = objAdministrators.Members For Each Admin in Administrators If Mid(Admin.Name,1,4) = "S-1-" then WScript.Echo "Removing " & Admin.Name objAdministrators.Remove Admin.AdsPath End If Next
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.