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 x Windows Server 2008 R2 running PowerShell v2.0
- 1 x Windows Server 2008 R2 running PowerShell v3.0
Option 2
- 1 x Windows Server 2008 R2 running PowerShell v2.0
- 1 x Windows Server 2012 running PowerShell v3.0
Option 3 (so you can understand all differences)
- 1 x Windows Server 2008 R2 running PowerShell v2.0
- 1 x Windows Server 2008 R2 running PowerShell v3.0
- 1 x Windows Server 2012 running PowerShell v3.0
Prerequisites
- Virtualization software on your laptop, this can be:
- Hyper-V (Windows 8)
- VMWare (All Windows Versions)
- VirtualBox (All Windows Versions)
OR
- Windows Azure Account
- 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
- Download an evaluation copy of Windows 2008 R2 SP1 from <http://technet.microsoft.com/en-sg/evalcenter/dd459137.aspx
- If required, also download Windows Server 2012 Evaluation from http://technet.microsoft.com/en-US/evalcenter/hh670538.aspx
- 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;
- Open PowerShell
- Type ‘Import-Module ServerManager’ and hit enter
- Type ‘Add-WindowsFeature PowerShell-ISE’ and hit enter
- 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
- Download the .NET Framework 4.0 at http://www.microsoft.com/en-sg/download/details.aspx?id=17718 and run the installer
- Start PowerShell and type ‘Import-Module ServerManager’ and press Enter
- Type ‘Add-WindowsFeature PowerShell-ISE’ and hit enter to install the ISE for PowerShell v2.0
- 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
- PowerShell and the PowerShell ISE are now updated to v3.0
Setting up PowerShell v3.0 and the ISE on Windows Server 2012
- 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
Categories: PowerShell Saturday Singapore, Powershell User Group Singapore
Leave a Reply