Windows Administrative Scripting Unleashed: Using VBScript, WMI, and ADSI to Automate Windows Administration

Fileaze banner

 

WSH Examples (W*)

Download the ZIPped sources Click the floppy disk icons to download the ZIPped sources

 

WSH Examples
Download the ZIPped sources Name Description Language Last modified (DD/MM/YYYY) Also available as: Remarks
JS VBS DOS batch NT batch Kix Perl Power
Shell
Rexx
Download the ZIPped sources Wallpaper Change the Desktop's wallpaper   V 13/08/2008   NT       R Lots of command line switches, use /? to list all options.
Also available in OS/2 Rexx.
Download the ZIPped sources Week Calculate the week number J V 14/03/2003 D NT K P PS R DOS batch file uses WeekOfYr.exe.
Download the ZIPped sources Which Find out which file is executed when you type a command   V 09/12/2007 D NT K P PS R The VBScript version is the only one also checking for internal commands, thus emulating the behaviour of the command interpreter
Download the ZIPped sources WhoIs Display the WHOIS database entry for the specified domain   V 12/01/2003   NT         NT batch file will work in Windows 9x and OS/2 too
Download the ZIPped sources WhoIsCls Query WHOIS for domain registration information   V 05/05/2007             This script demonstrates my WhoIs class, which is much more flexible than my previous WhoIs scripts. See the Whois Class section for more details.
Download the ZIPped sources WhoIsCom Query WHOIS for domain registration information   V 14/06/2007             This script demonstrates my WhoIs Windows Script Component, which is much more flexible than my previous WhoIs scripts. See the Whois WSC section for more details.
Whois.WSC WSC
Download the ZIPped sources WinInVer Display the currently installed Windows Installer version, and optionally check if it meets a required minimum version   V 08/05/2008              
Download the ZIPped sources WinVer Display the Windows version for any WMI enabled PC in the network   V 26/07/2005             Created using Microsoft's Scriptomatic 2.0 tool
Download the ZIPped sources WMIGen.HTA Generate Batch, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python and VBScript code for WMI queries HTA 20/10/2006             Automatically checks for updates.
Based on the example from the Microsoft TechNet ScriptCenter article Scripting Eye for the GUI Guy, with help from the Scripting Guys' Scriptomatic 2.0 and HTA Helpomatic tools and The Script Center Script Repository: Sample Windows PowerShell Scripts
Download the ZIPped sources WSaveAs Convert Word documents to HTML   V 07/04/2007             Requires Microsoft Word.
PDF & XPS conversions require MS Word 2007 and the Microsoft Save as PDF or XPS Add-in for 2007 Microsoft Office programs
Word2PDF Convert Word documents to PDF   V 07/04/2007
Word2RTF Convert Word documents to RTF   V 07/04/2007
Word2XPS Convert Word documents to XPS   V 07/04/2007
Download the ZIPped sources WPSaveAs Use WordPerfect to convert WP documents to HTML or any other supported format   V 12/02/2007             Requires Corel WordPerfect Office
WP2PDF Use WordPerfect to convert WP documents to PDF   V 10/03/2007
Download the ZIPped sources WUpdHist List or query the Windows Update history   V 01/01/2008              
Download the ZIPped sources WSHVer Display the WSH version number, or part of it, and optionally compare it to a required minimum version   V 17/05/2008