Difference between revisions of "Active Directory/Documentation/Computer Account Prestaging Tool"

From WolfTech
Jump to navigation Jump to search
Line 20: Line 20:
 
<li>If Pre-staging script issues this error:</li>
 
<li>If Pre-staging script issues this error:</li>
 
     'Error0x80070002 occurred creating GUIDConvert object'
 
     'Error0x80070002 occurred creating GUIDConvert object'
 
+
   
 
Try the following command to fix the GUIDConvert.dll registration:
 
Try the following command to fix the GUIDConvert.dll registration:
  

Revision as of 12:59, 7 July 2008

Download: Computer Account Prestaging Tool

This tool will allow you to pre-stage managed computers into the WolfTech AD OU of your choice (assuming you have the necessary permissions to the OU etc.) for use with RIS from an Excel spreadsheet. The VB Script (PrestagRISClnt.vbs) provided in the link above is a modified version of a script provided by Microsoft as part of their Windows Server 2003 Deployment Kit in the Sample_RIS_Scripts.zip file found here:

Windows Server 2003 Deployment Kit

The script has been modified to accept one additional argument - a container (OU) of your choice to stage the computers. The script, as provided by Microsoft, will only stage the computers into the default 'Computers' AD group. The Computer Account Prestaging Tool includes a sample excel file containing a list of computers & a batch file that will run the script with the necessary arguments.

Instructions for using the Pre-staging tool:

  1. Unzip the tool to a WinXP computer in the WolfTech domain w/the following prerequisites:
    1. .NET Framework 2.0
    2. Microsoft Office (Excel) - the script uses an Excel COM object
  2. Register the GUIDConvert.dll (see Cannot prestage RIS Clients in Active Directory by using the Windows Server 2003 Deployment Kit for details):
    1. Run register_guid_dll.bat
    2. If Pre-staging script issues this error:
    3. 'Error0x80070002 occurred creating GUIDConvert object' Try the following command to fix the GUIDConvert.dll registration: %windir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase GUIDConvert.dll
  3. Modify 'sample_computers.xls' to a list of computers & corresponding GUIDs that you would like to pre-stage
  4. Modify 'prestage_sample_computers.bat' /Server argument to reference the RIS server of your choice. *Note: you can specify /Server:ignore to leave this attribute blank
  5. Modify 'prestage_sample_computers.bat' /Container argument to the desired computer staging OU
  6. Run 'prestage_sample_computers.bat' to stage the computers in your excel spreadsheet. *Note: The following error message is issued, but the computers are still staged into AD:
  7. Error0x80004005 occurred while processing "{computername}" !