Test Post to See if Code Paste From ISE Looks Okay

  This just a test post to see how well I can get code from ISE to look good on the blog, almost like a screen shot, but not actually be a screen shot, be totally copy and pastable. PS> Get-Command -Verb Get | Format-Wide -Column 4 Get-ProvisionedA… Get-AppBackgroun… Get-AppxLastError   Get-AppxLog        Get-AssignedAccess  Get-BCClientConf… Get-BCContentSer… Get-BCDataCache   …

1

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")] public static extern bool Beep(int freq,int duration); "@ Add-Type -MemberDefinition $signature -Name "Beeper" -Namespace Win32Functions -PassThru…

1

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 chose yes…") $option2 = New-Object System.Management.Automation.Host.ChoiceDescription("&No","You chose no…") $choices = [System.Management.Automation.Host.ChoiceDescription[]]($option1, $option2) $chosen = $host.ui.PromptForChoice("Error Background","Do you want error background to…

0

Sample all PowerShell Console Colors

I often need to pick console colors to use making host text a little easier to look at (coupled with smart indentation).  The –Foregroundcolor parameter of the Write-Host cmdlet is what I commonly use to set text colors.  I like to use lots of colors, but sometimes I forget what all the colors are and…

9

PowerShell and Kinect for Windows

I put together a script that will allow you to render skeleton joints right in your PowerShell console window.  Kinect sees the skelton and the PS processes it.  The code isn’t really polished yet so I am not ready to post it, but here is a little youtube video example of what it looks right…

4

Is this just wrong? Double Where-Object to use the simplified syntax with –and.

When PowerShell v3 introduced the new simplified syntax for the where-object, at first I really loathed it Get-Process | Where-Object {$_.ws -gt 100MB} can be simplified to this: Get-Process | Where ws -gt 100MB The reason I didn’t like it up front was because you still really have to understand the first more complex example…

0

Upcoming Atlanta-Area PowerShell Event

Hey folks,  I am like the Dos Equis guy.  I don’t post often, but when I do, its about cool stuff Yours truly is going to be delivering two sessions at the upcoming PowerShell Saturday event at the Microsoft Office in Alpharetta.  It should be a blast, and went really well in Ohio (Columbus) and North Carolina…

0

I will be delivering a Technical Training Session at the Feb. Meeting of AAUG (Atlanta Active Directory User Group)

Hey folks.  I will be delivering a session the MS AD module for PowerShell at the February meeting of AAUG (Atlanta Active Directory User Group).  Its open to all.  These user groups are absolutely great.  I have been started to attend the PowerShell user group in Atlanta when my travel schedule permits.  If you want…

0

Video Showcasing Microsoft Certified Master Certification and Training Program

I went through the MCM program for Exchange 2007 a few years ago.  It was an absolutely great experience.  Don’t get me wrong, I added some grey hair during those three weeks, but it was worth every minute and ounce of energy.  I was fortunate enough to manage to pass all the exams and the…

0