This project is read-only.

After Preparation you can build the Hydration Kit in 3 simple stages.

Download Software
Build Kit
Create Media

After the media is built, follow the usage guide here.

Last edited Jan 30, 2013 at 6:36 PM by Scriptimus, version 5

Comments

binaryman1 Aug 5, 2015 at 8:49 PM 
Hi Andrew,

This is regarding the hydration kit for Server 2008 R2. I am a real green newbie. I believe that I now have the ISO

created correctly in the 2008 server r2 hydration kit. There is not much discussion of this now, so I was not sure

where to put this post, so here it is.. When you say put it in a server, I am uncertain as to how to proceed. When I

have created a virtual server in VirtualBox and then put the ISO in its DVD player, it runs briefly and then shows "
Unable to load VBScript file:
D:\Deploy\Scripts\DeployWiz_TestLab.vbs"

Does this mean I am missing .vbs files. where should I look for them? I did not move any files. Did they just not get

made? I have been struggling with this for awhile. Any help to get this lab assembled would be appreciated.

binaryman1 Jan 5, 2015 at 3:22 AM 
I have tried using the help and have not had any success. I've pasted in the suggested commands and still no joy.

binaryman1 Jan 5, 2015 at 3:20 AM 
I would love to say that this worked perfectly, but it is not. Here is what I got in my Powershell:

PS C:\Users\SeanC\Desktop\HydrationKit\Build> .\build-kit.ps1
======================================================================================
======================================================================================

TestLab: Base Configuration - Hydration Kit by Andrew Barnes
Version 1.02 24 February 2013

http://testlabhydrationkit.codeplex.com
http://scriptimus.wordpress.com
http://twitter.com/AndrewBarnes_

Run the scripts in the following order:

.\Get-Software.ps1 - Download required tools
.\Build-Kit.ps1 - Create Hydration Kit Deployment Share - Needs MDT
.\Create-Media.ps1 - Create ISO for deployment - Needs AIK or ADK

Microsoft Deployment Toolkit is used to build the deployment media.

All scripts are self documenting. Use Get-Help for more information.
Example: Get-Help .\Get-Software.ps1 -Detailed

======================================================================================
======================================================================================
Method invocation failed because [System.Char] does not contain a method named 'Substring'.
At C:\Users\SeanC\Desktop\HydrationKit\Build\Modules\TestLab.psm1:141 char:9
+ $MDTDrive = ((Get-MDTPersistentDrive | Sort name).name[-1]).Substring(2) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound

The name has already been shared.

More help is available by typing NET HELPMSG 2118.


Name Used (GB) Free (GB) Provider Root CurrentLocation
---- --------- --------- -------- ---- ---------------
DS001 MDTProvider C:\TestlabDS
New-Item : Item already exists: 'C:\TestlabDS\Media\MEDIA001' specified.
At C:\Users\SeanC\Desktop\HydrationKit\Build\Modules\TestLab.psm1:358 char:13
+ New-Item -path ($Name +":\Media") -enable "True" -Name "MEDIA001" -C ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (C:\TestlabDS\Media\MEDIA001:String) [New-Item], DeploymentPointExcept
ion
+ FullyQualifiedErrorId : ItemAlreadyExists,Microsoft.PowerShell.Commands.NewItemCommand

MEDIA001 MDTProvider C:\TestLab_BaseConfigMedia\Conte...


PS C:\Users\SeanC\Desktop\HydrationKit\Build> .\create-media.ps1
======================================================================================
======================================================================================

TestLab: Base Configuration - Hydration Kit by Andrew Barnes
Version 1.02 24 February 2013

http://testlabhydrationkit.codeplex.com
http://scriptimus.wordpress.com
http://twitter.com/AndrewBarnes_

Run the scripts in the following order:

.\Get-Software.ps1 - Download required tools
.\Build-Kit.ps1 - Create Hydration Kit Deployment Share - Needs MDT
.\Create-Media.ps1 - Create ISO for deployment - Needs AIK or ADK

Microsoft Deployment Toolkit is used to build the deployment media.

All scripts are self documenting. Use Get-Help for more information.
Example: Get-Help .\Get-Software.ps1 -Detailed

======================================================================================
======================================================================================
Get-ChildItem : Cannot find path 'C:\a' because it does not exist.
At C:\Users\SeanC\Desktop\HydrationKit\Build\Modules\TestLab.psm1:474 char:13
+ Get-ChildItem -Path $Kit\$Arch\ -Filter $Name -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\a:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command
name, a script block, or a CommandInfo object.
At line:1 char:3
+ & "" -u1 C:\TestLab_BaseConfigMedia\Content "C:\Users\SeanC\Desktop\HydrationKit ...
+ ~~
+ CategoryInfo : InvalidOperation: (:String) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression

PS C:\Users\SeanC\Desktop\HydrationKit\Build>

When I tried to install MDT, it said I already had a more recent version. I am in Windows 8.1 and after I have created the ISO I plan to mount it in Virtual Box and proceed from there to create all the servers etc. Any idea what I am doing wrong?

Endorean Mar 15, 2014 at 11:14 AM 
Hello,
I'm also getting the same error message with the English edition of Windows 7 and Windows 8.1
Not sure how to fix.
Thanks.

mountainbrother Mar 10, 2013 at 7:19 PM 
Great idea really great
i have some trouble with the deployment of built and create media

i download alle the preparation software
install it
run as admin the scripts in powershell
uac is off
but it get this message :

Fehler beim Aufrufen der Methode, da [System.Char] keine Methode mit dem Namen "Substring" enthält.
Bei C:\Build\Modules\TestLab.psm1:141 Zeichen:78
+ $MDTDrive = ((Get-MDTPersistentDrive | Sort name).name[-1]).Substring <<<< (2) -as [int]
+ CategoryInfo : InvalidOperation: (Substring:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound

this is on Windows 7 PRO German

next try i setup a server 2012 vm and make the steps here comes the message Error 3 thats it

iam not able to create media

please help
and greetings from germany