Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Get a remote machines Run prompt data

Hi,

When we enter any command or machine name in the windows run prompt.It gets stored.I want to get these details to a file.

Say i have the machine names in the file.What i want is to get the Run prompt data to a file.

Machinename
\\machinename
services.msc
Mstsc
etc

Regards
Sharath
Avatar of Alan Huseyin Kayahan
Alan Huseyin Kayahan
Flag of Sweden image

         Hi Sharath
             reg query "\\machinename\HKCU\Software\Microsoft\Windows\Currentversion\Explorer\Runmru >>c:\result.txt

Regards
Avatar of bsharath

ASKER

Mrhusy

I get this...

C:\>reg query \\dev-chen-mrd100\HKCU\Software\Microsoft\Windows\Currentversion\E
xplorer\Runmru >>c:\result.txt
ERROR: A remote machine was specified, the root key must be HKLM or HKU.
Type "REG QUERY /?" for usage.
ASKER CERTIFIED SOLUTION
Avatar of Alan Huseyin Kayahan
Alan Huseyin Kayahan
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I get this...

C:\>reg query "\\dev-chen-mrd100\HKU\Software\Microsoft\Windows\Currentversion\E
xplorer\Runmru >>c:\result.txt
ERROR: The system was unable to find the specified registry key or value.
Avatar of duffman76
duffman76

C:\>reg query "\\FullyQualifiedWorkstationName\HKU\.DEFAULT\Software\Microsoft\Windows\Cur
rentversion\Explorer\Runmru" >>c:\result.txt

You needed the .DEFAULT or the SID number of the client.
You needed the .DEFAULT or the SID number of the client.

What does this mean.

Machinename.domainname
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial