Category Archives: PowerShell

2013 PowerShell Scripting Games Advanced Event 3 – Bringing Bad Habits from the GUI to PowerShell

I’m seeing a trend with a lot of PowerShell scripters. Many of us have a GUI, non-scripting background and we moved to PowerShell because we didn’t want to be button monkeys clicking through the same options in the GUI day in and … Continue reading

Posted in PowerShell, Scripting Games | Tagged , | Leave a comment

People Who are Blogging About the 2013 Scripting Games

I’m sure that most people can easily find any of the blogs of the official judges from the 2013 Scripting Games. I recommend reading those blogs whether you’re competing in the scripting games or not since there’s a wealth of … Continue reading

Posted in PowerShell, Scripting Games | Tagged , | 5 Comments

2013 PowerShell Scripting Games Advanced Event 2 – Why NOT to use the Win32_ComputerSystem WMI Class

The majority of the entries I’ve seen for the Scripting Games event 2 are using the TotalPhysicalMemory property from the Win32_ComputerSystem WMI class to determine the total amount of physical memory in a server. The property name is “TotalPhysicalMemory” after … Continue reading

Posted in PowerShell, Scripting Games | Tagged , | 2 Comments

2013 PowerShell Scripting Games Advanced Event 2 – Attention to Detail is Everything

Here’s my approach to the 2013 PowerShell Scripting Games Advanced Event 2: When I start one of the Scripting Games events, I read and re-read the scenario because if you don’t understand the requirements, you can’t write an effect script, … Continue reading

Posted in PowerShell, Scripting Games | Tagged , | 1 Comment

Lessons Learned from the Scripting Games Advanced Event 1

This is a continuation from my previous blog titled “2013 PowerShell Scripting Games Advanced Event 1 – Parameters Don’t Always Work As Expected“. This isn’t the exact script, but sections of it. You’ll notice at the bottom of the first image … Continue reading

Posted in PowerShell, Scripting Games | Tagged , | 1 Comment

2013 PowerShell Scripting Games Advanced Event 1 – Parameters Don’t Always Work As Expected

The scenario for this event states the following which has been paraphrased: Someone allowed log files to build up for around two years and they’re starting to causing disk space issues on the server. You need to build a tool … Continue reading

Posted in PowerShell, Scripting Games | Tagged , | 2 Comments

PowerShell Function to Determine the Active Directory FSMO Role Holders via the .NET Framework

Last week I posted a PowerShell function to determine what Active Directory domain controllers held the FSMO roles for one or more domains and forests. That particular function used the Get-ADDomain and Get-ADForest cmdlets which are part of the Active Directory PowerShell module. As … Continue reading

Posted in Active Directory, PowerShell | Tagged , | Leave a comment

Use PowerShell to Find Where the Current FSMO Roles are Assigned in Active Directory

A while back, I had a need to figure out with PowerShell what server in an Active Directory domain held the PDC Emulator FSMO Role. I found a script on a very popular blog site that figured it out by … Continue reading

Posted in Active Directory, PowerShell | Tagged , | 2 Comments

Using PowerShell v3 Features to Figure Out the Mysterious PowerShell Pipeline

I actually wrote this blog a couple of weeks ago and postponed it until I could do further testing because I thought of some scenarios where it possibly wouldn’t work. I wrote a couple of new blogs over the past … Continue reading

Posted in PowerShell | Tagged | Leave a comment

Mississippi PowerShell User Group – April Meeting Tomorrow Night!

The April Meeting of the Mississippi PowerShell User Group is tomorrow night, Tuesday April 9th at 8:30pm Central Time (CDT). This meeting will be held online (virtual) via Microsoft Lync, it is open to the public, and free to attend. … Continue reading

Posted in PowerShell | Tagged | 1 Comment