Adding a domain user to the local Administrators Group
From: Mike A. (mike_at_ironsolutions.com)
Date: 07/07/04
- Next message: Celler Dweller: "Get computer name from IP"
- Previous message: Neil: "searching files"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Adding a domain user to the local Administrators Group"
- Reply: Torgeir Bakken \(MVP\): "Re: Adding a domain user to the local Administrators Group"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 11:02:01 -0600
Does anyone know if there is a way to add a domain user to the local
Administrators group using a script? The following script works if the user
is a local user.
strComputer = "MyComputer"
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
Set objUser = GetObject("WinNT://" & strComputer & "/mike,user")
objGroup.Add(objUser.ADsPath)
Any help on this would be greatly appreciated.
Mike A.
- Next message: Celler Dweller: "Get computer name from IP"
- Previous message: Neil: "searching files"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Adding a domain user to the local Administrators Group"
- Reply: Torgeir Bakken \(MVP\): "Re: Adding a domain user to the local Administrators Group"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|