< Back

Clear-DSCData

Mon Jan 13, 2020 12:32 am

NAME Clear-DSCData



SYNOPSIS

Clears data stored in DSC





SYNTAX

Clear-DSCData [-ComputerName <String>] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]



Clear-DSCData [-ResourceName] <String> [-ComputerName <String>] [-Credential <PSCredential>] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Clears data stored in DSC resource instances





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 computer name



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



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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.Nullable





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



PS C:\\>Clear-DSCData # Clear all DSC Data













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



PS C:\\>Clear-DSCData -ResourceName "MonitorDiskSpace" # Clear all data from the DSC resource monitor disk space















RELATED LINKS

Get-DSCData