Reg_DeleteVariable

SYNOPSIS

Deletes a registry value.

SYNTAX

__AllParameterSets

Reg_DeleteVariable [-RegRoot] <string> [-RegPath] <string> [-RegValue] <string> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases,

DESCRIPTION

Deletes a registry value in the registry, if RegRoot is HKCU, the function will delete the value for all users that have logged on to the unit and future users.

EXAMPLES

EXAMPLE 1

Reg_DeleteVariable -RegRoot “HKLM” -RegPath “SOFTWARE\CapaSystems” -RegValue “Test”

EXAMPLE 2

Reg_DeleteVariable -RegRoot “HKCU” -RegPath “SOFTWARE\CapaSystems” -RegValue “Test”

PARAMETERS

-RegPath

The path of the registry key.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-RegRoot

The root of the registry key, can be HKLM, HKCU or HKU.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-RegValue

The name of the registry value.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

For more information, please visit https://capasystems.atlassian.net/wiki/spaces/CI65DOC/pages/19462455802/cs.Reg+DeleteVariable