SlideShare a Scribd company logo
Managing Microsoft Hyper-V with PowerShellRavikanth Chaganti
About MeLead Engineer at DellWindows PowerShell MVPAuthor ofFree eBook: Layman’s guide to PowerShell 2.0 remotingFree eBook: WMI Query Language via PowerShell (coming soon)Co-author on Quest’s SharePoint 2010 & PowerShell cheat sheetBlog at http://www.ravichaganti.com/blog
AgendaPowerShell 2.0 featuresIntegrated Scripting EnvironmentPowerShell remotingPowerShell for Hyper-VHyper-V WMI – OverviewVirtual Machine ManagementVirtual Network ManagementVirtual Storage ManagementHyper-V PowerShell ModuleQ & A
PowerShell 2.0 FeaturesAdvanced FunctionsIntegrated Scripting EnvironmentRemotingBackground jobsEventingBetter error handling & debugging supportSeveral new cmdlets
Integrated Scripting Environment (ISE)Output PaneScript PaneCommand Pane
PowerShell RemotingEnables Universal Code Execution ModelWhatever runs locally should run anywhereUses Windows Remote ManagementSupports several remoting methodsInvoke-CommandInteractive remotingImplicit remoting
PowerShell for Hyper-VNo built-in cmdletsRich set of WMI interfaces under root\virtualization namespace108 classes prefixed with Msvm_Complex to scriptPowerShell module for Hyper-VDeveloped by James O’neillhttp://pshyperv.codeplex.comSystem Center Virtual Machine Manager cmdlets
Hyper-V WMI - OverviewGet enabled when Hyper-V role is installedPresent in root\virtualization namespace108 classesExcluding the CIM and system classesCan be categorized in to:BIOSInputIntegration ComponentMemory / Processor / Networking / Storage / Serial / Video DevicesVirtual System & Virtual System ManagementProfile Registration & Resource Management
Hyper-V WMI: Virtual Machine ManagementMsvm_VirtualSystemManagementService class is usedCreate, Delete, and Manage VMsDefineVirtualSystemDestroyVirtualSystemModifyVirtualSystemModifyVirtualSystemResourcesRemoveVirtualSystemResourcesImport, Export, and snapshot VMsImportVirtualSystemExExportVirtualSystemExCreateVirtualSystemSnapshotRemoveVirtualSystemSnapshot
Hyper-V WMI: Virtual Network Management Msvm_VirtualSwitchManagementService class is usedCreate, Delete, and Manage virtual network componentsCreateSwitchCreateSwitchPortDeleteSwitchDeleteSwitchPortConnectSwitchPortDisconnectSwitchPort
Hyper-V WMI: Virtual Storage ManagementMsvm_ImageManagementService class is usedCreate, Mount, and Dismount virtual mediaCreateFixedVirtualHardDiskCreateDynamicVirtualHardDiskCreateDifferencingVirtualHardDiskMountUnmountValidateVirtualHardDisk
Hyper-V PowerShell ModuleScripting WMI interfaces isQuite complexQuite verboseHyper-V PowerShell ModuleDeveloped by James O’neillCan be download from http://pshyperv.codeplex.comImport-Module –Name hypervGet-Command –Module hypervContains 122 cmdlets
Hyper-V PowerShell Module: Virtual MachineGet-VMNew-VMRemove-VMMove-VMExport-VMImport-VMMany more….Get-Command -noun VM*
Get-VMSwitchNew-VMExternalSwitchNew-VMInternalSwitchNew-VMPrivateSwitchRemove-VMSwitchMany More..Get-Command –Noun VM*SwitchGet-Command -Noun VMNIC*Hyper-V PowerShell Module: Virtual Network
Hyper-V PowerShell Module: Virtual StorageCompress-VHDConvert-VHDDismount-VHDExpand-VHDGet-VHDMerge-VHDMount-VHDNew-VHDTest-VHDAdd-VMDriveRemove-VMDrive
Hyper-V PowerShell Module: VM ResourcesAdd-VMNICAdd-VMDiskSet-VMCPUCountSet-VMMemorySet-VMMany More..
ReferencesHyper-V WMI interfaces: http://msdn.microsoft.com/en-us/library/cc136986(v=VS.85).aspxPowerShell Module for Hyper-V: http://pshyperv.codeplex.comGetting Started with PowerShell: http://technet.microsoft.com/en-us/scriptcenter/dd742419
Q & A

