Friday, January 09, 2009
Deployment Forum HomeDeployment Forum ArticlesDeployment Forum Download LibraryDeployment Forum Member BlogsDeployment Forum Community Forums
Member Login
StandardLiveID


Register
Forgot Password ?



Guests can view and read messages in the community forums, but you must register and log in to Deployment Forum before you can post messages. Click Register at the top of this page. Before posting messages, please read the forum guidelines at the bottom of this page.

Subject: Check if computername exists in Active Directory
Prev Next
You are not authorized to post a reply.

AuthorMessages
robUser is Offline

Posts:11

Send Message
06/23/2008 7:28 PM  

hi guys,

i'd like to know if there is a way to check Active Directoy if a computername that is specified during the Lite Touch install wizard already exists?  I remember our old RIS installation had this function using the OSC menu screens. 

what i want to do is to display a warning if the computername is already being used in the domain.   

thanks.

 

Rob 

 

 

scaniafreakUser is Offline

Posts:35

Send Message
06/26/2008 9:20 AM  

there is a way to accomplish this.

when you tupe the computername in the inputfield of the wizard, a script checks after each change (thus after each character typed into the field) wether the computername has invalid characters. the name of the script is DeployWiz_Validation.vbs, and is located in the Scripts folder.

In the script, search for the function ValidateComputerName.

look on the internet for the right vbscript code which checks the existance of your desired computername in AD. Past that code in the function named above. Ofcource you have to modify it a bit to make is work.

Edit:

When you do it like i describted above, each time you type a character into the inputfield, the scripts checks AD for the computeraccount. So if you have a 20 character computername, AD is checked 20 times rapidly. This could bring some performace issues. 

Good luck.

robUser is Offline

Posts:11

Send Message
09/30/2008 10:02 PM  
Just bumping this up.

I think it would be more efficient to check active directory only once, right after clicking the Next button.

Has anyone done anything like this? Isn't there a built in function within MDT that does this? I know RIS used to have it.

scaniafreakUser is Offline

Posts:35

Send Message
10/02/2008 4:53 AM  

what you suggest here is almost impossible. MDT is scripted is such way, that if you click the next button it triggers a specific functionhandler.

that means, if you add a AD check function to the next button, it always checks AD if you click that next button.

A more friendly option is, is to edit the computername wizard page. Just add a button to that page, and if you click on it, it checks AD for the existance of the entered computername.

something similar i've done before. I've added a function to specify local users, which are added later on in the TS if the OS is deployed.

You are not authorized to post a reply.
Forums > Deployment Solutions > MDT 2008 > Check if computername exists in Active Directory



ActiveForums 3.7
Forum Policies
Minimize

These forums are a user-supported community for IT professionals to exchange deployment tips, solutions, and techniques. For the benefit of all Deployment Forum members, please observe the following guidelines when posting to these forums:

  • We reserve the right to remove any message. Our moderators will remove all messages that are not respectful or productive. Profanity, racism, prejudice, and flaming are not tolerated.
  • Do not advertise products or services. Our moderators will remove all advertisements or service announcements. Product and service recommendations from active Deployment Forum members are encouraged, however.
  • Make sure your question isn't already answered. Before posting questions, search the forums. After ensuring that your questions are unique, post them to the most appropriate forum. This will help reduce noise in the forums.
  • Help make the most of each thread. Do not post unrelated messages to a thread. Also, if you've resolved a question outside of these forums, please share the solution with other members by posting it back to the thread.
  • Do not share confidential information. Confidential information includes product keys and addresses. Our moderators will edit any message containing confidential information, so double-check messages and their attachments before posting them.
  • Post messages using only the English language. For the benefit of all Deployment Forum members, please post your messages using the English language.

We hope that you enjoy using this community. Please submit your comments and feedback on the Comments and Feedback page or post them to the Comments, Feedback forum.



Privacy Statement  |  Terms Of Use
© 2007 Jerry Honeycutt