< Back

Get-DSCData

Mon Jan 13, 2020 12:33 am

NAME Get-DSCData



SYNOPSIS

Gets data generated by a DSC resource





SYNTAX

Get-DSCData [-ComputerName <String>] [-Credential <PSCredential>] [-Raw] [<CommonParameters>]



Get-DSCData [-ResourceName] <String> [-ComputerName <String>] [-Credential <PSCredential>] [-Raw]

[<CommonParameters>]





DESCRIPTION

Gets data that was generated by a DSC resource.





PARAMETERS

-ResourceName <String>

The name of the DSC resource.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ComputerName <String>

The name of the computer



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The credential used to connect to the remote computer.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Raw [<SwitchParameter>]

If set, raw WMI data will be returned. Raw data will include many empty additional properties, and will

return datetimes in DMTF format.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-DSCData













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-DSCData -ResourceName "MonitorDiskSpace"















RELATED LINKS

Clear-DSCData