In addition to the Deployment Workbench, MDT deployment shares can be managed using Windows PowerShell cmdlets. The MDT Windows PowerShell cmdlets are included in a Windows PowerShell snap-in—Microsoft.BDD.PSSnapIn—which is included with the installation of MDT.

The MDT cmdlets must be run from a Windows PowerShell console that has the MDT Windows PowerShell snap-in loaded. For more information on how to start a Windows PowerShell console that has the MDT Windows PowerShell snap-in loaded, see Loading the MDT Windows PowerShell Snap-In.

Table 7 lists the MDT Windows PowerShell cmdlets and provides a brief description of each cmdlet. Each cmdlet is discussed in further detail in a subsequent section.

Table 7. MDT Windows PowerShell Cmdlets

Cmdlet

Description

Add-MDTPersistentDrive

Adds a deployment share to the list of MDT persisted drives that can be restored using the Restore-MDTPersistentDrive cmdlet.

Disable-MDTMonitorService

Disables the MDT monitoring services.

Enable-MDTMonitorService

Enables the MDT monitoring services.

Get-MDTDeploymentShareStatistics

Displays the statistics of a deployment share, including the number of entities per major folder in the deployment share.

Get-MDTMonitorData

Displays the MDT monitoring information collected for one or more monitored MTD deployments.

Get-MDTOperatingSystemCatalog

Returns the operating system catalog for a specific operating system. If the operating system catalog does not exist or is out of date, then the operating system catalog is regenerated.

Get-MDTPersistentDrive

Displays the list of deployment shares that can be restored using the Restore-MDTPersistentDrive cmdlet.

Import-MDTApplication

Imports an application into a deployment share.

Import-MDTDriver

Imports one or more device drivers into a deployment share.

Import-MDTOperatingSystem

Imports one or more operating systems into a deployment share.

Import-MDTPackage

Imports one or more operating system packages into a deployment share.

Import-MDTTaskSequence

Imports a task sequence into a deployment share.

New-MDTDatabase

Creates or upgrades an MDT DB database that is associated with a deployment share.

Remove-MDTMonitorData

Removes one or more MDT monitoring data items from the collected MDT monitoring data in a deployment share.

Remove-MDTPersistentDrive

Removes a deployment share from the list of MDT persisted Windows PowerShell drives that can be restored using the Restore-MDTPersistentDrive cmdlet.

Restore-MDTPersistentDrive

Creates a Windows PowerShell drive for each deployment share in the list of MDT persisted Windows PowerShell drives.

Set-MDTMonitorData

Creates a new or updates an existing MDT monitoring data item in the collected MDT monitoring data in a deployment share.

Test-MDTDeploymentShare

Verifies the integrity of a deployment share.

Test-MDTMonitorData

Verifies that the MDT monitoring services is configured correctly and running.

Update-MDTDatabaseSchema

Updates the MDT DB database schema.

Update-MDTDeploymentShare

Updates a deployment share.

Update-MDTLinkedDS

Replicates content from a deployment share to a linked deployment share.

Update-MDTMedia

Replicates content from a deployment share to a deployment media folder.

 

Related Topics

Toolkit Reference
Add-MDTPersistentDrive
Disable-MDTMonitorService
Enable-MDTMonitorService
Get-MDTDeploymentShareStatistics
Get-MDTMonitorData
Get-MDTOperatingSystemCatalog
Get-MDTPersistentDrive
Import-MDTApplication
Import-MDTDriver
Import-MDTOperatingSystem
Import-MDTPackage
Import-MDTTaskSequence
New-MDTDatabase
Remove-MDTMonitorData
Remove-MDTPersistentDrive
Restore-MDTPersistentDrive
Set-MDTMonitorData
Test-MDTDeploymentShare
Test-MDTMonitorData
Update-MDTDatabaseSchema
Update-MDTDeploymentShare
Update-MDTLinkedDS
Update-MDTMedia