I have a csv file with a list of computers and users that are added to the local Administrators group of those computers and need a script that will read the csv file and remove the user from that particular computer's local Administrator group.
I was able to find a simple script that will remove a stated user from a stated computer (see below) but again I need something that will read the csv file with users that will be removed from certain computers.
Set net = WScript.CreateObject("WScript.Network")
local = "computer name"
DomainName = "domain name"
UserAccount = "user name"
set group = GetObject("WinNT://"& local &"/administrators")
on error resume Next
group.Remove "WinNT://"& DomainName &"/"& UserAccount &""