By James Lim, 09/08/2010
Here's a simple batch file you can use to quickly identify the administrators and privileged users who recently logged on to a server from a remote machine.
By James Lim, 08/06/2009
Systems Management Server (SMS) is a great tool but sometimes it can create but not delete folders if improperly configured. Here's a PowerShell script you can use to find and ...
By James Lim, 03/19/2009
Instead of using PsExec to run commands on remote machines, try RemoteProcess.ps1. This PowerShell script uses Windows Management Instrumentation's (WMI's) Win32_Process class to ...
By James Lim, 12/26/2007
Wanting to experience the "power" in Windows PowerShell firsthand and to learn how to use PowerShell to solve problems, one reader rewrote in PowerShell a VBScript script that ...
By James Lim, 08/22/2007
CopyMembership.vbs is a real time-saver if you need to copy group memberships. Even if you don't, you'll likely find its dn function a handy piece of code for your scripting ...
By James Lim, 06/27/2007
Do your users often create folders, then forget about them? If so, check out DelFolder.vbs. This script loops through all the folders in the specified root directory and deletes ...
By James Lim, 06/27/2007
Here's an example of how a PowerShell script can accomplish the same objective as VBScript script but with a lot fewer lines of code.
By James Lim, 04/18/2007
If you have many PCs to maintain, even checking something as simple as whether their CD-ROM drives are read-only or read/write can be a real chore. Here's a script that you can ...
By James Lim, 03/28/2007
Adding computers to global groups in the MMC Active Directory Users and Computer snap-in takes multiple searches and many mouse clicks. If you often have to perform this task, ...
By James Lim, 01/24/2007
Use Delfile.vbs to delete old files from your network drive.
By James Lim, 12/11/2006
Use a simple script to quickly and easily add or remove a Windows NT user ID at the command prompt.
By James Lim, 06/12/2006
Here's a script that uses WMI to detect the currently logged-on user on the specified remote machine.
By James Lim, 01/17/2006
Here’s a script that locates the machine a user is logged on to by looking at the open sessions on the user’s home server and determining which computers those sessions originate ...
By James Lim, 12/12/2005
If you use the CScript script host often, you’ll want to check out the checkengine subroutine. This subroutine determines the script host currently being used and automatically ...
By James Lim, 07/26/2005
Each time SUS downloads patches, there are always a few machines not properly patched. Here’s a handy script that checks machines to determine whether the specified patch was ...
By James Lim, 11/15/2004
A reader offers a script that makes Windows Server 2003’s dsmod.exe run more efficiently