jkklim jkklim


James Lim is the systems manager, Distributed Systems and Services, at Neptune Orient Lines in Singapore. He is an MCSE, a Certified Ethical Hacker (CEH), a Certified Information Systems Security Professional (CISSP), and an Oracle Certified Professional (OCP) 9i. He earned a degree in business administration from the National University of Singapore.

Batch File Finds Out Who RDPed the Server
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.
Delete Junk Folders Created by SMS 1
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.
Use PowerShell to Execute Commands on Remote Machines
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.
PowerShell Script Lets You Check Patches' Status 6
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.
Copy Group Memberships from One AD User to Another 2
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).
Find Out Who Is Logged On to a Remote Machine With Just One Line of Code 1
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.
Automatically Delete Old Folders
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.
A Quick Way to Find Out Whether CD-ROM Drives Can Read and Write
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.
An MMC-less Way to Add Computers to Global Groups
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.
Automatically Delete Old Files - 24 Jan 2007 1
Use Delfile.vbs to delete old files from your network drive.
Add or Remove AD Users
Use a simple script to quickly and easily add or remove a Windows NT user ID at the command prompt.
Quickly Detect Who Is Logged On to Your Remote Machines 1
Here's a script that uses WMI to detect the currently logged-on user on the specified remote machine.
Determine the Machines Users Are Logged On To 1
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.
Forcing VBScript Files to Run in CScript Mode
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.
Does SUS Make You Want to Send an SOS? 5
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.
Windows Powershell Master Class

Windows Powershell Master Class with John Savill
Live Online Training on February 2nd, 9th, and 16th
Register by January 26th and Save 20%!

PowerShell is the definitive command line interface and scripting solution for Windows, Hyper-V, System Center, Microsoft solutions and beyond. In this Master Class, we will start from the ground up, walking you through the basics of PowerShell, how to create basic scripts and building towards creating custom modules to achieve amazing results in your environment, in non-Microsoft environments, and in Azure.


Join the Conversation

Sponsored Introduction Continue on to (or wait seconds) ×