Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


AD location

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> AD location
  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 >>
 AD location - 5/16/2006 9:45:52 AM   
  x626

 

Posts: 1
Score: 0
Joined: 5/16/2006
Status: offline
I need help. I am a newbie, and I was wondering if anyone had a solution for my problem.

I want to create a script that will run on every computer in my dept. In order to make life simply, I want there to be only one script. The problem is, certain computers need to connect to certain printers and so on. In order to solve this, I want to make the script pull down the location of the computer the scipt is running on from AD. Then I want to make series of "if" statements that connect computers of different locations to different printers. This brings me to the problem of not knowing how to pull from AD the location of the computer the script is running on. Any help you may have would be greatly appriciated.

~x626
 
 
Post #: 1
 
 RE: AD location - 5/17/2006 12:31:55 AM   
  DiGiTAL.SkReAM


Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
Just to clarify... how do you have your computers/sites/OUs configured in AD?  Do you have computers in the same OU located at different physical locations or are they all at the same place?
The more info you can give, the better we can help you.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to x626)
 
 
Post #: 2
 
 
 
  

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 >> AD location 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