Script – Find all installed applications

I had a task to collect all application names installed on a number of servers, including updates.
OSes were both 2003 and 2008, therefore Powershell was not an option, so I went with vbscript.

One important thing I’ve learned while developing was the fact that on 64 bit OSes Windows stores information about the installed software not only in the “SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\” key but also in the “SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\”.

Here is the script. Continue reading


SEP – agent upgrade script

SEP agent upgrade can be a real pain, mainly because of the double reboot requirement. In production you can do it only during the maintenance windows, meaning at night. Scripting is your best friend in this case, unless off course you are a night person 🙂

My environment is a mix of Windows 2003 and 2008, therefore VBScript is still the best choice to ensure interoperability. Script is needed to uninstall existing SEP11 version. Reboots and installation of the new version can be executed with no script, just usual Windows tools. All you need to do is copy required files and run these commands in the command line:

at 03:00 C:\Software\sep11uninstall.vbs
at 03:15 shutdown.exe -r -f -c "Planned restart to complete SEP11 uninstall" -t 10
at 03:35 C:\Software\setup.exe
at 03:50 shutdown.exe -r -f -c "Planned restart after SEP12 is installed" -t 10

Continue reading