Most of the VBScript samples were created using Microsoft's Scriptomatic tool, the KiXtart scripts were my own "translations" of the VBScript versions, most of the other scripts were generated by my WMI Code generator.
The (XP) batch files use WMIC (only available in Windows XP Professional, Windows Server 2003 and later).
Most, if not all, of these scripts can be used for any WMI enabled computer on the network.
BattRun.bat Display a warning message if a program is launched while the computer is running on battery power 2007-08-23 Uses WMIC.
BattStat.bat Display battery status 2006-10-04 Uses WMIC.
BootDisk.bat Determine the boot disk, partition and drive letter 2012-01-07 Uses WMIC.
CheckRegAccess.bat Check if you have the required permissions on the specified registry key 2010-07-08 Uses WMIC.
ChkPath.bat Verify if all PATH entries are valid directories 2015-05-11 Uses WMIC.
CPULoad.bat Display CPU load information 2010-06-23 Uses WMIC.
DatePart.cmd Display the specified part of the current date or time 2008-11-15 Uses WMIC.
DiskSpc.bat Display harddisk summary for any WMI enabled computer or for a list of computers 2006-10-02 Uses WMIC.
DispEDID.vbs Display the monitor's EDID asset information 2010-05-27 Based on a script by Michael Baird (link no longer available).
DNSServers.bat List the configured DNS servers for each network adapter 2011-11-17 Uses WMIC.
Drives.bat List drive letters and their drive types 2012-04-20 Uses WMIC.
GetRAM.vbs Display the amount of physical memory installed 2002-11-03 Based on WMI Scripting Primer: Part 1 by Greg Stemp, Dean Tsaltas and Bob Wells.
Hardware.bat Display a basic hardware summary for any WMI enabled computer on the network 2006-10-03 Uses WMIC.
Hardware.hta Display a basic hardware summary for any WMI enabled computer on the network 2017-10-11 Automatically checks for updates.
HotFixes.vbs Display installed hotfixes 2002-11-26 Based entirely on a (now no longer available) sample script from Microsoft TechNet Script Center.
HotFixesTD.vbs Display installed hotfixes in tab delimited format 2002-11-26 Based entirely on a (now no longer available) sample script from Microsoft TechNet Script Center.
is6432os.bat Check if a Windows is 32-bit or 64-bit 2010-08-01 Uses WMIC.
is6432os.exe Check if the OS is 32-bit or 64-bit 2010-07-04 Compiled "pruned" WMI Code Generator generated C# code.
IsDST.bat Check if the current or specified date/time is in Daylight Saving Time 2011-04-12 Will temporarily change the system date up to 65 times.
Do not use on computers that are member of a domain.
Use entirely at your own risk.
VBScript and C# versions are safer to use.
ListDrives.exe List all logical drives for the specified computer 2011-04-06 Compiled "pruned" WMI Code Generator generated C# code.
ListHDDs.bat List all physical harddisk models on a remote PC 2009-12-02 Requires either WMIC or DEVCON; if neither is available, you will be prompted to open the DEVCON download page.
ListPrinters.exe List all printers available on the specified computer 2011-04-06 Compiled "pruned" WMI Code Generator generated C# code.
ListWMIClasses.bat List a tiny fraction of the available WMI classes in the "root\CIMV2" namespace 2010-09-29 Uses WMIC.
Logoff.vbs Logoff current user on any WMI enabled computer 2002-10-19 Adapted from posts by Alex K. Angelopoulos on Developersdex.com and Michael Harris on a VBScript newsgroup.
MdmCmds.bat Display the available configuration commands for your modem(s) 2006-10-12 Uses WMIC.
NICSpeed.bat Display active physical ethernet adapters' link speed 2010-09-16 Uses WMIC.
PausePrinting.bat Pause printing on the specified printer 2010-07-11 Use ResumePrinting to resume printing again.
PausePrinting.vbs Pause printing on the specified printer 2010-07-11 Use ResumePrinting to resume printing again.
Printing.bat List printers with status and number of printjobs, or pause or resume printing on the specified printer(s), or flush all printjobs, or list all printers, their status and number of printjobs 2010-09-14 Uses WMIC.
Combines ListPrinters, PausePrinting and ResumePrinting and adds functionality to cancel all printjobs.
Printing.exe List printers with status and number of printjobs, or pause or resume printing on the specified printer(s), or flush all printjobs, or list all printers, their status and number of printjobs 2016-02-15 Combines ListPrinters, PausePrinting and ResumePrinting and adds functionality to cancel all printjobs.
Created with (a lot of) assistance from Bas van der Woude.
Printing.vbs List printers with status and number of printjobs, or pause or resume printing on the specified printer(s), or flush all printjobs, or list all printers, their status and number of printjobs 2010-09-15 Combines ListPrinters, PausePrinting and ResumePrinting and adds functionality to cancel all printjobs.
PwdNoExp.bat Set "password never expires" for a local account 2008-03-12 Uses WMIC.
ReadReg.vbs Read a value from the registry 2003-04-06 Based on "Registry functions Provided by the WMI StdRegProv class" by Andrew Mayberry.
Reboot.vbs Reboot any WMI enabled computer on the network 2007-11-21 Based on a post by Alex K. Angelopoulos on Developersdex.com.
See my Shutdown page for shutdown and reboot commands for "all" operating systems.
ResumePrinting.bat Resume printing on the specified printer 2010-07-11 Use PausePrinting to pause printing.
ResumePrinting.vbs Resume printing on the specified printer 2010-07-11 Use PausePrinting to pause printing.
SecStat.bat Display a SecurityCenter status overview 2010-01-18 Requires Windows XP SP2 or SP3.
Use WBEMTEST.EXE to find all properties for a specific AntiVirus or Firewall product.
SecStat.kix Display a SecurityCenter status overview 2010-01-18 Requires Windows XP SP2 or SP3.
SecStat.vbs Display a SecurityCenter status overview 2009-09-29 Requires Windows XP SP2 or SP3.
ShareMg2.vbs Migrate all non-printer shares from one server to another 2005-11-02 Currently for Windows Server 2003, created migration script needs manual modifications afterwards for Windows 2000.
(For printer migration, read the Printing section of my Unattended Installations page, for Scheduled Tasks migration, read the Scheduled Tasks section).
Shutdown.vbs Shut down any WMI enabled computer on the network 2007-11-21 Based on a post by Alex K. Angelopoulos on Developersdex.com.
SID2User.bat Return the SID for the specified user ID 2010-07-26 Uses WMIC.
Software.hta List installed software 2013-12-17 Automatically checks for updates.
User2SID.bat Return DOMAIN\UserID for the specified SID 2010-07-26 Uses WMIC.
VBSNames.vbs Demonstrates several VBScript techniques to retrieve user names, computer names & domain names 2007-01-22 Demo script from my VBScript scripting techniques section.
WMIAlias.bat Return the WMI class name for the specified WMIC alias, or list them all 2015-03-30 Uses WMIC.
WMIGen.exe Generate Batch, C, C++, C#, Delphi, F#, Java, JScript, Lua, KiXtart, Object Pascal, Object Rexx, Perl, PHP, PowerShell, Python, Ruby, Tcl, VB .NET and VBScript code for WMI queries 2018-12-06 This compiled executable is the successor of the HTA version.
Based on the example from the Microsoft TechNet ScriptCenter article Scripting Eye for the GUI Guy.
WMIGen.hta This HTA generates Batch, C#, F#, Java, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python, Ruby, VB .NET and VBScript code for WMI queries 2016-01-28 Discontinued. Use the compiled executable instead.