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 …

Continue reading

PowerShell: Enable / Disable Wake-on-LAN (in ConfigMgr)

Hello from Houston, Texas everyone! Today I’ve got a PowerShell script that was specially developed for my consulting engagements going forward. When implementing 1E WakeUp at a customer, who is integrating it with ConfigMgr (to wake up machines using Software Distribution and Software Updates assignments), I have found that occasionally, …

Continue reading

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 …

Continue reading

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 …

Continue reading

Windows API Code Pack

There is some free code available on the MSDN Code Gallery, called the Windows API Code Pack for Microsoft .NET Framework, which enables .NET developers to access certain Windows 7 features that are not typically available via the .NET Base Class Library (BCL). Naturally, since this is .NET code, the …

Continue reading

Uploading a Video to Youtube via PowerShell

Hey guys! I know it’s been a long time since I have posted anything useful (that is, assuming anything I post is useful! haha). While sitting at Starbucks today, I suddenly came up with an idea for a new post though, and after doing a quick bit of research, figured …

Continue reading

PowerShell: Allowing all file exts. for ConfigMgr

When running Configuration Manager 2007 on Windows Server 2008, you must enable certain file extensions in IIS, so that a BITS-enabled distribution point (DP) can transfer files correctly. See this Technet article for more information. If you would like to enable all of the file extensions on a BITS-enabled DP, …

Continue reading

PowerShell: Making WebDAV Configuration Edits on Server 2008

If you’re configuring a Windows Server 2008 system to be a ConfigMgr site system, you may have noticed that you need to make some changes to the WebDAV configuration in IIS. Unfortunately, making those changes through the IIS GUI doesn’t always work quite right. Instead of digging around inside of …

Continue reading

PowerShell: Getting started with WMI Events

Introduction PowerShell version 1 provided good integration with WMI using the Get-WmiObject cmdlet, allowing you to easily retrieve and modify WMI instances, and call WMI methods, but PowerShell v2 has taken it, and many other things, a lot farther. One of those areas is eventing, and not just WMI eventing, …

Continue reading