Rajesh
Rajesh

Reputation: 31

REG QUERY Key with a space in the name

I am new to linux. Please help !!

I am trying to read the windows registry key entry on a remote (windows) system using the below rsh command which has a space in the folder name. Kindly let me know how to resolve this.

rsh <"remote_ip"> REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
ERROR: Invalid syntax.
Type "REG QUERY /?" for usage.

Thanks, Rajesh

Upvotes: 3

Views: 4901

Answers (1)

Martin
Martin

Reputation: 3472

When the path contains names with space, use quotes as shown

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc."

Upvotes: 1

Related Questions