WinPE is a useful tool for booting a computer and laying down a new operating system. In this post, I’ll show you how to make WinPE a little more useful by automatically running a custom script at startup. Continue reading “Customize WinPE With Wallpaper and Custom Startup Script”
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
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”
One thing I have always found frustrating about buying a PC with windows re-installed (among many things) is you don’t always have easy access to the product code. Sometimes it is posted on a sticker, but often it is not. How To Geek shows how to get the product code using a simple script. Continue reading “Find Your Windows Product Key Without Any Software”
Install An IP Printer
This will create a new printer port at the IP address 10.10.10.10 and name it IP_10.10.10.10.
cscript %windir%\system32\printing_admin_scripts\en-us\prnport.vbs -a -r IP_10.10.10.10 -h 10.10.10.10 -o raw -n 9100
Then this will add the printer to that port with the correct driver (found on a network share). Continue reading “Manage Windows Printers At The Command Line”
I often use this command to create a scheduled shutdown. You could also use to run any program you want.
schtasks /Create /SC daily /RU DOMAIN\user-account /RP myPassword /ST 18:00 /TN Auto-shutdown1800 /TR "%windir%\system32\shutdown.exe /s /f"
Just replace your username, password, and give it a unique name. Continue reading “Create A Scheduled Shutdown Via 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%
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”
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”