' Delete a User from a Local GroupstrComputer = "atl-ws-01"Set objGroup = GetObject("WinNT://" & strComputer & "/Adminstrators,group")Set objUser = GetObject("WinNT://" & strComputer & "/kenmyer,user") objGroup.Remove(objUser.ADsPath) search for scripts
' Delete a User from a Local GroupstrComputer = "atl-ws-01"Set objGroup = GetObject("WinNT://" & strComputer & "/Adminstrators,group")Set objUser = GetObject("WinNT://" & strComputer & "/kenmyer,user") objGroup.Remove(objUser.ADsPath)
Download Home Scripts Copyright © 2001-2024 adersοft