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

Exporting ConfigMgr Task Sequences

This article will briefly discuss how to export a ConfigMgr OSD task sequence. The SMS_TaskSequencePackage class has a lazy property named Sequence which contains the XML for the task sequence. Because this is a lazy property, we must obtain a reference to each WMI instance using its direct path, before we can open the property’s … Read moreExporting ConfigMgr Task Sequences

List of WMI Privileges

Microsoft has a published list of optional WMI privileges at the following link: http://msdn.microsoft.com/en-us/library/aa392758(VS.85).aspx These privileges are sometimes necessary for enabling certain operations in WMI. For example, if you do not specify the Security privilege when accessing instances of the Win32_NTLogEvent WMI class, you will not be able to view event log entries from the … Read moreList of WMI Privileges

PowerShell: Disabling Task Sequence ProgramFlags

If you are using Microsoft ConfigMgr 2007, you may be familiar with the ProgramFlags bit that controls the “Allow this program to be installed from the Install Software task sequence without being advertised” setting on a Program configuration. Someone on the MyITforum “mssms” mailing list recently asked how to disable this setting for all SMS programs … Read morePowerShell: Disabling Task Sequence ProgramFlags

WMI Repository Corruption / SCCM Client Fix

You may have come across the following messages in the execmgr.log file on your SCCM clients: Failed to open to WMI namespace ‘.rootccmPolicyMachine’ (8007045b) Failed to ConnectSettings for ICcmPolicyAgent in CSoftDistPolicyNamespace::ConnectToNamespace Failed to ConnectToNamespace in CSoftDistPolicyNamespace::GetMachinePolicy Failed to connect to machine policy name space. 0x8007045b Failed to connect to user policy name space CSoftwareDistPolicyMgr::GetSWDistSiteSettings failed … Read moreWMI Repository Corruption / SCCM Client Fix

SCCM – Changing Client Cache Location

Update (2009-10-05 12:30 PM): Thanks to Todd Hemsell, I now know that you have to restart the ccmexec service in order for the change to take effect. I’ve updated the scripts appropriately. — So you’ve got System Center Configuration Manager (SCCM) 2007 in place, and for whatever reason, you’re looking to change the location of … Read moreSCCM – Changing Client Cache Location

WMI Documentor

Here is a crude, but functional Visual Basic (VB) script that I wrote to document WMI classes, methods, and properties in Microsoft Excel so that they are searchable. Option Explicit dim TargetWmiNs, Excel, Row, tWmiClass, WmiClasses ‘*** Set this variable to the target WMI namespace to document TargetWmiNs = “\\remotecomputer\root\sms\site_lab” ‘*** Create Excel object set … Read moreWMI Documentor