Gary's $this and that about PowerShell

I am a Microsoft Senior Premier Field Engineer based out of Atlanta, GA. My focus is Powershell. This blog is mainly to share interesting Powershell script samples.

April, 2014

  • Fun Script to Never Run While in a Hospital

    In class today a student asked about having a little fun and simulating a flat line heartbeat monitor. He was sparked on to this by my demoing the PowerShell alert (beep): “`a” $frequency = 2000 $signature = @" [DllImport("kernel32.dll"...
  • Profile Script From my Workshop VMs

    I had a student today ask for a copy of the profile I showed during class where I set error background color and start a transcript. Here is the code: $option1 = New-Object System.Management.Automation.Host.ChoiceDescription ( "&Yes" , "You...