< Back

Remove-CRegistryKeyValue

Sun Jan 12, 2020 10:55 pm

NAME Remove-CRegistryKeyValue



SYNOPSIS

Removes a value from a registry key, if it exists.





SYNTAX

Remove-CRegistryKeyValue [-Path] <String> [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

If the given key doesn't exist, nothing happens.





PARAMETERS

-Path <String>

The path to the registry key where the value should be removed.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

The name of the value to remove.



Required? true

Position? 2

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



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



PS C:\\>Remove-CRegistryKeyValue -Path hklm:\\Software\\Carbon\\Test -Name 'InstallPath'



Removes the `InstallPath` value from the `hklm:\\Software\\Carbon\\Test` registry key.











RELATED LINKS