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


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”

Using Ubuntu MRT to Fix Malware on a Windows Machine: *Nix Saves Windows

A family member brought me their malware-infested machine.  It was the worst infection I had seen in a while. First off, this device had some annoying malware, including: Continue reading “Using Ubuntu MRT to Fix Malware on a Windows Machine: *Nix Saves Windows”