This section describes the Get-MDTMonitorData Windows PowerShell cmdlet. Run this cmdlet from a Windows PowerShell console that has the MDT PowerShell snap-in loaded. For more information on how to start a Windows PowerShell console that has the MDT PowerShell snap-in loaded, see Loading the MDT Windows PowerShell Snap-In.
Syntax
Get-MDTMonitorData [-Path <String>] [-ID <Nullable>] [<CommonParameters>]
Description
This cmdlet displays the MDT monitoring data that is being reported to the deployment share that is specified in the Path parameter. The following is example output from this cmdlet:
Name : WDG-REF-01
PercentComplete : 100
Settings :
Warnings : 0
Errors : 0
DeploymentStatus : 3
StartTime : 5/23/2012 6:45:39 PM
EndTime : 5/23/2012 8:46:32 PM
ID : 1
UniqueID : 94a0830e-f2bb-421c-b1e0-6f86f9eb9fa1
CurrentStep : 88
TotalSteps : 88
StepName :
LastTime : 5/23/2012 8:46:32 PM
DartIP :
DartPort :
DartTicket :
VMHost : WDG-HOST-01
VMName : WDG-REF-01
ComputerIdentities : {}
Note The MDTProvider Windows PowerShell drive that this cmdlet references must exist prior to running this cmdlet.
Parameters
This subsection provides information about the various parameters that you can use with the Get- MDTMonitorData cmdlet.
-Path <String>
This parameter specifies the MDTProvider Windows PowerShell drive for the desired deployment share.
Note If this parameter is not provided, then the Windows PowerShell working directory must default to a location within the desired MDTProvider Windows PowerShell drive.
Parameter |
Value |
Required? |
False |
Position? |
2 and Named |
Default value |
– |
Accept pipeline input? |
False |
Accept wildcard characters? |
False |
-ID <Nullable>
This parameter specifies the specific identifier for the deployment of a specific computer. If this parameter is not specified, then all monitoring data for deployments in the deployment share are displayed.
Parameter |
Value |
Required? |
False |
Position? |
3 and Named |
Default value |
– |
Accept pipeline input? |
False |
Accept wildcard characters? |
False |
<CommonParameters>
This cmdlet supports the following common parameters: Verbose, Debug, ErrorAction, ErrorVariable, OutBuffer, OutVariable, WarningAction, and WarningVariable. For more information, see the topic, “about_CommonParameters,” which you can access by typing the following command, and then pressing ENTER:
Get-Help about_CommonParameters
Outputs
This cmdlet outputs a PSObject type object for each monitored computer, which contains the monitoring data for the computer.
Example 1
Get-MDTMonitorData –Path DS001:
Description
This example returns the monitoring data for all deployments in the deployment share that is specified in the DS001: MDTProvider Windows PowerShell drive.
Example 2
cd DS001:
Get-MDTMonitorData
Description
This example returns the monitoring data for all deployments in the deployment share that is specified in the DS001: MDTProvider Windows PowerShell drive. Use the cd command to set the working directory for Windows PowerShell to the DS001: MDTProvider Windows PowerShell drive.
Example 3
Get-MDTMonitorData –Path DS001: -ID 22
Description
This example returns the monitoring data for the deployment with an ID of 22 in the deployment share that is specified in the DS001: MDTProvider Windows PowerShell drive.
Related Topics