The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

Archive for January 14th, 2013

NIC 2013–I have 2,5 Session

Posted by Mikael Nystrom on January 14, 2013

Session 1: “Windows to Go in real life”

I will do a session on Windows to Go, I’ll cover the Domain Join, Certificates, Group Policy’s, Applications, and Creation using the “non-wizard” way. Basically what you need to know when Windows to Go is supposed to be used in the real world.

Session 2: “Windows 8 Hyper-V”

The session will cover Hyper-V in Windows 8, installing, configuring, how to use, what to use it for and a bunch of tips and tricks.

Session 2.5: “Developing Hydration Kits – IT Pro Automation at its best!”

My half session with Johan Arwidmark is about Hydration, something that we both have used and built during many years. Hydration is the Uber-Geek thing, it is all about insanity in automation and scripting, I’ll demo the HYDV3 kit, which will build an entire infrastructure with Server 2012, Windows 7 and Windows 8 and the entire System Server 2012 SP1 product suite fully automated.

/Mike

Posted in NICCONF, Session | Tagged: | 3 Comments »

PowerShell is King – Does my VM has any ISO mounted?

Posted by Mikael Nystrom on January 14, 2013

ok, so this is a new series of blog posts, the purpose is to show you SIMPLE PowerShell Cmdlets and scripts that could be useful on a daily basis.

Scenario:

You have multiple Hyper-V hosts with multiple VMs, some of them might use ISO images. You really would like to know which VM has what ISO image mounted.

Solution:

This will display all VMs and the corresponding ISO from HOST01 to HOST04

Get-VM -ComputerName HOST01,HOST02,HOST03,HOST04 | Get-VMDvdDrive | select VMName,Path

This will display all VMs and the corresponding ISO from the local Hyper-V

Get-VM | Get-VMDvdDrive | select VMName,Path

Remediation:

This will set the ISO image to NONE on the VM DEMO on the host HOST03

Get-VM DEMO -ComputerName HOST03 | Get-VMDvdDrive | Set-VMDvdDrive -Path $null

This will set the ISO image to NONE on all VMs on the local Hyper-V

Get-VM | Get-VMDvdDrive | Set-VMDvdDrive -Path $null

Output:

image

Posted in PowerShell | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 1,655 other followers