PowerTip: Find Numeric Value of Enum in PowerShell

Summary: Learn how to easily find the numeric value of an enum in Windows PowerShell.  How can I use Windows PowerShell to easily find the numeric value of an enumeration?  Use square brackets to call the enum, call the enumeration property as a static property, and reference3            the value__ property. Here is…


Working with Enums in PowerShell 5

Summary: Ed Wilson, Microsoft Scripting Guy, talks about working with enums in Windows PowerShell 5.0 in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday, I talked about the new stealth feature in Windows PowerShell 5.0 in Windows 10 that permits me to easily create an enum. Enums are great because they provide a…


New PowerShell 5 Feature: Enumerations

Summary: Ed Wilson, Microsoft Scripting Guy, talks about creating enumerations in Windows PowerShell 5.0. Microsoft Scripting Guy, Ed Wilson, is here. It is nearly a stealth feature in Windows PowerShell 5.0—there is an Enum keyword. Yep, that's right, there is an Enum keyword. I wonder what it does? Probably has something to do with creating…


Hey, Scripting Guy! Weekend Scripter: Using Enumerations in Scripts

  Microsoft Scripting Guy Ed Wilson here. The Scripting Wife and I are on the road again. She is driving, and I am playing around with Windows PowerShell enumerations. Teresa made friends with a couple we met in the concierge lounge of our hotel in Lisbon while I was teaching a month’s worth of Windows…

0

Hey, Scripting Guy! Weekend Scripter: Testing for a Loaded Enumeration

  Microsoft Scripting Guy Ed Wilson here. The constant pounding of the waves against the shore has a calming effect upon stressed psyches. The moist salty ocean air carries to the balcony as the sea spray from the waves wafts along the brisk breeze that parallels the beach in the morning. The beach, as seen…

0

Hey, Scripting Guy! Weekend Scripter: Enumerations and Values

    Microsoft Scripting Guy Ed Wilson here. The Scripting Wife met me as I was coming down the back stairs with her suitcase packed. “Good morning, my dear! What’s up?” I exclaimed with a hint of curiosity in my voice. “We are heading to Hilton Head this weekend,” she said in a matter-of-fact tone….

0