Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)

I love when Windows command line tools are actually useful and friendly.  wmic  is a rare one that fits the bill.  I use the following command to uninstall programs silently (using Java as an example).

Find The Program Name

Run this command first to get the list of programs you can uninstall:

wmic product get name

Continue reading “Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)”

Altiris: Fix Error 1618: Another Installation Is Already In Progress

I’m still stuck using Altiris 6.9DS.  It works, but it’s also finicky.  I often run into error 1618, which means another install is in progress (download the full error list here).  This is not always the case, but sometimes, other jobs can make it seem this way.  I run a simple command to clear out this error and then I can finish running the failing job. Continue reading “Altiris: Fix Error 1618: Another Installation Is Already In Progress”

Create Desktop Shortcuts Via Batch Script In Windows

Some application installers in Windows do not create a desktop icon.  I used this script to create one for all users.  Just modify the highlighted lines per your environment.

@echo off

set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"

echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%PUBLIC%\Desktop\ShortcutName.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%SYSTEMDRIVE%\Program Files\MyApp.exe" >> %SCRIPT%
echo oLink.WorkingDirectory ="%SYSTEMDRIVE%\Program Files" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

cscript /nologo %SCRIPT%

del %SCRIPT%

 

Scripting Pearson’s TestNav on Windows Using Python

Getting Pearson’s Web-based TestNav to work on OS X was challenging enough, but getting it to work on Windows is also difficult.  Fortunately, Windows can run Python–even though it isn’t installed by default like OS X.  And Python is great for scripting and automating mundane tasks.  Pair that with some Group Policy Objects (GPOs), and you have saved yourself a lot of time! Continue reading “Scripting Pearson’s TestNav on Windows Using Python”