|Microsoft Deployment Toolkit
Updating a Deployment Share Using Windows PowerShell
You can update deployment shares using the Update-MDTDeploymentShare cmdlet and the MDTProvider Windows PowerShell provider. Updating a deployment share creates the Windows PE boot images (WIM and International Organization for Standardization [ISO] files) necessary to start LTI deployment. You can perform the same process using the Deployment Workbench, as described in Update a Deployment Share in the Deployment Workbench.
To update a deployment share using Windows PowerShell
1. Load the MDT Windows PowerShell snap-in as described in Loading the MDT Windows PowerShell Snap-In.
2. Ensure that the MDT deployments that share Windows PowerShell drives are restored using the Restore-MDTPersistentDrive cmdlet, as shown in the following example:
Note If the MDT deployments that share Windows PowerShell drives are already restored, you will receive a warning message indicating that the cmdlet is unable to restore the drive.
3. Verify that the MDT deployments that share Windows PowerShell drives are restored properly using the Get-PSDrive cmdlet, as follows:
Get-PSDrive -PSProvider Microsoft.BDD.PSSnapIn\MDTProvider
The list of Windows PowerShell drives provided using the MDTProvider are listed.
4. Update the deployment share using the Update-MDTDeploymentShare cmdlet, as shown in the following example:
Update-MDTDeploymentShare -Path "DS002:" -Force
In this example, DS002: is the name of a Windows PowerShell drive returned in step 3.
Note Updating the deployment share can take a long time. The progress of the cmdlet is shown at the top of the Windows PowerShell console.
The cmdlet returns with no output if the update is successful.