PowerTip: Create a nested PowerShell custom object

Summary: Learn how to create a nested PowerShell custom object.  How do I create a nested PowerShell custom object to store layers (nested) of information? Use a hashtable with the PSCustomObject type accelerator, and specify PSCustomObject as the value to the Property Name (Key): [PSCustomObject]@{ PropertyName = [PSCustomObject]@{ NestedPropertyName = ‘NestedPropertyValue’ } }… Read more

PowerTip: Continue a Windows PowerShell Script After Restart

Summary: Learn how to continue a script after a remote system restart by using Windows PowerShell.  I am configuring MPIO to automatically claim the iSCSI Bus Type, which requires a restart. However, I want to continue           automating afterward, so how do I continue my script from that point?  Introduced in Windows… Read more

PowerTip: Use PowerShell to Query Cluster Shared Volumes' Free Space

Summary: Learn how to use Windows PowerShell to query for free space in Cluster Shared Volumes.  How can I use Windows PowerShell to find the free space in all my Cluster Shared Volumes for Hyper-V in            Windows Server 2012 R2 or Windows Server 2012?  Use the Get-ClusterSharedVolume cmdlet with the –Cluster parameter and your Hyper-V… Read more

PowerShell Above and Beyond the Minimum Requirements

Summary: Two Microsoft Windows PowerShell experts get extreme with the standard Hello World script. Microsoft Scripting Guy, Ed Wilson, is here. Last month at the Charlotte PowerShell User Group meeting, we played around with some scenarios, and we had each of the attendees work through the tasks to see the various ways they would come… Read more

Determine Pending Reboot Status—PowerShell Style! Part 2

Summary: Guest blogger, Brian Wilhite, talks about using Windows PowerShell to detect a server that is in pending reboot status. Microsoft Scripting Guy, Ed Wilson, is here. Today we have the conclusion to Brian Wilhite’s guest blog series about detecting pending reboots via Windows PowerShell. Prior to reading today’s post, you should read Determine Pending… Read more

Determine Pending Reboot Status—PowerShell Style! Part 1

Summary: Guest blogger, Brian Wilhite, talks about using Windows PowerShell to determine pending reboot status. Microsoft Scripting Guy, Ed Wilson, is here. Today we have the first of a two-part series about using Windows PowerShell to determine if a reboot is pending. Brian Wilhite, the writer, is no stranger to readers of the Hey, Scripting… Read more

Use PowerShell to Change the Mouse Pointer Scheme

Summary: Guest blogger and Honorary Scripting Guy Brian Wilhite talks about using Windows PowerShell to change a user’s mouse scheme. Microsoft Scripting Guy, Ed Wilson, is here. Today, we have a guest blogger—Brian Wilhite is an Honorary Scripting Guy and member of the Charlotte PowerShell Users Group. See previous blogs by Brian here. Take it… Read more

PowerTip: Use PowerShell to Update DNS IP Address

Summary: Use Windows PowerShell 3.0 on either Windows 8 or Windows Server 2012 to update the DNS server IP addresses on a client.  How can I update my DNS server IP addresses on my Windows 8 client?  According to Brian Wilhite, Charlotte Windows PowerShell user group member: Luckily, there is a Windows PowerShell cmdlet that does this very thing. The Set-DnsClientServerAddress is… Read more

PowerTip: The Easy Way to Create a Custom PowerShell Object

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… Read more

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… Read more