FI-B322 – Scripts used during MMS 2012 PowerShell session

Hello everyone, For all of those attending MMS 2012, hope you are having a great week! As promised here is the PowerShell session (FI-B322), script used during the session. #set script variables$vmNamePrefix = “COMBINEDDEMO”#set random number$global:Rand = (new-object random)$random = $rand.Next(100,999)#Get Template by name($t = Get-SCVMtemplate | where {$_.Name -eq “W2K8R2SP1_Template”}) | fl Name, OperatingSystem,…

0

SCVMM 2012 Quick Tip: Finding which storage arrays a Hyper-V host can see

SNIA SMI Lab kicked off the 4th and final plugfest for 2011 this week. Microsoft is here along with several storage partners. Earlier today, we started testing VMM 2012 with a SMI-S based storage provider and we tried to allocate a LUN to a host group that contained a Hyper-V host. This operation succeeded with…

0

Loading VMM and vSphere cmdlets into the same PowerShell Console

Hello everyone, This is Hector Linares, Program Manager for storage automation and with help from Erwien Saputra, UI developer on the Virtual Machine Manager team. We want to show you how to load VMM and vSphere cmdlets in the same PowerShell console. Administrators that need to manage both Hyper-V and ESX in their environment, can…

0

How to list VMs by the virtual network they are connected to

This is from an internal question I replied to. This is a simply script given as a starting point that can be extended. ———————————————————————————————————————————- I have a host that has 4 physical network cards, 3 of which are mapped to virtual switches that are External.   I would like to, programmatically,   (1)    get these…

0