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.
Microsoft Stack Master Class

Master-Level Microsoft Stack Class with John Savill
Online Class: Thursdays Oct. 12th-Dec. 21st
30 Hours of Training for $995!

Understand the complete Microsoft solution stack, how the products work together, and how to implement and maintain for a total datacenter and desktop solution. This course covers the latest technology updates including Windows Server 2016 and Windows 10 and will enable the new capabilities to be leveraged in your organization.


Join the Conversation

Sponsored Introduction Continue on to (or wait seconds) ×