Rexx, Kix, VBScript and batch scripts

for Windows NT administrators

#..G

 

Warning:    Many scripts on this page are very powerful tools.
Like most powerful tools they could cause a lot of damage in the hands of insufficiently skilled users.
Treat these scripts like you would treat a chainsaw: with utmost care. Do not use them if you do not fully understand what they do or how they do it.
Any damage caused using these scripts is completely your own responsibility.

 

0..9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

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

 

Download the ZIPped sources Name Description OS version Last modified
(dd/mm/yyyy)
Download the ZIPped sources 4AllCtxSrv.bat Executes a command once for each member of a Citrix farm, substituting the "#" character by the server name 2000 14/02/2005
Download the ZIPped sources 4AllMembers.bat Executes a command once for each member of a global group, optionaly substituting the "#" character by the user ID.
The 2000 version will handle local, domain local and global groups.
2000 11/09/2002
4AllMembers.bat NT 20/02/2002
4AllMembers.cmd OS2 04/06/2000
Download the ZIPped sources ActUsr.bat Display computers on the network and their logged on users NT 30/09/2002
Download the ZIPped sources AddIPPrn.bat Add a local TCP/IP printer on any W2K/XP computer in the network.
(Uses PRNADMIN.DLL and several VBScripts from the Windows 2000/2003 Server Resource Kit)
2000+RK 31/01/2006
Download the ZIPped sources AddPrint.bat Add a network printer on any W2K/XP computer in the network.
(Uses Windows' native RUNDLL32)
2000 11/06/2005
Download the ZIPped sources AdminGrp.bat Remotely update Local Administrator groups on all PCs in a domain (except PCs listed in an exclusion file)
Written by Kenneth C. Mazie, Kaiser Permanente National Server Operations - Walnut Creek, Ca
NT+RK 29/11/2000
Download the ZIPped sources ADSHelp.bat Create a (HTML) help file for "all" Directory Service Command Line Tools in Windows Server 2003.
(Will only display help for the OS in which the HTML file was created -- in the language of that OS version, as is demonstrated here.
W2K3 04/06/2007
Download the ZIPped sources AllHelp.bat Create an HTML file with help for "all" NT 4/2000/XP commands, for the version of the OS in which the HTML file was created and in the language of that OS version, as is demonstrated in these German and English and Dutch pages.
Some help text, like FINDSTR's, is still displayed incorrectly due to the occurrence of &, < and > characters in its output.
NT 26/10/2006
Download the ZIPped sources Apipa.bat Display or modify Windows 2000 IP Autoconfiguration (APIPA) settings 2000 03/03/2002
Download the ZIPped sources CheckDST.bat Lists active computers that don't have automatic DST adjustment enabled. NT 28/07/2005
Download the ZIPped sources CheckPrn.rex Checks the default printer set in the registry and displays a message if it isn't an HP LaserJet III or if it isn't on your own client PC (sorry, hard coded, you'll have to adapt the "valid." variable yourself). Add this script to the logon scripts and save yourself lots of calls for support.
Uses REXX.EXE from the NT Resource Kit.
TS+RK 04/06/2000
Download the ZIPped sources ChkNAV.bat List all viruses found on all servers by Norton Antivirus NT+RK 14/07/2001
Download the ZIPped sources CLLUN.bat Clear Last Logon User Name: clears the last user name from the login dialog box once, or replaces it with a different name.
(Use DDLU.bat instead if you never want the last logon user name displayed again)
95 98 NT 13/08/2002
Download the ZIPped sources CloneUsr.bat Create a new domain user account by cloning an existing account (requires Windows Server 2003's DS Tools & SystemTools.com's TSCmd) 2000 18/08/2005
Download the ZIPped sources CompName.bat
CompName.kix
Change the computer name 95+Kix 12/10/2003
Download the ZIPped sources DDLU.bat Don't Display Last Username: clears the last user name from the login dialog box permanently.
(Use CLLUN.bat instead to remove the last logon user name just this once)
NT 20/12/2001
Download the ZIPped sources DeadProf.bat Delete inactive corrupted profiles for current user NT 15/09/2000
Download the ZIPped sources DelProf.bat Delete any profile NT 17/12/2003
Download the ZIPped sources Desktop.bat Uses SHORTCUT.EXE to save all desktop shortcuts as a batch file that can recreate those shortcuts again (Desktop backup) NT+RK 18/07/2000
Download the ZIPped sources Disabled.bat Lists all disabled user accounts NT 21/09/2000
Download the ZIPped sources Expires.bat Lists all user accounts that have "Password expires" set to "Never" NT 21/09/2000
Download the ZIPped sources FOR This example of FOR's /D parameter restores or removes the shares on all home directories on an NT server. NT (RK) 17/10/2000
Download the ZIPped sources FreeSpace.rex Display a disk usage summary for the local computer NT OS2 23/12/2002
FreeSpace.vbs Display a disk usage summary for any WMI enabled computer on the network WSH 12/10/2002
Download the ZIPped sources FtpDir Show directory of remote FTP site NT 23/11/2001
Download the ZIPped sources GetID.bat Search and display login and full names based on part of a user's full name (fails on migrated NT 4 user accounts) W2K3 06/08/2004
Download the ZIPped sources GetIP.cmd Show PC's IP address NT OS2 15/10/1999
Download the ZIPped sources GetPrn.bat
GetPrn2.bat
Display default printer for current user and list all printers for local system.
GetPrn works on NetBIOS/LAN Manager networks, GetPrn2 works on "real" NT networks.
NT+RK 08/03/2001
Download the ZIPped sources GetRAM.bat Show the amount of RAM in MB.
Use Memory.bat instead for more speed (Memory.bat needs the NT Resource Kit).
The VBScript version can display the amount of RAM on remote computers as well (if WMI enabled).
NT 17/07/2001
Download the ZIPped sources GetSID.vbs Display any user's Security ID. WMI 03/12/2005
Download the ZIPped sources GrMember.bat Displays the members of the specified group(s).
This batch file uses DSGET and DSQUERY (native in Windows Server 2003, will work in Windows 2000 and XP if available).
2000 03/04/2005

 

0..9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

Windows version:      95      Windows 95/98
  NT   Windows NT, usually version 4, including Terminal Server, and most likely Windows 2000 and XP as well
  2000   Windows 2000 and probably XP as well
  XP   Windows XP
  W2K3   Windows Server 2003
  TS   Windows NT 4 Terminal Server Edition or Citrix WinFrame
  WMI   Any Windows with WMI
  +RK   Uses either Regina Rexx or some utilities from the Microsoft® Windows NT® 4.0 Resource Kit
(RK) means that the Resource Kit does add some functionality, but is not absolutely necessary.
  DOS   May be adapted to use in DOS as well
  OS2   Multi-platform (NT plus OS/2) or available separately for OS/2

 


Related links: