Download Bill Stewart's 'Windows Admin Script Tools' from http://www.cybermesa.com/~bstewart/files/wast63.zip.
The Readme.txt file contains:
Windows Admin Script Tools (C) 2001-2005 by Bill Stewart ([email protected]) These utilities provide a Windows system administrator with several essential functions that can be particularly useful in logon scripts. FVER.EXE FVER allows a batch file to perform version checking on a Win32 executable file, provided it contains version information. ISADMIN.EXE ISADMIN checks if the currently logged-on user is an administrator (Windows NT 4.0 and later). It runs fine on Windows 9x/Me, where the current logged on user is always an administrator. ISMEMBER.EXE ISMEMBER can check if the currently logged-on user is a member of one or more groups that you can specify on the command line, and it can also list group memberships. Requires Windows NT 4.0 or later. MINWIN.EXE MINWIN minimizes the topmost window on the screen (useful in logon scripts). NEEDBOOT.EXE NEEDBOOT determines if there are pending file rename/move/delete operations for the next system boot. On Windows 9x/Me, it checks for the existence of any entries in the \[Rename\] section of WININIT.INI; on the Windows NT platform, it checks for the existence of the PendingFileRenameOperations registry entry. It can also list the entries in the \[Rename\] section or the contents of the registry entry. NUPP.EXE NUPP lets you temporarily map a drive letter, do some things, then restore the mapping to its previous value. OSVER.EXE OSVER allows a batch file to perform operating system platform checking. It can differentiate between Windows 95, Windows 98, Windows Me, Windows NT 4.0, Windows 2000, Windows XP, and Windows Server 2003. For NT-based systems, it can also return the system's service pack level and role (e.g. workstation, server, or domain controller). For Windows NT 4.0 SP6 and later, it can also detect whether the system is a Terminal Server (either remote desktop or application server mode). OSVEREX.EXE OSVEREX is an extended version of OSVER that only works on Windows NT 4.0 Service Pack 6 or later. It returns the current operating system as an exit code and can also return its service pack level, role (workstation, server, or domain controller). It can also identify the Terminal Server mode (remote desktop or application server mode). OSVEREX.EXE may be preferable when there are no down-level clients because it relies solely on Windows API calls and does not read any information from the registry (which might fail in rare cases due to restrictive permissions). RASCONNS.EXE RASCONNS allows a batch file to determine if one or more RAS connections are active. It can also list active RAS connections and determine if a named RAS connection is active. WINMSG.EXE WINMSG displays a Windows dialog box with a customizable message, buttons and icon. A batch file can detect which button was pressed. You can also read the dialog box text from a text file and specify a timeout period.