Removing Permanent WMI Event Registrations

Introduction Since I’ve worked on the PowerEvents PowerShell module, several folks have been confused about how to remove event registrations once they’ve been created. I wrote some documentation that’s included in the download, that explains how to manually remove these registrations using the built-in wbemtest tool. This is the fool-proof method, since wbemtest is included … Read moreRemoving Permanent WMI Event Registrations

PowerShell Module: Enable Wake for Devices

So in my last post, I shared a PowerShell script that enables you to enable devices to wake up computers. This script relies solely on a WMI interface, but despite the remote nature of WMI, I had provided no method of entering a remote computer name. That changes with the release of my first ever … Read morePowerShell Module: Enable Wake for Devices

PowerShell: Finding Currently Loaded DLLs

I was just browsing through the root\cimv2 WMI namespace this morning, using SAPIEN’s free WMI Explorer tool, when I happened across a WMI class called CIM_ProcessExecutable. In fact, what I was doing in a bit more detail, was going through the CIM_* classes, with the Instances tab selected, so I could discover if any of … Read morePowerShell: Finding Currently Loaded DLLs

ccmsetup.exe: Trailing slash in “Source” parameter

Hello everyone! Tonight, while I’m traveling in Houston, Texas, I wrestled with ccmsetup.exe for a little while. I was working on getting a ConfigMgr vNext client agent installed on a Windows 7 Ultimate virtual machine, and kept getting a message in my ccmsetup.log saying “Source <path> is inaccessible.” —– A little bit about %~dp0 Now, … Read moreccmsetup.exe: Trailing slash in “Source” parameter

Deploying Windows 7 RSAT

If you’ve got a large number of Windows 7 machines that you’ve already deployed, but now need to silently deploy the Remote Server Administration Tools (RSAT), you’re in luck. It’s quite simple to do, and Microsoft provides the necessary tools to automate this deployment. The RSAT pack is downloaded as a MSU file, so it … Read moreDeploying Windows 7 RSAT

Windows 7 – WaitFor.exe

So I just randomly came across this utility built into Windows 7 that simply sends or waits for a signal (message). This could be useful for batch scripts that need to wait for something to happen on a local (or remote) machine. Here is the help output from the command: C:UsersAdministrator>waitfor /? WaitFor has two … Read moreWindows 7 – WaitFor.exe

Windows 7 RSAT Tools

The Windows 7 Remote Server Administration Tools (RSAT) are available from this location: The list of tools available in the RSAT download is here:

Code Snippet: Process Time as Percentage of Total CPU Time

A couple of weeks ago, a colleague of mine asked me how I would determine a process’ CPU utilization as a percentage of total CPU time. I came up with this PowerShell code, but it’s not quite complete yet, because it doesn’t dynamically determine the number of cores that a system has. During the investigation … Read moreCode Snippet: Process Time as Percentage of Total CPU Time

Deployment Workbench: Windows Imaging Error

I just installed the Windows AIK for Windows7, and MDT 2010 on my 64-bit Windows 7 Release Candidate system, and attempted to open the Deployment Workbench. It opened just fine, but when I selected the Deployment Shares node in the snap-in, I got this error: “The file C:Windowssystem32wimgapi.dll(version 6.1.7100.0 (winmain_win7rc.090421-1700)) is older than the installed Windows … Read moreDeployment Workbench: Windows Imaging Error

MDT 2008 to 2010 Upgrade Successful!

Yesterday, I upgraded MDT from 2008 to 2010. The high-level steps I followed to upgrade it were as follows: Uninstall Windows AIK 1.1 Uninstall MDT 2008 Install Windows 7 / 2008 R2 AIK Install MDT 2010 Open MDT 2010 console and upgrade deployment shares Test task sequence on virtual machine Please note: The Microsoft .NET Framework … Read moreMDT 2008 to 2010 Upgrade Successful!