This project is read-only.

Get-Registry

Get-Registry([string]$computername, [switch]$HKEY_CLASSES_ROOT, [switch]$HKEY_LOCAL_MACHINE, [switch]$HKEY_USERS, [parameter(mandatory=$true)][string]$path, [string]$name, [switch]$tree)
This function gets registry.

Parameters
Name Necessary Summary
computername No remote computer name.
HKEYCLASSESROOT No hive chosen. only one hive should be chosen.
HKEYLOCALMACHINE No hive chosen. only one hive should be chosen.
HKEY_USERS No hive chosen. only one hive should be chosen.
path Yes registry path.
name No registry name. tree or name should be input.
tree No to get list of path and name and value. tree or name should be input.


Returns
value or list.

ex)
# get list
$r = Get-Registry -HKEY_LOCAL_MACHINE -path "software\microsoft\windows nt\currentversion\winlogon" -tree;
# check the result out
$r;
# get value
$r = Get-Registry -HKEY_LOCAL_MACHINE -path "software\microsoft\windows nt\currentversion\winlogon" -name "shell";
# check
$r;

Last edited Mar 2, 2013 at 12:23 PM by Tom__S, version 3

Comments

No comments yet.