Author: Mike F Robbins

Mike F Robbins is a Microsoft MVP on Windows PowerShell and a SAPIEN Technologies MVP. He is a co-author of Windows PowerShell TFM 4th Edition and is a contributing author of a chapter in the PowerShell Deep Dives book. Mike has written guest blog articles for the Hey, Scripting Guy! Blog, PowerShell Magazine, and PowerShell.org. He is the winner of the advanced category in the 2013 PowerShell Scripting Games. Mike is also the leader and co-founder of the Mississippi PowerShell User Group. He blogs at mikefrobbins.com and can be found on twitter @mikefrobbins.

Use PowerShell to Determine What Roles are Added When Turning a Windows 2012 Server into a Domain Controller

Goal: Determine what roles are installed when turning a Windows Server 2012 machine into a domain controller. I started out by using PowerShell to save a list of what roles are installed on a plain vanilla 2012 server that has the full GUI installation. The following one liner would be used in PowerShell version 2 to accomplish this task and the syntax is compatible with version 3: PowerShell version 3 has simplified syntax when using the Where-Object cmdlet Read more [...]

Welcome to PowerShell Hell

I finally figured out why the error messages in PowerShell are in bright red. It's because it's the color of flames and/or red hot coals and it means you may be in PowerShell Hell. That's what recently happened when I updated the Antivirus on my PC from Eset NOD32 version 4 to version 5. A few days after updating, I was in PowerShell Hell as shown below: When trying to run Get-ChildItem against WSMan:localhost, I received the following: Get-ChildItem : WS-Management cannot process the request. Read more [...]

ASP.NET v4.0 Application Pools Don’t Show Up in IIS

On a Windows Server 2008 R2 Machine, a default operating system installation was performed along with installing all of the Windows Updates to include the .NET Framework v4.0, then IIS was installed. On this particular server, the ASP.NET v4.0 Application Pools didn't show up automatically in IIS: My guess is this is because the .NET Framework 4.0 was installed before IIS. To resolve this issue open a command prompt as administrator (elevated privileges if UAC is enabled), change into the Read more [...]

Places to Learn More About PowerShell at TechEd

Stop by the Scripting Guys booth in the Connect Zone area at Microsoft TechEd North America 2012 to learn more about PowerShell: Here's The Scripting Guy (Ed Wilson) at the Scripting Guys booth yesterday while he was talking about my guest blog on the Hey, Scripting Guys! Blog (displayed on the monitor): Also stop by the Windows Server 2012 Server Manager & PowerShell booth in the Technical Learning Center area: µ Read more [...]

PowerShell 3.0 Hands-On Labs at TechEd 2012

Thinking about learning the new features of PowerShell 3.0 at Microsoft TechEd North America 2012? If you're planning to get some hands on experience using the hands on labs, don't waste your time. I attempted to go through the WSV11-HOL "What's New in Windows PowerShell 3.0 " this morning: Only to find out the resolution (screen size) on the virtual machine is set too high to view the content: I also attempted the WSV12-HOL "Introduction to Windows PowerShell Fundamentals 3.0 ", but had the Read more [...]

Microsoft TechEd 2012 BackPack (Bag) Choices

Here's what the inside of the three backpack choices look like at Microsoft TechEd North America 2012. I thought I was going to choose the silver bag since the pictures seemed to have a silver Buck Rogers look, but I ended up going with the blue urban camo bag since the silver one has a hideous glow in the dark neon green color on the inside of it: Here's what the outside of the backpacks look like. There's been lots of pictures of the outside of the bags previously posted on the web. The Read more [...]

Microsoft TechEd 2012 Transportation (Bus) Schedule

Here's the Microsoft TechEd North America 2012 Transportation (Bus) Schedule as posted in the lobby of the hotel I'm staying at. Click on the image for a zoomed-in view: Here's a challenge for anyone who views this. There's a small amount of the lobby of the hotel shown in the image above. Can anyone guess what hotel I'm staying at? Here's where you can download a PDF of this schedule. µ Read more [...]

Tips for Microsoft TechEd First Time Attendees

Tip #1: Bring Government Issued Photo ID and Printed TechEd Final Details Email Don't forget to bring some form of government-issued photo identification along with your TechEd and Hotel registration confirmations. You should have received an email titled "Microsoft TechEd North America 2012: Final Details" sometime around May 29th that includes a barcode that will speed up your registration process. TechEd is sold out this year so don't wait until the last minute to go through the onsite registration Read more [...]

Use PowerShell to Audit Logon Authentication Type

Want to know what type of authentication mechanism is being used when users log onto your servers? This script pulls the information from the event logs to determine how users are being authenticated. It uses Get-Winevent with the -FilterXPath parameter. That parameter and what the logon type numeric codes translate to are a couple of things that I haven't seen much documentation on. The script sorts by server name in ascending order and then by the time in descending order. I've Read more [...]

Adding PowerShell Snap-in’s and Locating Added Cmdlets

Want to make the SharePoint 2010 cmdlets available for use from the PowerShell ISE? Some products such as SharePoint 2010 provide their application specific PowerShell cmdlets via a PowerShell snap-in instead of a PowerShell module. The following commands are being run from the PowerShell ISE on a SharePoint 2010 web front-end server. To view the snap-ins that are available to add, run the following: The SharePoint 2010 snap-in is installed on the machine, Read more [...]

Using PowerShell to Find Expiring SSL Certificates & the Websites they’re Associated with

Have you recently received a notification about an expiring SSL certificate and don't remember where all it's used at? It's generally not an issue to figure this out with normal certificates which are issued for a single name, but if it's a wildcard certificate, it could be used on lots of different websites within your organization. The following PowerShell script retrieves all of the SSL certificate's thumbprints and their expiration dates on an individual server that has IIS installed (This has Read more [...]

Using the Quest Active Directory PowerShell Snapin to Search For & Set Attributes

I want to make sure that all users in a specific OU in my mikefrobbins.com Active Directory domain have the "Deny this user permissions to log on to Remote Desktop Session Host server" option set (checked): Download the Quest Active Directory PowerShell Snapin (free). The PowerShell command shown below searches this specific OU in my Active Directory domain for users where this attribute is not equal to false. The default setting is blank (allowed) as shown with the Gill Bates user below. Read more [...]

Rename an IIS Web Application with PowerShell

Want to rename an IIS Web Application on a Windows 2008 R2 server? It's not possible from the GUI, but it's simple to accomplish using PowerShell. First, let's create a web application in an existing website and then verify it exists: Here it is in the GUI: Rename the web application using PowerShell and then verify it was renamed: Here it is again in the GUI showing that it has indeed been renamed: µ Read more [...]