Microsoft Deployment Toolkit
Documentation Library Viewing Deployment Share Properties Using Windows PowerShell |
You can view the properties of MDT deployment shares using the Get-ItemProperty cmdlet and the MDTProvider Windows PowerShell provider. These same properties can also be seen in the Deployment Workbench.
To view deployment share properties using the MDT Windows PowerShell cmdlets
1. Load the MDT Windows PowerShell snap-in as described in Loading the MDT Windows PowerShell Snap-In.
2. Ensure the MDT deployments share Windows PowerShell drives are restored using the Restore-MDTPersistentDrive cmdlet, as shown in the following example:
Restore-MDTPersistentDrive -Verbose
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 that are provided using the MDTProvider are listed.
4. View the properties of the deployment share using the Get-ItemProperty cmdlet, as shown in the following example:
Get-ItemProperty "DS002:"
In this example, DS002: is the name of a Windows PowerShell drive returned in step 3. The cmdlet returns the properties for the deployment share.
Related Topics