Digressive / gal-site-utterances

0 stars 0 forks source link

utils/mdt-setup/ #5

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

MDT Setup - A script to make MDT deployment easy – Mike Galvin - Technical Consultant

A script to install and configure MDT from scratch.

https://gal.vin/utils/mdt-setup/

elkader1983 commented 1 year ago

Hello Mike, it's me again and I've tried the updated script on a new site. Again a wall of blood: It starts with the MDT patch: Installing MDT Patch KB4564442 Copy-Item : Ein Teil des Pfades "C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Tools\x64" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:277 Zeichen:13

Copy-Item : Ein Teil des Pfades "C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Tools\x86" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:278 Zeichen:13

Import-Module : Das angegebene Modul "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1" wurde nicht geladen, da in keinem Modulverzeichnis eine gültige Moduldatei gefunden wurde. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:281 Zeichen:13

Creating Build Share New-Item : Ein Element mit dem angegebenen Namen "D:\DEPLOYMENT\BuildShare" ist bereits vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:286 Zeichen:13

New-SmbShare : Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:287 Zeichen:13

Add-MDTPersistentDrive : Die Benennung "Add-MDTPersistentDrive" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:288 Zeichen:175

Downloading Windows iso The Media Creation tool requires user interaction. Use this key to download your Windows iso: NPPR9-FWDCX-D2C8J-H872K-2YT43 Choose 'Create installation media' and then the 'ISO file' option to download an iso file. Please save the Windows iso file to the same folder that contains this script, otherwise things will fail Enter the name of the Windows iso file that you downloaded (default: windows.iso): Copying Windows source files Mount-DiskImage : Das System kann die angegebene Datei nicht finden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:312 Zeichen:17

Copy-Item : Der Pfad "\.\CDROM1\" kann nicht gefunden werden, da er nicht vorhanden ist. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:313 Zeichen:17

Dismount-DiskImage : Das System kann die angegebene Datei nicht finden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:314 Zeichen:17

Converting ESD to WIM

Tool zur Imageverwaltung für die Bereitstellung Version: 10.0.17763.3406

Fehler: 2

Das System kann die angegebene Datei nicht finden.

Die DISM-Protokolldatei befindet sich unter "C:\Windows\Logs\DISM\dism.log". Remove-Item : Der Pfad "C:\Program Files\WindowsPowerShell\Scripts\W10-22H2\sources\install.esd" kann nicht gefunden werden, da er nicht vorhanden ist. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:319 Zeichen:17

New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS001" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:323 Zeichen:13

Importing Windows to MDT Import-MDTOperatingSystem : Die Benennung "Import-MDTOperatingSystem" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:328 Zeichen:17

Get-ChildItem : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS001" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:329 Zeichen:29

Creating selection profile New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS001" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:338 Zeichen:13

New-Item : Es wurde kein Parameter gefunden, der dem Parameternamen "enable" entspricht. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:339 Zeichen:56

Downloading Build Task Sequence template Invoke-WebRequest : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Templates\Client-Build-Template.xml" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:343 Zeichen:13

Creating Build Task Sequence Import-MdtTaskSequence : Die Benennung "Import-MdtTaskSequence" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:348 Zeichen:17

Backing up original CustomSettings.ini Rename-Item : Das Umbenennen ist nicht möglich, da das Element unter "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" nicht vorhanden ist. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:354 Zeichen:13

Creating custom CustomSettings.ini Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:356 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:357 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:358 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:359 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:360 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:361 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:362 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:363 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:364 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:365 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:366 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:367 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:368 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:369 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:370 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:371 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:372 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:373 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:374 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:375 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:376 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:377 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:378 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:379 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:380 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:381 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:388 Zeichen:13

Configuring MDT Get-Content : Der Pfad "D:\DEPLOYMENT\BuildShare\Control\Settings.xml" kann nicht gefunden werden, da er nicht vorhanden ist. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:392 Zeichen:27

Out-File : Ein Teil des Pfades "D:\DEPLOYMENT\BuildShare\Control\Settings.xml" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:394 Zeichen:27

Updating Build share and generating boot media Update-MDTDeploymentShare : Die Benennung "Update-MDTDeploymentShare" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:398 Zeichen:13

Creating Deployment Share New-Item : Ein Element mit dem angegebenen Namen "D:\DEPLOYMENT\DeployShare" ist bereits vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:403 Zeichen:13

New-SmbShare : Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:404 Zeichen:13

Add-MDTPersistentDrive : Die Benennung "Add-MDTPersistentDrive" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:405 Zeichen:172

Creating selection profiles, package and driver folder structure New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS002" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:409 Zeichen:13

New-Item : Es wurde kein Parameter gefunden, der dem Parameternamen "enable" entspricht. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:410 Zeichen:56

New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS002" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:411 Zeichen:13

New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS002" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:412 Zeichen:13

New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS002" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:413 Zeichen:13

New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS002" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:414 Zeichen:13

New-Item : Das Laufwerk wurde nicht gefunden. Ein Laufwerk mit dem Namen "DS002" ist nicht vorhanden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:415 Zeichen:13

New-Item : Es wurde kein Parameter gefunden, der dem Parameternamen "enable" entspricht. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:416 Zeichen:56

Downloading Deploy Task Sequence template Invoke-WebRequest : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Templates\Client-Deploy-Template.xml" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:420 Zeichen:13

Backing up original CustomSettings.ini Rename-Item : Das Umbenennen ist nicht möglich, da das Element unter "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" nicht vorhanden ist. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:424 Zeichen:13

