Summary: Create a custom Windows PowerShell object with the PSCustomObject type accelerator. What’s the easiest way to create a custom object? Charlotte Windows PowerShell User group member Brian Wilhite says: One of the easiest ways to create a custom object is to use the PSCustomObject type accelerator. This “shortcut” will not only create the custom object, but it will arrange…
Year: 2012
It’s a Wonderful Shell—Chapter 1
Summary: Microsoft PowerShell MVP and honorary Scripting Guy Sean Kearney begins his five-part holiday series. Microsoft Scripting Guy, Ed Wilson, is here. Today we have part one of a five-part series of It’s a Wonderful Shell staring George Shelley. These are written by Windows PowerShell MVP Sean Kearney. For more information about the series, Sean’s…
PowerTip: View Static Members of a Type Accelerator
Summary: Learn how to view static members of a type accelerator in Windows PowerShell. How can I view the static methods and properties of the [math] type accelerator? Charlotte Windows PowerShell user group Brian Wilhite says: To view the methods and properties of the [math] type accelerator, you’ll use the Get-Member cmdlet with the -Static parameter. [math] | Get-Member…
Scripting Guys Announce the Holiday Lineup
Summary: Microsoft Scripting Guy, Ed Wilson, announces the holiday lineup. Microsoft Scripting Guy, Ed Wilson, is here. I am pleased to announce the holiday lineup for this year’s holiday season. Once again, it is written by Windows PowerShell MVP and Honorary Scripting Guy Sean Kearney. Here is Sean’s updated biography: One day a little boy…
PowerTip: Search for Inactive User Accounts in Windows Server 2012 Active Directory
Summary: Learn how to use Windows PowerShell to search for inactive user accounts in Active Directory for Windows Server 2012. How can I query inactive user accounts in my Windows Server 2012 Active Directory environment? Charlotte Windows PowerShell user group member Brian Wilhite says: You can use the ActiveDirectory module that contains the Search-ADAccount cmdlet used to query inactive user…
Send an Email Message with Service Status Via PowerShell
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to send an email message with service status info. Hey, Scripting Guy! I have a number of services on a remote server that I would like to monitor. I would like to see the status of these services and receive these status updates…
PowerTip: Select the Next-to-Last Item in a PowerShell Array
Summary: Learn how to select the next-to-last item in a Windows PowerShell array. I have a collection of objects in an array, and I need to select the next-to-last item in the array. How can this be done? Good question … Charlotte Windows PowerShell user group member Brian Wilhite says: Every now and then, there are…
Use PowerShell to Find Non-Starting Automatic Services
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to troubleshoot non-starting automatic services. Hey, Scripting Guy! I have this server in a remote office that is running SharePoint. I do not know what version, but I am not certain that is a problem because it used to work. The problem is the…
PowerTip: Collect VM Performance by Using PowerShell
Summary: Use Windows PowerShell 3.0 and Windows Server 2012 to collect virtual machine performance information. How do I collect performance data on a daily basis for a specific Hyper-V virtual machine? Charlotte Windows PowerShell User group member Brian Wilhite says: There are two cmdlets that we’ll use first, enable monitoring, or metering as the cmdlet states, and then…
Use PowerShell to Map Disk Drives and Partitions
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and the CIM cmdlets to use WMI to map disk drives to partitions. Microsoft Scripting Guy, Ed Wilson, is here. It is definitely a cliché that the more things change, the more they stay the same. This is certainly true in the world of…