wdsutil set-server
Configures the settings for a Windows Deployment Services server.
Syntax
wdsutil [Options] /Set-Server [/Server:<Server name>]
[/Authorize:{Yes | No}]
[/RogueDetection:{Yes | No}]
[/AnswerClients:{All | Known | None}]
[/Responsedelay:<time in seconds>]
[/AllowN12forNewClients:{Yes | No}]
[/ArchitectureDiscovery:{Yes | No}]
[/resetBootProgram:{Yes | No}]
[/DefaultX86X64Imagetype:{x86 | x64 | Both}]
[/UseDhcpPorts:{Yes | No}]
[/DhcpOption60:{Yes | No}]
[/RpcPort:<Port number>]
[/PxepromptPolicy
[/Known:{OptIn | Noprompt | OptOut}]
[/New:{OptIn | Noprompt | OptOut}]
[/BootProgram:<Relative path>]
/Architecture:{x86 | ia64 | x64}
[/N12BootProgram:<Relative path>]
/Architecture:{x86 | ia64 | x64}
[/BootImage:<Relative path>]
/Architecture:{x86 | ia64 | x64}
[/PreferredDC:<DC Name>]
[/PreferredGC:<GC Name>]
[/PrestageUsingMAC:{Yes | No}]
[/NewMachineNamingPolicy:<Policy>]
[/NewMachineOU]
[/type:{Serverdomain | Userdomain | UserOU | Custom}]
[/OU:<Domain name of OU>]
[/DomainSearchOrder:{GCOnly | DCFirst}]
[/NewMachineDomainJoin:{Yes | No}]
[/OSCMenuName:<Name>]
[/WdsClientLogging]
[/Enabled:{Yes | No}]
[/LoggingLevel:{None | Errors | Warnings | Info}]
[/WdsUnattend]
[/Policy:{Enabled | Disabled}]
[/CommandlinePrecedence:{Yes | No}]
[/File:<path>]
/Architecture:{x86 | ia64 | x64}
[/AutoaddPolicy]
[/Policy:{AdminApproval | Disabled}]
[/PollInterval:{time in seconds}]
[/MaxRetry:{Retries}]
[/Message:<Message>]
[/RetentionPeriod]
[/Approved:<time in days>]
[/Others:<time in days>]
[/AutoaddSettings]
/Architecture:{x86 | ia64 | x64}
[/BootProgram:<Relative path>]
[/ReferralServer:<Server name>
[/WdsClientUnattend:<Relative path>]
[/BootImage:<Relative path>]
[/User:<Owner>]
[/JoinRights:{JoinOnly | Full}]
[/JoinDomain:{Yes | No}]
[/BindPolicy]
[/Policy:{Include | Exclude}]
[/add]
/address:<IP or MAC address>
/addresstype:{IP | MAC}
[/remove]
/address:<IP or MAC address>
/addresstype:{IP | MAC}
[/RefreshPeriod:<time in seconds>]
[/BannedGuidPolicy]
[/add]
/Guid:<GUID>
[/remove]
/Guid:<GUID>
[/BcdRefreshPolicy]
[/Enabled:{Yes | No}]
[/RefreshPeriod:<time in minutes>]
[/Transport]
[/ObtainIpv4From:{Dhcp | Range}]
[/start:<start IP address>]
[/End:<End IP address>]
[/ObtainIpv6From:Range]
[/start:<start IP address>]
[/End:<End IP address>]
[/startPort:<start Port>
[/EndPort:<start Port>
[/Profile:{10Mbps | 100Mbps | 1Gbps | Custom}]
[/MulticastSessionPolicy]
[/Policy:{None | AutoDisconnect | Multistream}]
[/Threshold:<Speed in KBps>]
[/StreamCount:{2 | 3}]
[/Fallback:{Yes | No}]
[/forceNative]
Parameters
Parameter | Description |
---|---|
[/Server:<Server name>] | Specifies the name of the server. This can be either the NetBIOS name or the fully qualified domain name (FQDN). If no server name is specified, the local server will be used. |
[/Authorize:{Yes | No}] | Specifies whether to authorize this server in Dynamic Host Control Protocol (DHCP). |
[/RogueDetection:{Yes | No}] | Enables or disables DHCP rogue detection. |
[/AnswerClients:{All | Known | None}] | Specifies which clients this server will answer. If you set this value to Known, a computer must be prestaged in active directory Domain Services (AD DS) before it will be answered by the Windows Deployment Services server. |
[/Responsedelay:<time in seconds>] | The amount of time that the server will wait before answering a booting client. This setting does not apply to prestaged computers. |
[/AllowN12forNewClients:{Yes | No}] | for Windows Server 2008, specifies that unknown clients will not have to press the F12 key to initiate a network boot. Known clients will receive the boot program specified for the computer or, if not specified, the boot program specified for the architecture. for Windows Server 2008 R2, this option has been replaced with the following command: wdsutil /Set-Server /PxepromptPolicy /New:Noprompt |
[/ArchitectureDiscovery:{Yes | No}] | Enables or disables architecture discovery. This facilitates the discovery of x64-based clients that do not broadcast their architecture correctly. |
[/resetBootProgram:{Yes | No}] | Determines whether the boot path will be erased for a client that has just booted without requiring an F12 key press. |
[/DefaultX86X64Imagetype: {x86 | x64 | Both}] | Controls which boot images will be shown to x64-based clients. |
[/UseDhcpPorts:{Yes | No}] | Specifies whether or not the PXE server should attempt to bind to the DHCP port, TCP port 67. If DHCP and Windows Deployment Services are running on the same computer, you should set this option to No to enable the DHCP server to utilize the port, and set the /DhcpOption60 parameter to Yes. The default setting for this value is Yes. |
[/DhcpOption60:{Yes | No}] | Specifies whether DHCP option 60 should be configured for PXE support. If DHCP and Windows Deployment Services are running on the same server, set this option to Yes and set the /UseDhcpPorts option to No. The default setting for this value is No. |
[/RpcPort:<Port number>] | Specifies the TCP port number to be used to service client requests. |
[/PxepromptPolicy] | Configures how known (prestaged) and new clients initiate a PXE boot. This option only applies to Windows Server 2008 R2. You set the settings using the following options: - [/Known:{OptIn|OptOut|Noprompt}] - Sets the policy for prestaged clients. OptIn means the client needs to press a key in order to PXE boot, otherwise it will fall back to the next boot device. Noprompt means the client will always PXE Boot. OptOut means the client will PXE boot unless the Esc key is pressed. |
[/BootProgram:<Relative path>] /Architecture:{x86 | ia64 | x64} | Specifies the relative path to the boot program in the remoteInstall folder (for example, boot\x86\pxeboot.n12), and specifies the architecture of the boot program. |
[/N12BootProgram:<Relative path>] /Architecture:{x86 | ia64 | x64} | Specifies the relative path to the boot program that does not require pressing the F12 key (for example, boot\x86\pxeboot.n12), and specifies the architecture of the boot program. |
[/BootImage:<Relative path>] /Architecture:{x86 | ia64 | x64} | Specifies the relative path to the boot image that booting clients should receive, and specifies the architecture of the boot image. You can specify this for each architecture. |
[/PreferredDC:<DC Name>] | Specifies the name of the domain controller that Windows Deployment Services should use. This can be either the NetBIOS name or the FQDN. |
[/PreferredGC:<GC Name>] | Specifies the name of the global catalog server that Windows Deployment Services should use. This can be either the NetBIOS name or the FQDN. |
[/PrestageUsingMAC:{Yes | No}] | Specifies whether Windows Deployment Services, when creating computer accounts in AD DS, should use the MAC address rather than the GUID/UUID to identify the computer. |
[/NewMachineNamingPolicy:<Policy>] | Specifies the format to use when generating computer names for clients. For information about the format to use for <policy>, right-click the server in the mmc snap-in, click Properties, and view the directory Services tab. For example, /NewMachineNamingPolicy: %61Username%#. |
[/NewMachineOU] | Used to specify the location in AD DS where client computer accounts will be created. You specify the location using the following options. - [/type: Serverdomain | Userdomain | UserOU | Custom ] Specifies the type of location. Serverdomain creates accounts in the same domain as the Windows Deployment Services server. Userdomain creates accounts in the same domain as the user performing the installation. UserOU creates accounts in the organizational unit of the user performing the installation. Custom allows you to specify a custom location (you must also specify a value for /OU with this option). |
[/DomainSearchOrder:{GCOnly | DCFirst}] | Specifies the policy for searching computer accounts in AD DS (global catalog or domain controller). |
[/NewMachineDomainJoin:{Yes | No}] | Specifies whether or not a computer that is not already prestaged in AD DS should be joined to the domain during installation. The default setting is Yes. |
[/WdsClientLogging] | Specifies the logging level for the server. - [/Enabled:{Yes | No}] - Enables or disables logging of Windows Deployment Services client actions. |
[/WdsUnattend] | These settings control the unattended installation behavior of Windows Deployment Services client. You set the settings using the following options: - [/Policy:{Enabled | Disabled}] - Specifies whether or not unattended installation is used. |
[/AutoaddPolicy] | These settings control the Auto-add policy. You define the settings using the following options: - [/Policy: {AdminApproval | Disabled}] - AdminApprove causes all unknown computers to be added to a pending queue, where the administrator can then review the list of computers and approve or reject each request, as appropriate. Disabled indicates that no additional action is taken when an unknown computer attempts to boots to the server. |
[/AutoaddSettings] | Specifies the default settings to be applied to each computer. You define the settings using the following options: - /Architecture: {x86 | ia64 | x64} - Specifies the architecture. |
[/BindPolicy] | Configures the network interfaces for the PXE provider to listen on. You define the policy using the following options: - [/Policy: {Include | Exclude}] - Sets the interface bind policy to include or exclude the addresses on the interface list. |
[/RefreshPeriod: <seconds>] | Specifies how often (in seconds) the server will refreshes its settings. |
[/BannedGuidPolicy] | Manages the list of banned GUIDs using the following options: - [/add] /Guid:<GUID> - adds the specified GUID to the list of banned GUIDs. Any client with this GUID will be identified by its MAC address instead. |
[/BcdRefreshPolicy] | Configures the settings for refreshing Bcd files using the following options: - [/Enabled:{Yes | No}] - Specifies the Bcd refreshing policy. When /Enabled is set to Yes, Bcd files are refreshed at the specified time interval. |
[/Transport] | Configures the following options:
|
Examples
To set the server to answer only known clients, with a response delay of 4 minutes, type:
wdsutil /Set-Server /AnswerClients:Known /Responsedelay:4
To set the boot program and architecture for the server, type:
wdsutil /Set-Server /BootProgram:boot\x86\pxeboot.n12 /Architecture:x86
To enable logging on the server, type:
wdsutil /Set-Server /WdsClientLogging /Enabled:Yes /LoggingLevel:Warnings
To enable unattend on the server, as well as the architecture and the client unattend file, type:
wdsutil /Set-Server /WdsUnattend /Policy:Enabled /File:WDSClientUnattend \unattend.xml /Architecture:x86
To set the Pre-Boot execution Environment (PXE) server to attempt to bind to TCP ports 67 and 60, type:
wdsutil /Set-server /UseDhcpPorts:No /DhcpOption60:Yes