PowerShell: AD / SCCM Workstation Cleanup Script Version 3.0

I just realized, I still haven’t posted the script that removes SCCM resources, alongside Active Directory cleanup. I had written a version 3.0 of a script I previously posted, but never posted it. So, here it is (I haven’t tested it in a while): Disclaimer: I am not responsible for what you do with this … Read morePowerShell: AD / SCCM Workstation Cleanup Script Version 3.0

AutoIT: Enumerating all Windows

Here is a short script I wrote using AutoIT, which enumerates all of the windows, to the StdOut stream: ConsoleWrite(“Enumerating windows”) $AllWindows = WinList() ConsoleWrite(“Found ” & UBound($AllWindows) & ” windows”) for $i = 0 to UBound($AllWindows) – 1 ConsoleWrite(@lf & “Name: ” & $AllWindows[$i][0]) ConsoleWrite(@lf & “HWND: ” & $AllWindows[$i][1]) next ConsoleWrite(@lf & “Completed … Read moreAutoIT: Enumerating all Windows

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 an XML file though, you … Read morePowerShell: Making WebDAV Configuration Edits on Server 2008

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

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, but responding to WMI events … Read morePowerShell: Getting started with WMI Events

Intel vPro: Finding AMT Objects in Active Directory

If you are using Out Of Band (OOB) Management in Microsoft System Center Configuration Manager (SCCM) 2007 SP1 (or greater) to manage your Intel vPro clients, you may have noticed that computer objects are created in your Active Directory domain during provisioning of the Intel vPro firmware. These computer objects are created by the amtproxymgr … Read moreIntel vPro: Finding AMT Objects in Active Directory

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

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

Windows 2003 Print Log Parsing Script [PowerShell]

Hello everyone, Since I’m not aware of any tools that visually log print server information, I wrote a script that parses the log entries from the system event log of a Windows 2003 print server. Apparently I never got around to posting this online, but I hope that someone is able to benefit from it. … Read moreWindows 2003 Print Log Parsing Script [PowerShell]

PowerShell: AD Workstation Cleanup Script version 2.0

Update (2010-08-25): I have posted a newer version of this script. A little while ago, I posted a PowerShell script that detects old machine accounts in Active Directory, and disables or deletes them, based on certain ages (in days). I’ve continued work on this script, such that it now logs information to Excel about actions … Read morePowerShell: AD Workstation Cleanup Script version 2.0