More Related Content

What's hot (12)

PPTX
Presentation at VMware Workstation Instalation
Muzammul
 
PPT
Prepping software for w7 deployment
Concentrated Technology
 
PDF
WooCommerce WP-CLI Basics
corsonr
 
PDF
SAINT Virtual Machine Setup Instructions
Kumaran Balachandran
 
PPTX
Managing Windows Vista With Windows Power Shell
Microsoft TechNet
 
ODP
Plug yourself in and your app will never be the same (1 hr edition)
Mikkel Flindt Heisterberg
 
PPTX
Microsoft App-V 5.1 and Flexera AdminStudio Webinar
Flexera
 
PPTX
Lotus Notes Plugin Installation For Dummies
Mikkel Flindt Heisterberg
 
PPT
Top ESXi command line v2.0
Concentrated Technology
 
PDF
How To Install Windows 11
mauricemuteti2015
 
PPTX
Windows Server Core
Mark Wilson
 
PDF
Upgradingtodominov10bestpractices1549485091676
André Luís Cardoso
 
Presentation at VMware Workstation Instalation
Muzammul
 
Prepping software for w7 deployment
Concentrated Technology
 
WooCommerce WP-CLI Basics
corsonr
 
SAINT Virtual Machine Setup Instructions
Kumaran Balachandran
 
Managing Windows Vista With Windows Power Shell
Microsoft TechNet
 
Plug yourself in and your app will never be the same (1 hr edition)
Mikkel Flindt Heisterberg
 
Microsoft App-V 5.1 and Flexera AdminStudio Webinar
Flexera
 
Lotus Notes Plugin Installation For Dummies
Mikkel Flindt Heisterberg
 
Top ESXi command line v2.0
Concentrated Technology
 
How To Install Windows 11
mauricemuteti2015
 
Windows Server Core
Mark Wilson
 
Upgradingtodominov10bestpractices1549485091676
André Luís Cardoso
 

Viewers also liked (20)

PPTX
Storage and hyper v - the choices you can make and the things you need to kno...
Louis Göhl
 
PPTX
Attacking Web Applications
Sasha Goldshtein
 
PPTX
Hyper V And Scvmm Best Practis
Blauge
 
PDF
The Rules of Network Automation - Interop/NYC 2014
Jeremy Schulman
 
PPTX
Network Automation - Interconnection tools
Andy Davidson
 
PDF
The Datacenter Network You Wish You Had
Jeremy Schulman
 
PPTX
A Networking View for the DevOps Crew: SDN
Jeremy Schulman
 
PPT
Introduction To Work Item Customisation
wbarthol
 
PPTX
Security best practices for hyper v and server virtualisation [svr307]
Louis Göhl
 
PPTX
Understanding AzMan In Hyper-V
Lai Yoong Seng
 
PDF
Windows Server 2008 R2 Hyper-V SP1 Component Architecture
Tũi Wichets
 
PPTX
SQL and NoSQL in SQL Server
Michael Rys
 
DOCX
Rodc features
pothurajr
 
PDF
Class graph neo4j and software metrics
jexp
 
PPTX
A Network Engineer's Approach to Automation
Jeremy Schulman
 
PPT
Getting Started With The TFS API
wbarthol
 
PDF
Network analysis with Hadoop and Neo4j
fvanvollenhoven
 
PDF
Hyper-V Best Practices & Tips and Tricks
Amit Gatenyo
 
PPT
DeltaV Development Systems in a Virtualized Environment
Emerson Exchange
 
PPT
Master the Mystery and Marvels of DeltaV MPC
Emerson Exchange
 
Storage and hyper v - the choices you can make and the things you need to kno...
Louis Göhl
 
Attacking Web Applications
Sasha Goldshtein
 
Hyper V And Scvmm Best Practis
Blauge
 
The Rules of Network Automation - Interop/NYC 2014
Jeremy Schulman
 
Network Automation - Interconnection tools
Andy Davidson
 
