Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Add Domain group to Local Administrator for 100 server

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,63801
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Add Domain group to Local Administrator for 100 server
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Add Domain group to Local Administrator for 100 server - 8/26/2008 7:09:33 AM   
  Athar0229

 

Posts: 5
Score: 0
Joined: 10/24/2007
Status: offline
Original message moved by dm_4ever
Reason :
Hi,

strComp = "c:\host.txt"
Set objGroup = GetObject("WinNT://" & strComp & "/Administrators") 

Set objUser = GetObject("WinNT://testdomain.com/US-helpdesk") 

objGroup.Add(objUser.ADsPath)


want i want to see the c:\host.txt file to see 100 server and then add the us-helpdesk group to the local administrator ..

Thanks in advance ..
 
 
Post #: 1
 
 RE: Add Domain group to Local Administrator for 100 server - 8/27/2008 12:38:47 AM   
  Athar0229

 

Posts: 5
Score: 0
Joined: 10/24/2007
Status: offline
Anyone please help me out here ..?

(in reply to Athar0229)
 
 
Post #: 2
 
 RE: Add Domain group to Local Administrator for 100 server - 8/27/2008 1:07:37 AM   
  dm_4ever


Posts: 2669
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Search for

FileSystemObject
OpenTextFile
ReadLine
Do...Loop

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Athar0229)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Add Domain group to Local Administrator for 100 server Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts