<![CDATA[Latest Content by James Lim]]>http://www.windowsitpro.com/authors/author/author/5103457/rss/5103457en-USSun, 27 May 2012 06:05:26 GMTSun, 27 May 2012 06:05:26 GMT<![CDATA[Batch File Finds Out Who RDPed the Server]]>http://www.windowsitpro.com/article/remote-desktop-protocol-rdp/who-rdped-the-server-
By James Lim
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.]]>
James LimWed, 08 Sep 2010 00:01:00 GMThttp://www.windowsitpro.com/article/remote-desktop-protocol-rdp/who-rdped-the-server-
<![CDATA[Delete Junk Folders Created by SMS]]>http://www.windowsitpro.com/article/windows-powershell/delete-junk-folders-created-by-sms
By James Lim
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 delete those unwanted folders.]]>
James LimThu, 06 Aug 2009 00:00:00 GMThttp://www.windowsitpro.com/article/windows-powershell/delete-junk-folders-created-by-sms
<![CDATA[Use PowerShell to Execute Commands on Remote Machines]]>http://www.windowsitpro.com/article/windows-management-instrumentation-wmi/use-powershell-to-execute-commands-on-remote-machines
By James Lim
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 start a remote process.]]>
James LimThu, 19 Mar 2009 00:00:00 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/use-powershell-to-execute-commands-on-remote-machines
<![CDATA[PowerShell Script Lets You Check Patches' Status]]>http://www.windowsitpro.com/article/vbscript/powershell-script-lets-you-check-patches-status
By James Lim
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 checks for patches.]]>
James LimWed, 26 Dec 2007 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/powershell-script-lets-you-check-patches-status
<![CDATA[Copy Group Memberships from One AD User to Another]]>http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/copy-group-memberships-from-one-ad-user-to-another
By James Lim
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 toolbox. This function converts usernames into distinguished names (DNs).]]>
James LimWed, 22 Aug 2007 00:00:00 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/copy-group-memberships-from-one-ad-user-to-another
<![CDATA[Automatically Delete Old Folders]]>http://www.windowsitpro.com/article/vbscript/automatically-delete-old-folders
By James Lim
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 folders (and their subfolders) based on their last modified date.]]>
James LimWed, 27 Jun 2007 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/automatically-delete-old-folders
<![CDATA[Find Out Who Is Logged On to a Remote Machine With Just One Line of Code]]>http://www.windowsitpro.com/article/vbscript/find-out-who-is-logged-on-to-a-remote-machine-with-just-one-line-of-code
By James Lim
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.]]>
James LimWed, 27 Jun 2007 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/find-out-who-is-logged-on-to-a-remote-machine-with-just-one-line-of-code
<![CDATA[A Quick Way to Find Out Whether CD-ROM Drives Can Read and Write]]>http://www.windowsitpro.com/article/vbscript/a-quick-way-to-find-out-whether-cd-rom-drives-can-read-and-write
By James Lim
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 use to make this task less time-consuming.]]>
James LimWed, 18 Apr 2007 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/a-quick-way-to-find-out-whether-cd-rom-drives-can-read-and-write
<![CDATA[An MMC-less Way to Add Computers to Global Groups]]>http://www.windowsitpro.com/article/vbscript/an-mmc-less-way-to-add-computers-to-global-groups
By James Lim
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, you’ll want to check out the AddComputers.vbs script.]]>
James LimWed, 28 Mar 2007 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/an-mmc-less-way-to-add-computers-to-global-groups
<![CDATA[Automatically Delete Old Files]]>http://www.windowsitpro.com/article/vbscript/automatically-delete-old-files
By James Lim
Use Delfile.vbs to delete old files from your network drive. ]]>
James LimWed, 24 Jan 2007 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/automatically-delete-old-files
<![CDATA[Add or Remove AD Users]]>http://www.windowsitpro.com/article/vbscript/add-or-remove-ad-users
By James Lim
Use a simple script to quickly and easily add or remove a Windows NT user ID at the command prompt.]]>
James LimMon, 11 Dec 2006 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/add-or-remove-ad-users
<![CDATA[Quickly Detect Who Is Logged On to Your Remote Machines]]>http://www.windowsitpro.com/article/vbscript/quickly-detect-who-is-logged-on-to-your-remote-machines
By James Lim
Here’s a script that uses WMI to detect the currently logged-on user on the specified remote machine.]]>
James LimMon, 12 Jun 2006 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/quickly-detect-who-is-logged-on-to-your-remote-machines
<![CDATA[Determine the Machines Users Are Logged On To]]>http://www.windowsitpro.com/article/vbscript/determine-the-machines-users-are-logged-on-to
By James Lim
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 from.]]>
James LimTue, 17 Jan 2006 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/determine-the-machines-users-are-logged-on-to
<![CDATA[Forcing VBScript Files to Run in CScript Mode]]>http://www.windowsitpro.com/article/vbscript/forcing-vbscript-files-to-run-in-cscript-mode
By James Lim
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 changes it to CScript if necessary.]]>
James LimMon, 12 Dec 2005 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/forcing-vbscript-files-to-run-in-cscript-mode
<![CDATA[Does SUS Make You Want to Send an SOS?]]>http://www.windowsitpro.com/article/vbscript/does-sus-make-you-want-to-send-an-sos-
By James Lim
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 installed.]]>
James LimTue, 26 Jul 2005 00:00:00 GMThttp://www.windowsitpro.com/article/vbscript/does-sus-make-you-want-to-send-an-sos-
<![CDATA[Dsmod.exe Improvement]]>http://www.windowsitpro.com/article/microsoft-management-console-mmc/dsmod-exe-improvement
By James Lim
A reader offers a script that makes Windows Server 2003’s dsmod.exe run more efficiently]]>
James LimMon, 15 Nov 2004 00:00:00 GMThttp://www.windowsitpro.com/article/microsoft-management-console-mmc/dsmod-exe-improvement