Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete a User from a Local GroupContent of Delete a User from a Local Group.vbsMD5 Hash: 3596898E57C3CB0BC7EF59A7E231F52D |
||
' Description: Removes kenmyer from the local Administrators group on a computer named atl-ws-01.
strComputer = "atl-ws-01" Set objGroup = GetObject("WinNT://" & strComputer & "/Adminstrators,group") Set objUser = GetObject("WinNT://" & strComputer & "/kenmyer,user") objGroup.Remove(objUser.ADsPath) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |