Remember the days before Automatic Updates? For a long time, if you wanted updates to a Windows system you had to wait for a Service Pack or a new version. Once the Internet came around, you could download patches from Microsoft if you really needed them, but in general you had to wait for the new versions.

Then Microsoft introduced "Windows Update". You could go to the web site and it would scan your system and present you with a list of available updates. This worked for system patches as well as service packs, and was great for System Administrators and home users alike.

Read the rest of this series:

Every so often the debate arises (in tech circles) about whether or not one should use the compression feature that's built-in to Windows NTFS. One the one hand it will save you some disk space, but on the other hand it will slow down your system... or will it? (and are those the only two options?)

' Open a script in a console window when started by clicking on it (started through wscript)
Option Explicit

' Check if running under "WScript", and if so, relaunch myself cscript and exit
If InStr(1, WScript.FullName, "WScript.exe", vbTextCompare) <> 0 Then
        Dim objShell
        Set objShell = CreateObject("WScript.Shell")
        objShell.Run "%comspec% /c cscript /nologo """ & WScript.ScriptFullName & """", 1, False
End If

' If we make it to here, we're running under cscript with a cmd window
WScript.Echo "Using: " & WScript.FullName
WScript.Echo "...Do stuff in cscript here..."


VBScript/Windows Scripting Host (WSH). Mostly for automation and system administration tasks.

At least it's better than using batch (sometimes)!


Sometimes the battery, volume, and network icons disappear from the system tray and you can't re-enable them because they are grayed-out. This can be caused if Vista crashes while shutting down for a reboot, but also can be caused by other things (who knows?).

There are a bunch of ways you can fix this, you only need to pick one:

Manually editing the registry

  1. Open regedit as Administrator
  2. Search for all instances of "IconStreams"
  3. When found, delete "IconStreams" and "PastIconStreams"
  4. Keep searching until you reach the end of the registry
  5. Reboot
  6. Go into the Start Menu properties an re-enable the icons

Load the fix as a .reg file


Windows Vista:

Wireless Site Survey

To view wireless networks in range, run from the command line:

netsh wlan show networks mode=bssid

Configure TCP/IP From Command Line

Find the interface name:
netsh interface ip show config

Switch to DHCP:

netsh interface ip set address "$INTERFACE_NAME" dhcp
netsh interface ip set dns "$INTERFACE_NAME" dhcp

Switch to static IP:

netsh interface ip set address name="$INTERFACE_NAME" static 1
netsh interface ip set dns "$INTERFACE_NAME" static

Enable/Disable Screensaver (Command Line)


reg add "HKCU\Control Panel\Desktop" /v ScreenSaveActive /d 0 /f