

The code itself to interrogate the registry is even easier than using WMI. My current code has dropped WMI in favor of using the registry. The following table lists script examples that can be used to obtain various types of data from the local computer.

Type cscript filename.vbs > outfile.txt at the command prompt to redirect the output of the filename.vbs script to outfile.txt. Unfortunately, there doesn't seem to be a way to get WMI to list all programs from the add/remove programs list (aka Programs and Features in Windows 7, not sure about Vista). Because WMI scripts can produce large amounts of output, you might want to redirect the output to a file. See my comment that describes 32-bit vs 64-bit behavior in that same post here: If I figure it out, I'll try to remember to report back here.Įntries for 32-bit programs installed on a 64-bit machine go in that registry location. Here, copy and paste the below command and press the Enter button. The above action will open the Command Prompt window. To do that, press Win + R, type cmd, then press the Enter button. Id simply redirect the output of wmic /NAMESPACE:rootdirectoryldap PATH dscomputer GET dsdnshostname >FILENAME.
#Wmic export to txt systemname how to#
I haven't yet figured out how to get this list to be reported by WMI (although the program is listed as installed in Programs and Features). The first and easiest way to get a list of all the installed software on your system is by using the Command Prompt. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall I'm finding that registry entries are being written to I have been using Inno Setup for an installer.
