PowerShell Cheat Sheet

March 2015 EDIT:  Updated list of resources is available here.

I’m working on compiling a cheat sheet or two for PowerShell.  Why would I do this when so many exist?  No idea.  Is it messy and might it overlook important details?  Absolutely!  If you have any suggestions they would be greatly appreciated.

I would like to acknowledge the following sources which came in quite handy when putting the cheat sheets together.  If you haven’t already, you may want to bookmark/download/purchase these!  They will come in handy regardless of the cheat sheets you use or commands you memorize

Note – Will be keeping this list up to date.  Suggestions welcome!

2012/09/12: PowerCLI poster updated for version 5.1, PowerShell Basic Cheat Sheet updated

PowerShell 3.0

Hi all,

Yesterday, Microsoft released Windows Management Framework 3.0 (includes PowerShell v3) for downlevel systems such as Windows 7 and Windows Server 2008 R2. This is a must have for anyone remotely interested in using PowerShell.

  • Install Microsoft .NET Framework 4.0 from here
  • Uninstall any prerelease versions of WMF 3.0 (KB2506143 or KB2506146)
  • Install appropriate WMF 3.0 package from here

Why bother?  A few highlights:

If you haven’t already, pick up PowerShell v3 now and give it a go!  If you are running Windows 8 or Windows Server 2012, you are already using PowerShell v3.

On a side note, Microsoft released Windows Server 2012 to Technet, MSDN, and for general availability yesterday.  No word on availability through DreamSpark.

Bacon Egg and Cheese

In High School, I often took a morning break to head out to a local bagel shop for a bacon egg and cheese.

Years later, I’m quite familiar with the notion that you need to burn off as many calories as you consume to maintain your weight.  Portions, nutrition, and quality of food help.  I’m a big fan of farm shares / CSA programs like The Good Food Collective.  You support local farmers, get delicious and nutritional food, experience new flavors, and often have little time or room for unhealthy options.

That being said, the occasional indulgence won’t spoil your efforts to stay healthy, so enjoy this bacon egg and cheese at least once.

bec

Ingredients:

  • 5 Eggs
  • 6 Extra thick strips of bacon
  • 2 Kaiser rolls
  • 2-4 slices of good cheddar
  • 2 slices of aged provolone
  • Salt and pepper to taste

Get everything out and set the oven to 350.  Set kaiser rolls on a baking sheet, inside-up with Provolone on one side, cheddar on the other.  Whisk the eggs together with salt and pepper to taste, set aside.

Cook the bacon according to directions.  2 minutes before the bacon is ready, pull the rolls in the oven.  Remove bacon, remove some of the grease.  Pour eggs into pan, cook as desired.  I let mine set a bit, folder it over a few times into shapes that would hold and fit in a sandwich.  Remove rolls from oven.

Place egg on the bottom rolls, press bacon into cheese on top of rolls.  Break up the bacon to avoid bacon loss.  Press sandwich together and enjoy!

Serves two.  Don’t bother thinking about the nutritional content.  Go for a run before or well after you eat this.