NBTSTAT

nbtstat  -A 192.168.1.1 [Lists the remote machine’s name table given its IP address.]

>NBTSTAT /?

Displays protocol statistics and current TCP/IP connections using NBT
(NetBIOS over TCP/IP).

NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n]
[-r] [-R] [-RR] [-s] [-S] [interval] ]

-a   (adapter status) Lists the remote machine’s name table given its name
-A   (Adapter status) Lists the remote machine’s name table given its
IP address.
-c   (cache)          Lists NBT’s cache of remote [machine] names and their IP addresses
-n   (names)          Lists local NetBIOS names.
-r   (resolved)       Lists names resolved by broadcast and via WINS
-R   (Reload)         Purges and reloads the remote cache name table
-S   (Sessions)       Lists sessions table with the destination IP addresses
-s   (sessions)       Lists sessions table converting destination IP
addresses to computer NETBIOS names.
-RR  (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refresh

RemoteName   Remote host machine name.
IP address   Dotted decimal representation of the IP address.
interval     Redisplays selected statistics, pausing interval seconds
between each display. Press Ctrl+C to stop redisplaying
statistics.

Export Registry Key with a CMD Script

CMP PROMPT>reg.exe export /?

REG EXPORT KeyName FileName [/y]

Keyname    ROOTKEY[\SubKey] (local machine only).
ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey   The full name of a registry key under the selected ROOTKEY.

FileName   The name of the disk file to export.

/y       Force overwriting the existing file without prompt.

Examples:

REG EXPORT HKLM\Software\MyCo\MyApp File01.reg
Exports all subkeys and values of the key MyApp to the file File01.reg

Delete registry key with a CMD script.

CMD PROMPT>reg.exe delete /?

REG DELETE KeyName [/v ValueName | /ve | /va] [/f]

KeyName    [\\Machine\]FullKey
Machine  Name of remote machine – omitting defaults to the current machine.
Only HKLM and HKU are available on remote machines.
FullKey  ROOTKEY\SubKey
ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey   The full name of a registry key under the selected ROOTKEY.

ValueName  The value name, under the selected Key, to delete.
When omitted, all subkeys and values under the Key are deleted.

/ve        delete the value of empty value name (Default).

/va        delete all values under this key.

/f         Forces the deletion without prompt.

Examples:

REG DELETE HKLM\Software\MyCo\MyApp\Timeout
Deletes the registry key Timeout and its all subkeys and values

REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
Deletes the registry value MTU under MyCo on ZODIAC