< Back

Install-CRegistryKey

Sun Jan 12, 2020 10:20 pm

NAME Install-CRegistryKey



SYNOPSIS

Creates a registry key. If it already exists, does nothing.





SYNTAX

Install-CRegistryKey [-Path] <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Given the path to a registry key, creates the key and all its parents. If the key already exists, nothing happens.





PARAMETERS

-Path <String>

The path to the registry key to create.



Required? true

Position? 1

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:\\>Install-CRegistryKey -Path 'hklm:\\Software\\Carbon\\Test'



Creates the `hklm:\\Software\\Carbon\\Temp` registry key if it doesn't already exist.











RELATED LINKS