The Datacenter Network You Wish You Had
Jeremy Schulman
 
A Networking View for the DevOps Crew: SDN
Jeremy Schulman
 
Introduction To Work Item Customisation
wbarthol
 
Security best practices for hyper v and server virtualisation [svr307]
Louis Göhl
 
Understanding AzMan In Hyper-V
Lai Yoong Seng
 
Windows Server 2008 R2 Hyper-V SP1 Component Architecture
Tũi Wichets
 
SQL and NoSQL in SQL Server
Michael Rys
 
Rodc features
pothurajr
 
Class graph neo4j and software metrics
jexp
 
A Network Engineer's Approach to Automation
Jeremy Schulman
 
Getting Started With The TFS API
wbarthol
 
Network analysis with Hadoop and Neo4j
fvanvollenhoven
 
Hyper-V Best Practices & Tips and Tricks
Amit Gatenyo
 
DeltaV Development Systems in a Virtualized Environment
Emerson Exchange
 
Master the Mystery and Marvels of DeltaV MPC
Emerson Exchange
 
Ad

Similar to Managing Hyper-V With PowerShell (20)

PPTX
Server virtualization 2
Eqhball Ghazizadeh
 
PPTX
Scvmm Technical Overview.Son Vu
vncson
 
PPTX
Server 2012 R2: Creating and Configuring Virtual Machine Settings
Lakeisha York
 
PPTX
Hyper-V Management
Paulo Freitas
 
PPTX
Intro to Deploying and administering server virtualization with Hyper-V and S...
Unitek Eduation
 
PPTX
Hyper-V: Best Practices
Tomica Kaniski
 
PPTX
Luc Dekens - Italian vmug usercon
VMUG IT
 
PPT
Introduction To Managing VMware With PowerShell
Hal Rottenberg
 
PPTX
MVUG Webcast Slide:- From Zero to Hero on Hyper V R2- Part 2
Lai Yoong Seng
 
PPTX
Whats New In 2008 R2 Hyper V And Vmm 2008 R2
Aidan Finn
 
PPTX
Whats New In 2008 R2 Hyper V And Vmm 2008 R2
guestf719e2
 
PPT
Managing VMware with PowerShell - VMworld 2008
Carter Shanklin
 
PPTX
Inventory your network and clients with PowerShell
Concentrated Technology
 
PPTX
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld
 
PPTX
Introduction to Virtualization, Virsh and Virt-Manager
walkerchang
 
PPTX
PowerCLI Workshop
Carter Shanklin
 
PPT
Lessons On Hyper V
Aidan Finn
 
PPT
10215 A 02
Juanchi_43
 
PPTX
Virtualisation Academy - Private Cloud
Aidan Finn
 
PPTX
Server virtualization 3
Eqhball Ghazizadeh
 
Server virtualization 2
Eqhball Ghazizadeh
 
Scvmm Technical Overview.Son Vu
vncson
 
Server 2012 R2: Creating and Configuring Virtual Machine Settings
Lakeisha York
 
Hyper-V Management
Paulo Freitas
 
Intro to Deploying and administering server virtualization with Hyper-V and S...
Unitek Eduation
 
Hyper-V: Best Practices
Tomica Kaniski
 
Luc Dekens - Italian vmug usercon
VMUG IT
 
Introduction To Managing VMware With PowerShell
Hal Rottenberg
 
MVUG Webcast Slide:- From Zero to Hero on Hyper V R2- Part 2
Lai Yoong Seng
 
Whats New In 2008 R2 Hyper V And Vmm 2008 R2
Aidan Finn
 
Whats New In 2008 R2 Hyper V And Vmm 2008 R2
guestf719e2
 
Managing VMware with PowerShell - VMworld 2008
Carter Shanklin
 
Inventory your network and clients with PowerShell
Concentrated Technology
 
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld
 
Introduction to Virtualization, Virsh and Virt-Manager
walkerchang
 
PowerCLI Workshop
Carter Shanklin
 
Lessons On Hyper V
Aidan Finn
 
10215 A 02
Juanchi_43
 
Virtualisation Academy - Private Cloud
Aidan Finn
 
Server virtualization 3
Eqhball Ghazizadeh
 
