One of the cornerstone features of System Center Virtual Machine Manager (SCVMM) is PowerShell. They have built their entire GUI layered on top of PowerShell in the same way that Exchange 2007 did. A little while ago, I talked to Rakesh Malhotra (the Group Program Manager for SCVMM) about how things were going and he was very pleased with their bet on PowerShell. He talked about how their task-oriented Cmdlets provided a very user approachable scripting experience. I asked him for a few examples so he sent me a set of comparisons with VMWare's scripting experience (the VMWare script came from their website: http://www.vmware.com/community/thread.jspa?messageID=348638񕇞 ).
$vms = Get-VM | where {$_.VMState –eq 'Running'}$vms | Get-DVDDrive | Set-DVDDrive –NoMedia $vms | Get-FloppyDrive | Set-FloppyDrive –NoMedia
Take a minute and compare the 2 scripts and ask the following questions:
I think you'll find different answers for the different scripts.
Cheers!
Jeffrey Snover [MSFT]Windows PowerShell/Aspen ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx