i Love PowerShell
  • Home
  • My PowerShell Story
  • PowerShell Basics
  • PowerShell for Windows Server
Select Page

Viewing a VMware PowerCLI Get-AdvancedSetting Value When It Doesn’t Exist

by Michael Simmons | Apr 17, 2017 | Windows PowerShell (Legacy)

The situation:  You want to ensure that an advanced setting is consistently applied through all of your VMs. Getting Advanced Settings from all of your VMs… almost You run this command in PowerCLI to find out which VMs are configured the way you want, and which...

How To Open A Directory Chooser Window With PowerShell

by Michael Simmons | Mar 8, 2017 | PowerShell (Modern), Windows PowerShell (Legacy)

I’m sure that you’ve seen plenty of scripts that set a path like “C:\temp” for logs, files, and other outputs.  But did you know that it’s actually very easy to add a pop up directory UI in PowerShell that gives a choice of where to save...

A Simple PowerShell Script to Install SCOM Web Console Prerequisites

by Michael Simmons | Mar 6, 2017 | Windows PowerShell (Legacy)

If you’re getting ready to install the System Center Operations Manager web console, there are several prerequisites that you need to install before you’re ready for it. Luckily, if you’re comfortable with PowerShell this becomes SO easy, and...

What is Your .NET Framework Version? Use PowerShell to Check

by Michael Simmons | Feb 19, 2017 | Windows PowerShell (Legacy)

Finding out which .NET Framework Version is currently installed is not something that most people think of every day. However, if you are a  Windows Server Administrator managing web servers that run .NET web applications, then making sure that your servers are...

Use XPath to Search XML Nodes by Node Text Value

by Michael Simmons | Sep 16, 2015 | PowerShell (Modern)

Alright, another quick lesson in finding XML. You see, an XML node like this: <server name=”DomainController1″></server> Uses the name as an attribute. I just wrote a post about how to search XML by node attribute. But that won’t do you a...

Searching XML Nodes By Attribute Name with Select-XML

by Michael Simmons | Sep 11, 2015 | PowerShell (Modern)

Any of you say this prayer after you’ve successfully remembered how to filter by the node attribute property with Select-XML and PowerShell? Dear God. Please let me remember this syntax the next time I’m trying to search an XML file. If you will just spare...

Using the Add Method of a Hashtable Object

by Michael Simmons | Sep 11, 2015 | PowerShell Basics

I saw an interesting approach to working with a hashtable the other day. It started with this: $hashtable = @{} This is different than how I usually create an array: $array = @() And also different from creating a PowerShell object: $PSObject = [PSCustomObject]@{}...

Get a Folder Size with PowerShell

by Michael Simmons | Sep 10, 2015 | Windows PowerShell (Legacy)

It’s really easy to get the size of a folder with PowerShell. Even though the directory does not actually have a property for size, you just need to get the size of all of the files inside the folder. function Get-FolderSize { [CmdletBinding()] Param (...

How to Check if a Server Needs a Reboot

by Michael Simmons | Sep 10, 2015 | Windows PowerShell (Legacy)

If you’re trying to determine which of your servers require reboots, you’ll love this PowerShell script to check the status. It turns out that a simple way to identify servers that are pending reboot is to check the registry. This information is stored in...

Find the processes using the most CPU on a computer with PowerShell

by Michael Simmons | Jun 5, 2015 | PowerShell (Modern), Windows PowerShell (Legacy)

Have a complaint from a user that a server is sluggish? Maybe you’re just curious if the problem you’re seeing on a server is related to a process consuming a lot of CPU, or you know the CPU is pegged and you want to identify which process is the culprit....
« Older Entries
Next Entries »

Recent Posts

  • System Information: Getting Hardware, Software, and OS Details
  • Windows Registry with PowerShell: Reading, Writing and Deleting Keys
  • PowerShell for Networks: Pinging, Testing, and Scanning
  • Monitoring Processes with Custom Performance Counters
  • PowerShell for Process Management: Starting, Stopping, and Monitoring Processes

Archives

  • April 2023
  • March 2023
  • August 2021
  • September 2020
  • November 2019
  • October 2019
  • May 2018
  • April 2017
  • March 2017
  • February 2017
  • September 2015
  • June 2015
  • May 2015
  • March 2015
  • January 2015
  • September 2014
  • May 2014
  • August 2013
  • July 2013
  • March 2013
  • September 2012
  • December 2011
  • November 2011
  • March 2011
  • December 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2010

Categories

  • Azure
  • books
  • PowerShell (Modern)
  • PowerShell Basics
  • PowerShell for Windows Server
  • Windows PowerShell (Legacy)