Windows has always provided a Registry editing tool such as regedit.exe for just this purpose.
Because Windows PowerShell exposes the Registry to the user as a drive, you may find it useful to
understand how to access Registry settings and if need be, make changes.
Standard boilerplate found on any Microsoft documentation that includes instructions for changing
values in the Registry includes a warning that incorrect use of the Registry editor can cause serious
problems that may require you to re - install your operating system. Using Windows PowerShell to
access and make changes to the Registry is no different from changing the Registry using any other
method. If you make a mistake, be prepared. Your efforts may produce unexpected results from which
you may be unable to recover.
The Windows PowerShell Registry provider exposes two Registry hives as Windows PowerShell drives:
The HKEY_LOCAL_MACHINE hive maps to the HKLM: drive. The HKLM: drive exposes
configuration information particular to the computer regardless of the currently logged - on user.
The HKEY_CURRENT_USER hive maps to the HKCU: drive. The HKCU: drive exposes
configuration information for the user that is currently logged on to the computer.
To access the Registry as a drive, simply change the current location to the appropriate drive using the
Set-Location cmdlet or one of its aliases.
Pages:
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111