Download here: wast76.zip
Windows Admin Script Tools is a set of utilities that I wrote to assist Windows system administrators. I wrote these programs with logon scripting in mind, but of course they have other uses as well. Many logon scripting tools I have seen require the Windows NT platform to run. I felt that support for the legacy platform was important, as people interested in freeware tools often don’t have the funds to upgrade all of the client systems in their organizations. Only IsMember requires Windows NT 4.0 or later; the rest all work fine on Windows 9x/Me.
The following tools are included:
- FVerTest – Allows a shell script to perform version checking on a Win32 executable file, provided it contains version information.
- 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. It can also detect if the current user is a member of Administrators but the group is not enabled (e.g., when UAC is active on Windows Vista and later).
- IsMember – Checks 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 – Minimizes the topmost window on the screen (useful in logon scripts).
- 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 (short for “net use push pop”) – Lets you temporarily map a drive letter, do some things, then restore the mapping to its previous value.
- OSTest – Tests the current operating system to see if it meets one or more criteria. You can check if the current platform is Windows 9x/Me or NT, the version number, service pack number, and build number. It can also detect whether the current OS is running a ‘home’ edition, whether it’s a server or workstation, Terminal Server mode (remote desktop or application server), and architecture (x86, AMD64, or IA64).
- RASConns – Allows a shell script 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 – Displays a Windows dialog box with a customizable message, buttons and icon. A shell script can detect which button was pressed. You can also read the dialog box text from a text file and specify a timeout period.