Ad

More from Ravikanth Chaganti (20)

PPTX
Azure Bicep - An Introduction
Ravikanth Chaganti
 
PPTX
Azure CLI 2.0 Tips and Tricks
Ravikanth Chaganti
 
PPTX
Tests Driven PowerShell Learning
Ravikanth Chaganti
 
PPTX
PowerShell Data as File System
Ravikanth Chaganti
 
PPTX
Azure at the command line
Ravikanth Chaganti
 
PPTX
Microsoft Azure Cloud and DevOps
Ravikanth Chaganti
 
PPTX
Using PowerShell DSC with AWS Cloud and CloudFormation
Ravikanth Chaganti
 
PPTX
Developing Infrastructure Code for CI & CD
Ravikanth Chaganti
 
PPTX
PowerShell DSC Partial Configurations and Cross-node Synchronization
Ravikanth Chaganti
 
PPTX
Operations Validation for Infrastructure As Code - PSConfEU 2016
Ravikanth Chaganti
 
PPTX
Authoring Azure Resource Manager Templates - Future Unleashed 2015
Ravikanth Chaganti
 
PPTX
Cloud Computing for IT professionals
Ravikanth Chaganti
 
PPTX
Introduction to Microsoft Azure Compute
Ravikanth Chaganti
 
PPTX
Cross platform configuration management using Desired State Configuration
Ravikanth Chaganti
 
PPTX
Windows Server 2012 R2 Hyper-V Replica
Ravikanth Chaganti
 
PPTX
Whats new in Windows Server 2012 R2 Hyper-V
Ravikanth Chaganti
 
PPTX
Configuration management comes to Windows
Ravikanth Chaganti
 
PPT
Desired state-configuration-ravikanth-august-2013-vtc india
Ravikanth Chaganti
 
PPTX
Power shell saturday ravikanth
Ravikanth Chaganti
 
PPTX
PowerShell 3.0 workflows
Ravikanth Chaganti
 
Azure Bicep - An Introduction
Ravikanth Chaganti
 
Azure CLI 2.0 Tips and Tricks
Ravikanth Chaganti
 
Tests Driven PowerShell Learning
Ravikanth Chaganti
 
PowerShell Data as File System
Ravikanth Chaganti
 
Azure at the command line
Ravikanth Chaganti
 
Microsoft Azure Cloud and DevOps
Ravikanth Chaganti
 
Using PowerShell DSC with AWS Cloud and CloudFormation
Ravikanth Chaganti
 
Developing Infrastructure Code for CI & CD
Ravikanth Chaganti
 
PowerShell DSC Partial Configurations and Cross-node Synchronization
Ravikanth Chaganti
 
Operations Validation for Infrastructure As Code - PSConfEU 2016
Ravikanth Chaganti
 
Authoring Azure Resource Manager Templates - Future Unleashed 2015
Ravikanth Chaganti
 
Cloud Computing for IT professionals
Ravikanth Chaganti
 
Introduction to Microsoft Azure Compute
Ravikanth Chaganti
 
Cross platform configuration management using Desired State Configuration
Ravikanth Chaganti
 
Windows Server 2012 R2 Hyper-V Replica
Ravikanth Chaganti
 
Whats new in Windows Server 2012 R2 Hyper-V
Ravikanth Chaganti
 
Configuration management comes to Windows
Ravikanth Chaganti
 
Desired state-configuration-ravikanth-august-2013-vtc india
Ravikanth Chaganti
 
Power shell saturday ravikanth
Ravikanth Chaganti
 
PowerShell 3.0 workflows
Ravikanth Chaganti
 

Recently uploaded (20)

PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Français Patch Tuesday - Juillet
Ivanti
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 

