PowerShell Saturday: Prep Guide for PowerShell Beginners Crash Course

My sessions for PowerShell Saturday Singapore 01 will be a 2 part PowerShell Crash Course for complete beginners.  The way to get the most from this would be to follow along using Virtual Machines.  You can either create these in Windows Azure using an MSDN or Trial subscription (you will of course need connectivity to use them) or as VM’s locally on your machine.  Your configuration options would be:

Option 1

  1. 1 x Windows Server 2008 R2 running PowerShell v2.0
  2. 1 x Windows Server 2008 R2 running PowerShell v3.0

Option 2

  1. 1 x Windows Server 2008 R2 running PowerShell v2.0
  2. 1 x Windows Server 2012 running PowerShell v3.0

Option 3 (so you can understand all differences)

  1. 1 x Windows Server 2008 R2 running PowerShell v2.0
  2. 1 x Windows Server 2008 R2 running PowerShell v3.0
  3. 1 x Windows Server 2012 running PowerShell v3.0

Prerequisites

  1. Virtualization software on your laptop, this can be:
    1. Hyper-V (Windows 8)
    2. VMWare (All Windows Versions)
    3. VirtualBox (All Windows Versions)
      OR
  2. Windows Azure Account
    1. Steps for setting up VM’s in Windows Azure are beyond the scope of this article but it is very straightforward

Local Virtual Machine Preparation Steps

  1. Download an evaluation copy of Windows 2008 R2 SP1 from <http://technet.microsoft.com/en-sg/evalcenter/dd459137.aspx
  2. If required, also download Windows Server 2012 Evaluation from http://technet.microsoft.com/en-US/evalcenter/hh670538.aspx
  3. Create your combination of VM’s as from the Option you selected using your VM Software

Setting up PowerShell v2.0 ISE on Windows Server 2008 R2 SP1

PowerShell v2.0 is installed by default, but the Integrated Scripting Environment is not.  To do this;

  1. Open PowerShell
  2. Type ‘Import-Module ServerManager’ and hit enter
  3. Type ‘Add-WindowsFeature PowerShell-ISE’ and hit enter
  4. The ISE will be installed for you, and that’s it!

If you must use Server Manager, the ISE can be added under Roles and Features.  You’ll find ‘Window PowerShell Integrated Scripting Environment (ISE)’ under Features.

Setting up PowerShell v3.0 and the ISE on Windows Server 2008 R2 SP1

  1. Download the .NET Framework 4.0 at http://www.microsoft.com/en-sg/download/details.aspx?id=17718 and run the installer
  2. Start PowerShell and type ‘Import-Module ServerManager’ and press Enter
  3. Type ‘Add-WindowsFeature PowerShell-ISE’ and hit enter to install the ISE for PowerShell v2.0
  4. Download the Windows Management Framework 3.0 at http://www.microsoft.com/en-us/download/details.aspx?id=34595 and run the installer, you will be prompted to restart the machine
  5. PowerShell and the PowerShell ISE are now updated to v3.0

Setting up PowerShell v3.0 and the ISE on Windows Server 2012

  1. Do nothing. Everything you need is installed by default!

Optional Steps

You may also download and install PowerGUI from www.powergui.org as this is a tool I will also make reference to, it’s just awesome.

If you get stuck with any of the prerequisites or have any questions please reach me at matt@sgwindowsgroup.org or singapore@powershellgroup.org

Advertisements


Categories: PowerShell Saturday Singapore, Powershell User Group Singapore

1 reply

Trackbacks

  1. Full Schedule for PowerShell Saturday Singapore 01 | @HITCHYSG

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: