bill stewart's site

windows admin script tools 7.2

download here: wast72.zip (237,613 bytes; 24 feb 2011)

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:

program description
fvertest fvertest allows a shell script to perform version checking on a win32 executable file, provided it contains version information.
isadmin 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 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 minwin minimizes the topmost window on the screen (useful in logon scripts).
needboot 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 nupp lets you temporarily map a drive letter, do some things, then restore the mapping to its previous value.
ostest 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 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 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.