How To – Konfiguration WDS über Powershell

Konfiguration der Windows Bereitstellungsdienste / Windows Deployment Services / WDS

Die Anleitung ist gültig für eine Installation auf einem Server:

  • Windows Server 2016 (Desktop Experience/Core)
  • Windows Server 2012 & 2012 R2 (Desktop Experience/Core)

Voraussetzungen / Prerequisites

  • Installierte Rolle Windows Bereitstellungsdienste / Windows Deployment Services
  • Windows Server / Windows 10 etc. Installationsmedium oder Installationsdateien. In diesem Fall Windows 10 Enterprise.
  • Windows Powershell mit administrativen Berechtigungen ( Als Administrator ausführen / Run as Administrator )

Übersicht

Folgende Konfigurationseinstellungen sollen konfiguriert werden:

  1. Erstkonfiguration / Initialize Server

1. Erstkonfiguration / Initialize Server

Die Powershell bietet und hier keine Möglichkeit die Erstkonfiguration des WDS durchzuführen. Deshalb müssen wir das eigene Tool wdsutil dafür nutzen. Das Arbeitsverzeichnis und die Freigabe „RemoteInstall“ wird auf dem Server angelegt und mit dem Arbeitsverzeichnis verheiratet.

Empfehlung: Der WDS Arbeitsordner sollte nicht auf die Systempartition gelegt werden, sondern auf eine Separate. In diesem Beispiel „D:\“. Beim Deployment wird hier eine hohe Latenz erzeugt.

WDSUTIL /Verbose /Progress /Initialize-Server /Server:MyWDSServer /REMINST:"D:\WDS"
Windows Deployment Services Management Utility [Version 10.0.14393.2248]
© 2016 Microsoft Corporation. All rights reserved.

Setting up server...

-> Creating the installation tree for Windows Deployment Services

---> Creating the installation root for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\D$\WDS

---> Creating the share for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Images

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Boot

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Boot\x86\Images

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Boot\ia64\Images

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Boot\arm\Images

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Boot\x64\Images

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Boot\Fonts

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Tmp

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Mgmt

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\WdsClientUnattend

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Templates

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Stores\Drivers

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Stores\Staging

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Stores\Drivers\Metadata\Backup

---> Creating the folder for Windows Deployment Services at \\MB-SRV-WDS16.hs-kempten.local\REMINST\Stores\Metadata

-> Installing Windows Deployment Services files

---> Installing system files

Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080A


Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080B

.

---> Installing boot files for x86

Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080A


Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080B

..........

---> Installing boot files for ia64

Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080A


Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080B

..

---> Installing boot files for x64

Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080A


Warning: Could not find a description for a message that was meant to
         be displayed.
Message ID: 0x4104080B

...........

-> Updating the registry

-> Configuring the TFTP provider

-> Configuring service control point settings

== WDS operational mode: Native ==
== Standalone configuration: No ==

Enabling services for Windows Deployment Services...

Starting the services for Windows Deployment Services...

The command completed successfully.

Wird ein DHCP mit DHCP Rogue Detection ausgeführt (default: deaktiviert) dann muss der WDS noch im DHCP registriert werden.

WDSUTIL /Verbose /Progress /Initialize-Server /Server:MyWDSServer /REMINST:"D:\WDS" /Authorize