Export (0) Print
Expand All

Sample Scripts

Cc526828.chm_head_left(en-us,TechNet.10).gif Cc526828.chm_head_middle(en-us,TechNet.10).gif Cc526828.chm_head_right(en-us,TechNet.10).gif
Sample Scripts

A set of sample scripts is available to help you perform the following Automated Deployment Services (ADS) tasks:

  • Automate Product Activation
  • Bulk Import Device Information
  • Import Device Variables
  • Install Internet Information Services (IIS)
  • Install Microsoft SQL Server 2005
  • Configure a Static IP Address

You can find these scripts on the solution distribution CD in the Server Purposing\Sample Scripts folder. Also in this folder is the Sample Scripts Readme file that provides instructions on using the scripts.

You can also download the scripts at the Microsoft Solution for Windows-based Hosting Web site.

Note

The sample scripts have only been tested with ADS 1.0 on Windows Server 2003 Enterprise Edition. You should review and test the code in a test environment prior to production deployment.

Automated Product Activation

ADS installation media obtained through retail outlets or preinstalled by OEMs and system builders requires online or manual activation within 30 - 60 days of installation. The sample scripts include a VBScript and sample task sequence you can use to automate on-line product activation.

The files are located on the solution distribution at Server Purposing\Sample Scripts\Activate Windows.

You can also download the files at the Microsoft Solution for Windows-based Hosting Web site.

Note

The ADS product documentation recommends the use of Volume License media with ADS. Volume License media from Microsoft does not require product activation. You can obtain Volume License media if you are a Select customer or you purchase products under theMicrosoft Service Provider License Agreement (SPLA). Contact your Microsoft representative for more information.

Bulk Import Device Information

Sample scripts are available for importing device information from a text file into an ADS controller. The bulkimport.cmd takes a .csv file as input and adds one machine and variables for each line of text in the file. The metadata.csv file is a sample input file.

The files are located on the solution distribution in the Server Purposing\Sample Scripts\Bulk Import folder.

You can also download the files at the Microsoft Solution for Windows-based Hosting Web site.

Import Device Variable

These sample scripts are used for importing device variables into an ADS controller. The createVar.cmd uses a list of devices in devices.txt to create device variables. Devices.txt is a sample input file.

The files are located on the solution distribution in the Server Purposing\Sample Scripts\Device Vars folder. You can also download the files at the Microsoft Solution for Windows-based Hosting Web site.

Install IIS 6.0

Sample scripts are available for installing and uninstalling Internet Information Services (IIS) 6.0 on Windows Server 2003 using Sysocmgr.exe and an answer file. This technique is suitable for adding Windows Server components to an installation.

The following files are included:

  • ApplicationServerInstall.txt - Sample input file
  • ApplicationServerInstall.xml - ADS sample task sequence
  • ApplicationServerUninstall.txt - Sample input file
  • ApplicationServerUninstall.xml - ADS sample task sequence
  • Readme.txt - Instructions
  • SetSourcePath.vbs - VBScript to update source path in Windows registry
  • VerifyWebServer.vbs - VBScript to validate a web server

The sample ADS task sequence is used in this example to install IIS. Any Windows components can be installed or uninstalled by modifying the Applicationserverinstall.txt file.

The files are located on the solution distribution in the Server Purposing\Sample Scripts\IIS Install folder. You can also download the files at the Microsoft Solution for Windows-based Hosting Web site.

Install SQL Server 2005

The sample scripts can be used for installing SQL Server 2000 and SQL Service Pack 3a. This technique leverages standard SQL .iss answer files for an unattended install of SQL server.

SQLinstall.xml is the sample ADS file for installing SQL Server. The sample ADS task sequence is used in this example to install SQL using a mapped drive letter back to the controller. Controller variables are used to define the locations for the SQL source files. The default Service Pack 3a .iss answer file will need to be modified if using a default .iss install of SQL.

This script has only been tested with SQL 2000 Enterprise Edition with Service Pack 3a and ADS 1.0 on Windows Server 2003 Enterprise Edition. You should review and test the code in a test environment prior to production deployment.

The files are located on the solution distribution in the Server Purposing\Sample Scripts\SQLInstall folder. You can also download the files at the Microsoft Solution for Windows-based Hosting Web site.

Configure a Static IP Address

Sample scripts can be used for configuring an ADS destination (target) device for static IP addresses. This is typically a post-operating system installation procedure.

Hosted Messaging and Collaboration script performs similarly to the sample script provided with ADS 1.0. The difference is that it can set DNS information and it uses the connection name to identify the network interface card (NIC) instead of the MAC address.

The following files are available:

  • SetConnIP.vbs - VBScript to modify IP information for a connection
  • SetConnIP.xml - Sample ADS .xml file for configuring IP information for a device

The scripts can be found in the solution distribution media on the Microsoft Hosting Solutions for Service Providers site.

You can also download the files at the Microsoft Solution for Windows-based Hosting Web site.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft