Summary: Remember a holiday tune that entertained us? From the third Scripting Guys! holiday special, can you name the theme song that was sung most horribly off-key by a certain unnamed Windows PowerShell MVP? Think you know the answer? Verify by watching this surprise video…or stay tuned. …
Year: 2014
Oliver Script: A Holiday Tale–Part 2
Summary: Oliver discovers how to easily find data with Windows PowerShell. Note This is the second post in a series. To get started, read Oliver Script: A Holiday Tale–Part 1. “Would you like fries with that?” How Oliver hated uttering those words daily. He hated going home, smelling of rancid grease and old soda pop. But…
PowerTrivia: Scripting Guys Holiday Special Trivia #1
Summary: Have some fun remembering holiday specials from the past five years. In the very first Scripting Guys holiday special, A PowerShell Carol, who was the poor unhappy fellow who lost his way and would only use VBScript? Think you know the answer? Verify by reading Holiday PowerShell Carol, Part One…or stay…
Oliver Script: A Holiday Tale–Part 1
Summary: We are introduced to our friend, Oliver Script, who discovers the magic of Get-Help in Windows PowerShell. There are times when dreams wander away… when the magic fades because we forget to believe in the possible… when we let the whispers of the possibilities of tomorrow silently wander off and disappear into…
PowerTip: Convert String into DateTime Object
Summary: Use Windows PowerShell to convert a string into a DateTime object. How can I use Windows PowerShell to easily create a System.DateTime object from a string? Use the [DateTime] type accelerator to convert the string, for example: [datetime]"1/2/14"
Access Objects Inside Other Objects in PowerShell Pipeline
Summary: Microsoft Scripting Guy, Ed Wilson, talks about accessing objects inside other objects in the Windows PowerShell pipeline. Hey, Scripting Guy! Yesterday in Create Custom PowerShell Objects, you talked about writing a script to access embedded objects. That seems like a lot of trouble. Is there a better or easier way to do that, for…
PowerTip: Create Custom PowerShell Objects
Summary: Learn about the easiest way to create a custom Windows PowerShell object. How can I easily create a custom object that contains only a few of the existing properties of a Windows PowerShell cmdlet? Use the Select-Object cmdlet in the pipeline and choose the properties you want to add to the…
Create Custom PowerShell Objects
Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating custom objects via Windows PowerShell. Hey, Scripting Guy! Yesterday in Understand Embedded Objects in PowerShell, you said the easy way to expand a Windows PowerShell object was to use the –ExpandProperty parameter from the Select-Object cmdlet. That works OK, but I cannot also select other properties….
PowerTip: Expand Objects in PowerShell
Summary: Learn how to easily expand objects in Windows PowerShell. How can I expand an object that was returned by my Windows PowerShell expression? Use the –ExpandProperty parameter from Select-Object to expand objects in Windows PowerShell. This example expands the System.Diagnostics.ProcessStartInfo object returned by the Get-Process cmdlet: Get-Process | Select-Object -ExpandProperty startinfo
Understand Embedded Objects in PowerShell
Summary: Microsoft Scripting Guy, Ed Wilson, talks about understanding embedded objects in Windows PowerShell. Hey, Scripting Guy! I don’t get it. Some things in Windows PowerShell are so easy, and others are so complicated. It seems to go from ridiculously easy to ridiculously hard all at once. Take for instance, the Get-Process cmdlet. I mean,…