Delete a Local Group

Deletes a local group named FinanceUsers from a computer named atl-ws-01.

VBScript Code


strComputer = "atl-ws-01"
Set objComputer = GetObject("WinNT://" & strComputer & "")
objComputer.Delete "group", "FinanceUsers"