< Back
Reset-DSCResource
Post
NAME Reset-DSCResource
SYNOPSIS
Removes automatically generated DSC resources
SYNTAX
Reset-DSCResource [-ModuleRoot] <String> [-MinimumVersion <Version>] [-MaximumVersion <Version>] [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Removes resources that were generated based off of .resource.ps1 files.
PARAMETERS
-ModuleRoot <String>
The root directory of the module.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MinimumVersion <Version>
If provided, will not reset resources whose version number is less then the provided value
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MaximumVersion <Version>
If provided, will not reset resources whose version number is greater then the provided value
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:\\>Reset-DSCResource $env:ProgramFiles\\WindowsPowerShell\\Modules\\cFg
RELATED LINKS
Initialize-DSCResource
SYNOPSIS
Removes automatically generated DSC resources
SYNTAX
Reset-DSCResource [-ModuleRoot] <String> [-MinimumVersion <Version>] [-MaximumVersion <Version>] [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Removes resources that were generated based off of .resource.ps1 files.
PARAMETERS
-ModuleRoot <String>
The root directory of the module.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MinimumVersion <Version>
If provided, will not reset resources whose version number is less then the provided value
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MaximumVersion <Version>
If provided, will not reset resources whose version number is greater then the provided value
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:\\>Reset-DSCResource $env:ProgramFiles\\WindowsPowerShell\\Modules\\cFg
RELATED LINKS
Initialize-DSCResource