Creating custom CustomSettings.ini Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:426 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:427 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:428 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:429 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:430 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:431 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:432 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:433 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:434 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:435 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:436 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:437 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:438 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:439 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:440 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:441 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:442 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:443 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:444 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:445 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:446 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:447 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:448 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:449 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:450 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:451 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:452 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:453 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:454 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:455 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:456 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:457 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:458 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:459 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:460 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:461 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:462 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:463 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:464 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:465 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:466 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:467 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:468 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:469 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:470 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:471 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:472 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:473 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:474 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:481 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:482 Zeichen:13

Add-Content : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\CustomSettings.ini" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:483 Zeichen:13

Configuring MDT Get-Content : Der Pfad "D:\DEPLOYMENT\DeployShare\Control\Settings.xml" kann nicht gefunden werden, da er nicht vorhanden ist. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:488 Zeichen:27

Out-File : Ein Teil des Pfades "D:\DEPLOYMENT\DeployShare\Control\Settings.xml" konnte nicht gefunden werden. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:491 Zeichen:27

Updating Deploy share and generating boot media Update-MDTDeploymentShare : Die Benennung "Update-MDTDeploymentShare" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:495 Zeichen:13

Setting Share Permissions Grant-SmbShareAccess : Es wurden keine MSFT_SMBShare-Objekte gefunden, bei denen die Name-Eigenschaft gleich "BuildShare$" ist. Überprüfen Sie den Wert der Eigenschaft, und versuchen Sie es erneut. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:499 Zeichen:13

Grant-SmbShareAccess : Es wurden keine MSFT_SMBShare-Objekte gefunden, bei denen die Name-Eigenschaft gleich "DeployShare$" ist. Überprüfen Sie den Wert der Eigenschaft, und versuchen Sie es erneut. In C:\Program Files\WindowsPowerShell\Scripts\MDT-Setup.ps1:500 Zeichen:13

elkader1983 commented 1 year ago

With the silent setup of MDT there's also a problem...

Digressive commented 1 year ago

I see you have lots of errors. Are you running the script on a basic install of Windows Server? What version? I've used my script several times recently on Windows Server 2022 and had no problems.

I just could do with more information to see why you are having all these problems.

Thanks

elkader1983 commented 1 year ago

Hello, I’m running it on a pretty fresh install of Windows Server 2019 Standard. It seems that most of them are locale located – so I decided to setup the MDT Share manually again. Right now I’m generating images and want to install the first image…

nmarques133 commented 1 year ago

Hi Mike,

Trying to run your script but is giving me a couple errors, would you be able to assist?

281 | Import-Module "$env:ProgramFiles\Microsoft Deployment Too … | ~~~~~~~~~~~~~ | Could not load type 'System.Management.Automation.PSSnapIn' from assembly 'System.Management.Automation, | Version=7.3.4.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Add-MDTPersistentDrive: C:\Options\MDT-Setup.ps1:288 Line | 288 | … ath "\$env:ComputerName\$MdtBuildShareName" | Add-MDTPersistentDrive | ~~~~~~ | The term 'Add-MDTPersistentDrive' is not recognized as a name of a cmdlet, function, script file, or executable | program. Check the spelling of the name, or if a path was included, verify that the path is correct and try | again.

nmarques133 commented 1 year ago

Sorry was meant to say that I run the script on a fresh install Windows Server 2022 on a Domain.

Digressive commented 1 year ago

@nmarques133 From the error output it looks like it can't load the MDT PowerShell module. Are you running the script as Admin (elevated command prompt)?

I do want to make several improvements to the script as it is quite barebones currently.

nmarques133 commented 1 year ago

Hi, sorry with the bank holiday I was just able to test this again yesterday, and I found what the issue was.

I was using PowerShell 7.3.4, but it doesn't like that, we need to use the built-in PowerShell that comes with Windows Server, after running as an admin on the built-in PowerShell, it worked fine, thank you for getting back thought, much appreciated.

Digressive commented 1 year ago

@nmarques133 I'll make sure the powershell version in listed in the readme.md. Thanks!

itsupport-s2i commented 1 year ago

Hi, cool project. But i would like to share my experience. I have VM with Server 2019, i prepare blank machine and run your script. In general i use default settings, except user, OU and etc. i didn't have any errors.

finally i install WDS, copy boot file, but nothing happens. i booted via PXE and just enjoy "welcome screen".

so need to investigate where im fucked up.

paulclarke226 commented 11 months ago

Hi

Just created a brand new Server 2022 VM, running the script I get errors:

At C:\Scripts\MDT-Setup.ps1:31 char:60

JoeyNice commented 7 months ago

A small visual recommendation, I like to use a format with a leading 0 for file and folder names with dates. e.g. 2023-1-1_8_30 = 2023-01-01_08_30.

Add-Content -Path $MdtBuildShare\Control\CustomSettings.ini -Value "SLShare=\$env:ComputerName\$MdtBuildShareName\Logs#Right('0' & year(date), 4) & '-' & Right('0' & month(date), 2) & '-' & Right('0' & day(date), 2) & '_' & Right('0' & hour(time), 2) & '-' & Right('0' & minute(time), 2)#"

Add-Content -Path $MdtBuildShare\Control\CustomSettings.ini -Value "SLShareDynamicLogging=\$env:ComputerName\$MdtBuildShareName\DynamicLogs#Right('0' & year(date), 4) & '-' & Right('0' & month(date), 2) & '-' & Right('0' & day(date), 2) & '_' & Right('0' & hour(time), 2) & '-' & Right('0' & minute(time), 2)#"

Digressive commented 7 months ago

@JoeyNice I agree, thanks for this I'll incorporate it in the next update - today or tomorrow!