Home » Scripting » Computer AD Imaging Actions Superscript Messages in this topic - RSS
|
11/24/2011 10:44:35 PM
ttgp1
ttgp1
Posts 1
Background info:
I use Ghost Solutions Suite 2.5 to image computers. I use wsname.exe to rename the computers via a text file (mac2pcname.txt) with MAC addresses mapped to the new computer name after SysPrep runs. I am well aware that Ghost has a few features to perform what I am requesting but it is limited.

So a superscript can remedy this limitation for me. Or other scripts that can be ran together to accomplish what I am asking.
I need a script that will join a computer to a domain after it is properly renamed via the wsname application after SysPrep runs. Then I want the script to query the computer's name and move this computer to the proper OU. We have about six OUs under one domain. The computers are named based on the building number for which most of these OUs are identified (i.e., XP Computers OU has computers named with building 24* [where *=B, C, or D], 58 Computers OU has computers named with building 58, etc.).

I would like for all of this to be performed silently without ANY user intervention. This script will be used in conjunction with the SysPrep process. Preferably something that will run this script via SysPrep switches such as adding a GUIRunOnce, or placing the script in the registry to perform its magic. Startup scripts will also suffice.

So when one of our administrators reimages a computer, and if they update the mac2pcname.txt file properly, the entire process will automatically close the loop for a computer being reimaged, renamed, joined to the domain, and moved to the proper OU. I also know that computer accounts can be manually created in the proper container before joining the computer to the domain and would resolve a couple of these steps. But I forgot to mention we have LAZY administrators.

I have to mention that I have a SQL DB repair script that needs to run after this computer is renamed from the wsname script and the computer has to restart to complete this process. This script basically uninstalls SQL then reinstalls it so that the DB instance name matches the host name. A GOTS (government off the shelf) application installs SQL and obviously requires that the host name and DB instance name be paired. This program can run any time after the computer is renamed but now it runs after the wsname restarts the computer itself via a registry run once added from the wsname script. Yeah, we were irritated when an SQL install was added to the updated version of this program!

I am not a programmer. I do understand the basic structure of scripts and I am getting pretty familiar with SysPrep and how it works with running scripts.

Please do not recommend any other programs unless they are free. I work for the government so we do not have any money to buy a product that can do the actions I requested.

Thanks,

Terrence
pages: 1
|

Home » Scripting » Computer AD Imaging Actions Superscript