This script uses the Netsh tool to configure the target computer so that it is an authorized DHCP server in AD DS.

For more information about authorizing DHCP servers, see How to Use Netsh.exe to Authorize, Unauthorize and List DHCP Servers in Active Directory.

 

Value

Description

Input

Environment variables. Contains the property values, custom property values, database connections, deployment rules, and other information that the scripts require to complete the deployment process

Output

·     ZTIAuthorizeDHCP.log. Log file that contains events that this script generates

·     BDD.log. Log file that contains events that all MDT scripts generate

References

·     Netsh.exe. A utility used to automate the configuration of networking components

·     ZTIUtility.vbs. Includes support functions and subroutines that the script uses

Location

distribution\Scripts

Use

cscript ZTIAuthorizeDHCP.wsf </debug:value>

 

Note   The security context that this script runs under must be a member of the Enterprise Admins group.

Arguments

Value

Description

/debug:value

Outputs the event messages to the console and to the .log files. If the value specified in value is:

·     TRUE, event messages are sent to the console and the .log files

·     FALSE, event messages are sent only to the .log files (This is the behavior when the argument is not provided.)

 

Properties

Name

Read

Write

IPAddress

˜

 

 

Related Topics

Scripts