Managing Hyper-V With PowerShell

  • 1. Managing Microsoft Hyper-V with PowerShellRavikanth Chaganti
  • 2. About MeLead Engineer at DellWindows PowerShell MVPAuthor ofFree eBook: Layman’s guide to PowerShell 2.0 remotingFree eBook: WMI Query Language via PowerShell (coming soon)Co-author on Quest’s SharePoint 2010 & PowerShell cheat sheetBlog at http://www.ravichaganti.com/blog
  • 3. AgendaPowerShell 2.0 featuresIntegrated Scripting EnvironmentPowerShell remotingPowerShell for Hyper-VHyper-V WMI – OverviewVirtual Machine ManagementVirtual Network ManagementVirtual Storage ManagementHyper-V PowerShell ModuleQ & A
  • 4. PowerShell 2.0 FeaturesAdvanced FunctionsIntegrated Scripting EnvironmentRemotingBackground jobsEventingBetter error handling & debugging supportSeveral new cmdlets
  • 5. Integrated Scripting Environment (ISE)Output PaneScript PaneCommand Pane
  • 6. PowerShell RemotingEnables Universal Code Execution ModelWhatever runs locally should run anywhereUses Windows Remote ManagementSupports several remoting methodsInvoke-CommandInteractive remotingImplicit remoting
  • 7. PowerShell for Hyper-VNo built-in cmdletsRich set of WMI interfaces under root\virtualization namespace108 classes prefixed with Msvm_Complex to scriptPowerShell module for Hyper-VDeveloped by James O’neillhttp://pshyperv.codeplex.comSystem Center Virtual Machine Manager cmdlets
  • 8. Hyper-V WMI - OverviewGet enabled when Hyper-V role is installedPresent in root\virtualization namespace108 classesExcluding the CIM and system classesCan be categorized in to:BIOSInputIntegration ComponentMemory / Processor / Networking / Storage / Serial / Video DevicesVirtual System & Virtual System ManagementProfile Registration & Resource Management
  • 9. Hyper-V WMI: Virtual Machine ManagementMsvm_VirtualSystemManagementService class is usedCreate, Delete, and Manage VMsDefineVirtualSystemDestroyVirtualSystemModifyVirtualSystemModifyVirtualSystemResourcesRemoveVirtualSystemResourcesImport, Export, and snapshot VMsImportVirtualSystemExExportVirtualSystemExCreateVirtualSystemSnapshotRemoveVirtualSystemSnapshot
  • 10. Hyper-V WMI: Virtual Network Management Msvm_VirtualSwitchManagementService class is usedCreate, Delete, and Manage virtual network componentsCreateSwitchCreateSwitchPortDeleteSwitchDeleteSwitchPortConnectSwitchPortDisconnectSwitchPort
  • 11. Hyper-V WMI: Virtual Storage ManagementMsvm_ImageManagementService class is usedCreate, Mount, and Dismount virtual mediaCreateFixedVirtualHardDiskCreateDynamicVirtualHardDiskCreateDifferencingVirtualHardDiskMountUnmountValidateVirtualHardDisk
  • 12. Hyper-V PowerShell ModuleScripting WMI interfaces isQuite complexQuite verboseHyper-V PowerShell ModuleDeveloped by James O’neillCan be download from http://pshyperv.codeplex.comImport-Module –Name hypervGet-Command –Module hypervContains 122 cmdlets
  • 13. Hyper-V PowerShell Module: Virtual MachineGet-VMNew-VMRemove-VMMove-VMExport-VMImport-VMMany more….Get-Command -noun VM*
  • 14. Get-VMSwitchNew-VMExternalSwitchNew-VMInternalSwitchNew-VMPrivateSwitchRemove-VMSwitchMany More..Get-Command –Noun VM*SwitchGet-Command -Noun VMNIC*Hyper-V PowerShell Module: Virtual Network
  • 15. Hyper-V PowerShell Module: Virtual StorageCompress-VHDConvert-VHDDismount-VHDExpand-VHDGet-VHDMerge-VHDMount-VHDNew-VHDTest-VHDAdd-VMDriveRemove-VMDrive
  • 16. Hyper-V PowerShell Module: VM ResourcesAdd-VMNICAdd-VMDiskSet-VMCPUCountSet-VMMemorySet-VMMany More..
  • 17. ReferencesHyper-V WMI interfaces: http://msdn.microsoft.com/en-us/library/cc136986(v=VS.85).aspxPowerShell Module for Hyper-V: http://pshyperv.codeplex.comGetting Started with PowerShell: http://technet.microsoft.com/en-us/scriptcenter/dd742419
  • 18. Q & A