Rexx, Kix, VBScript and batch scripts

for NT administrators

H..O

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 Hardware.vbs Display a basic hardware summary for any WMI enabled computer on the network.
Created with Microsoft's Scriptomatic tool.
WMI 04/09/2002
Download the ZIPped sources HostName.bat Version 1.00 shows the host name for a specified IP address.
Available as Rexx script for OS/2 as well.
NT OS2 04/06/2000
HostName.bat Version 2.00 not only shows the host name for a specified IP address, but the Mac address, NetBIOS name and domain or workgroup too. NT4 21/04/2001
Download the ZIPped sources Hotfixes.bat Display a list of hotfixes installed locally.
Also available in KiXtart and VBScript.
NT 24/11/2002
Download the ZIPped sources InvShare.bat Show Event Log entries concerning invalid share names NT+RK 05/06/2000
Download the ZIPped sources JTHelp.bat Create a HTML help file for Microsoft's JT command NT 05/03/2005
Download the ZIPped sources KillDisc.bat Kills all disconnected sessions on all Terminal Servers TS 05/06/2000
Download the ZIPped sources KillNTPr.bat Kills a process specified by its program name and extension (no path!). Uses TLIST and KILL from the Windows NT 4 Resource Kit, or modify it to use PSLIST and PSKILL from SysInternals.com's PsTools set or XP's native TASKLIST and TASKKILL commands.
(KillProg.cmd will do the same in OS/2)
NT+RK XP OS2 14/03/2001
Download the ZIPped sources KixAssoc.bat Associates the KIX extension with KIX32 executable. After executing this batch file once, you can call any *.KIX directly, without the need to precede it with KIX32.EXE.
With SET PATHEXT=.KIX;%PATHEXT% (better yet: set it as a global variable in Control Panel, System) you won't need to type the .KIX extension to run .KIX scripts.
Adapt the (hard coded) path for KIX32.EXE to your own situation.
NT 19/09/2000
Download the ZIPped sources ListICA.bat List all IP addresses associated with Citrix' ICA round robin alias in DNS NT 25/10/2004
Download the ZIPped sources ListPRN.cmd List specified (NT) or all (NT and OS/2) network printers' UNC path NT OS2 05/06/2000
Download the ZIPped sources LiveUpd.kix Run Symantec's LiveUpdate unattended using Kix's SendKeys() function. 95 NT 12/08/2001
Download the ZIPped sources LogHist.bat Read URLs from IE history and write them to a file named %UserName%.hst NT 20/10/2003
Download the ZIPped sources Lock program This example of redirection to a temporary batch file locks single user programs when in use on a network. NT DOS OS2 13/07/1999
Download the ZIPped sources MacAddress Batch files that store the network adapter's MacAddress in an environment variable 95 NT OS2 07/12/2002
Download the ZIPped sources Manage.bat Open a remote Computer Management Console 2000 26/09/2005
Download the ZIPped sources MemberOf.bat Recursively list all groups of which the specified user is a member.
This batch file uses DSGET and DSQUERY (native in Windows Server 2003, will work in Windows 2000 and XP if available).
2000 27/10/2004
Download the ZIPped sources Memory.bat Show the amount of RAM in MB.
Use GetRAM.bat instead if you do not have the NT Resource Kit available.
The VBScript version can display the amount of RAM on remote computers as well (if WMI enabled).
NT+RK 05/05/2002
Download the ZIPped sources MyPRN.bat List all printers and printer drivers installed on the local PC NT 09/01/2002
Download the ZIPped sources MyAccess.bat Check the current user's permissions for the specified resource
This batch file uses MYTOKEN.EXE, part of the Platform SDK (source only). A compiled version is available in the lab files for Microsoft's course 2154B, "Implementing and Administering Microsoft Windows 2000 Directory Services".
2000 18/01/2004
Download the ZIPped sources NetSetXX.bat, available in Dutch, English and French A Windows 98 batch file that stores the Computer name, User name and Workgroup in environment variables, to be used in logon scripts.
Use PCNAME.BAT if you want to store the computer name without leading backslashes.
98 01/11/2000
Download the ZIPped sources NetWho.bat
NetWho2.bat
NET WHO (as in OS/2) "ported" to NT: show every requester plus who is logged on.
NetWho assumes requester names are in PC1234 format (to ignore servers), NetWho2 doesn't assume anything but may also show servers
NT 05/06/2000
Download the ZIPped sources NoBrowse.bat Prevent the local workstation from becoming a master browser NT 14/03/2002
Download the ZIPped sources NoTrkIco.bat Disable "smart shortcut tracking" on the local PC.
Based on a tip by Sander Jousma.
2000 16/04/2002
Download the ZIPped sources NoWinUpd.bat Disable Windows' Update feature (also available as Kix script) 95 NT 10/04/2002
WinUpd.bat Reenable Windows' Update feature (also available as Kix script)
Download the ZIPped sources NTRole.bat Displays the role (server or workstation) of the PC where this batch file is run NT 18/11/2001
Download the ZIPped sources OUMember.bat Displays the members of the specified OU(s).
This batch file uses DSGET and DSQUERY (native in Windows Server 2003, will work in Windows 2000 and XP if available).
2000 03/11/2004
Download the ZIPped sources Own.bat Recursively take ownership of a specified directory tree (BETA!) 2000+RK 01/10/2002
Owner.bat Display the owner of specified file(s) 2000 03/02/2002

 

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: