Posts

Showing posts with the label Scripts

Use "Windows Management Instrumentation Command-line (WMIC)" to get the list of all installed programs

Windows comes with a command line version of the Management Instrumentation (WMIC). To get the list of all installed programs in a text file, simply enter the following command in a prompt: wmic product > c:\product.txt *********************************************************** To get a list of installed apps on a remote PC you can do the command: wmic /node:"PC NAME" product list and redirect it to a file using file redirections *********************************************************** To get the List of installed Windows Updates using WMIC: wmic qfe get > c:\list.txt

Batch program to list the softwares installed

echo List of softwares > software_list.txt echo ================= >>software_list.txt reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp1.txt find "DisplayName" temp1.txt| find /V "ParentDisplayName" > temp2.txt for /f "tokens=2,3 delims==" %%a in (temp2.txt) do (echo %%a >> software_list.txt) del temp1.txt temp2.txt