1.

Solve : query software?

Answer»

I have SCRIPT that will let you know all of software installed in your local machine by searching the key in your register.

Code: [Select]@Echo Off
Setlocal
For /f "tokens=1,2,*" %%i in ('Reg Query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall /S ^| Find /I "DisplayName"') Do Call [color=red]:softname[/color] "%%k"
Endlocal
Goto :EOF

[color=red]:softname[/color]
Set keyname=%1
If %keyname%=="" goto :EOF
Echo %keyname:"=%
Goto :EOF
And you ALSO can query software a network machine by using \\"pc-name or IP"\HKLM\.....
I tested to query a Win2k3 machine in my network. It is a virtual machine (VM) and network environment is workgroup. And you must have permission to run this script


Issue: when i tried to query a vista machine in domain using domain admin permission, the script met ERROR. But it was OK when i tried to query in that vista local machine
Sorry i can't attachment the error now (i am not at home now), i will attachment the error message later.
Thanks.


Update picture.
it seem not is domain or workgroup issue. I think the problem make my script run incorrect is different OS (vista). Here is the picture i try query soft from VM (win2k3 SP2) to host (Vista SP1 lastest update), 2 Machine in Workgroup


And host to VM

I disable all the FW, and use highest permission
NEED help... Not every OS allow remote operation registry. If you need run the command like reg query \\xxx.xxx.xxx.xxx\..., please make sure the service Remote Registry is started on the remote OS.Quote from: Batcher on APRIL 20, 2009, 06:45:48 AM

Not every OS allow remote operation registry. If you need run the command like reg query \\xxx.xxx.xxx.xxx\..., please make sure the service Remote Registry is started on the remote OS.

Many thank you, Batcher, how can i forgot the services


Discussion

No Comment Found