What I am trying to accomplish is when quering a registry key on a remote pc by default the dos window does not display the remote machine name.
Example:
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\Software\Intel\Landesk\VirusPro tect6\CurrentVersion
Parent REG_SZ VAFXAVS10
now what I would like is for when selecting multiple machines and saving the output to a txt file to insert the pc's name in the txt file. How can this be accoplished? The current command I am using is:
cmd.exe /x /c reg query "\\%E%\HKLM\Software\Intel\Landesk\VirusProtect6\C urrentVersion" /v Parent >> c:\%E%_nav_parent.txt
which gives me a seperate .txt file for each machine. Any help would be greatly appreciated.
Example:
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\Software\Intel\Landesk\VirusPro tect6\CurrentVersion
Parent REG_SZ VAFXAVS10
now what I would like is for when selecting multiple machines and saving the output to a txt file to insert the pc's name in the txt file. How can this be accoplished? The current command I am using is:
cmd.exe /x /c reg query "\\%E%\HKLM\Software\Intel\Landesk\VirusProtect6\C urrentVersion" /v Parent >> c:\%E%_nav_parent.txt
which gives me a seperate .txt file for each machine. Any help would be greatly appreciated.
Comment