Working on Windows Hyper-V Server 8: PowerShell

Posted: June 23, 2012 in Live in a Cloudy World, Virtualization

Finally I got windows server installed on one of my computer, continuing my research on the cloud computing. Now I have installed the Windows Server 8 Hyper-V, I will show you how to manage it and configure the virtual machines created on your own private Cloud. So for those of you who don’t know Windows PowerShell here is one of my latest blog posts, I have already done, describing it and how can you benefit from it. Just to mention my version of Windows Server 8 is: Windows Hyper-V server 8, it is a bit different than the others; here you can do all the required things using Cmdlet.

First of all you have to get the PowerShell for Hyper-V, which extend and give you more capabilities than the PowerShell already installed on your Hyper-V. You can get the additional libraries from this website. After you download the Zip file and unzip it, you can now install it on your Hyper-V just by changing the directory to where the file is unzipped and then enter the following command or call the file of the installation: install.cmd. You can monitor the installation and at the end you can see the PowerShell window opened at the end.

You can get all the command by simply entering the following command in the PowerShell window:

    Get-Command –Module -HyperV

Now we have the PowerShell installed, so let’s create our first VM using the PowerShell Libraries. The steps are so simple you can create VM on the server you are working on by simply typing the following command:

    New-VM <VM-Name>

For creating the VM on different server you have to define its name after the VM name.

    New-VM <VM-Name> “<Server-Name>”

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s