{"id":9381,"date":"2009-01-29T14:34:00","date_gmt":"1999-11-29T20:00:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=9381"},"modified":"2009-01-29T14:34:00","modified_gmt":"1999-11-29T20:00:00","slug":"updated-hyper-v-powershell-library","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=9381","title":{"rendered":"Updated Hyper-V PowerShell Library"},"content":{"rendered":"<p>I just read on <a href=\"http:\/\/hypervoria.com\/hyper-v\/new-and-improved-powershell-management-library-for-hyper-v.aspx\" target=\"_blank\">Hypervoria<\/a> that the PowerShell library on <a href=\"http:\/\/www.codeplex.com\/PSHyperv\" target=\"_blank\">Codeplex<\/a> was updated.\u00a0 Everything in Hyper-V can be managed used PowerShell.\u00a0 Everything VMM does is translated into Powershell (and the scripts can be saved to the library for later use or copied\/pasted). <\/p>\n<p><em>\u201cAt present there are 80 functions in the library, some of these are worker functions which are not expected to be called directly, the others are listed below <\/em> <\/p>\n<p><em><b>Finding a VM<\/b><br \/>Get-VM, Choose-VM , Get-VMHost<\/em> <\/p>\n<p><em><b>Connecting to a VM<\/b><br \/>New-VMConnectSession<\/em> <\/p>\n<p><em><b>Discovering and manipulating Machine states<\/b><br \/>Get-VMState , Set-VMState , Convert-VmState, <br \/>Ping-VM , Test-VMHeartBeat, Shutdown-VM , Start-VM, Stop-VM, Suspend-VM<br \/>Get-VMKVP, Add-KVP, Remove-KVP, Get-VMJPEG<\/em> <\/p>\n<p><em><b>Backing up, exporting and snapshotting VMs<\/b><br \/>Export-VM , Import-VM, Get-VMSnapshot, Choose-VMSnapshot , Apply-VMSnapshot , New-VMSnapshot ,Remove-VMSnapshot, Rename-VMSnapShot, Update-VMSnapshot, Get-VMSnapshotTree, Get-VmBackupScript<\/em> <\/p>\n<p><em><b>Adding and removing VMs, configuring motherboard settings.<\/b><br \/>New-VM , Remove-VM , Set-VM , Get-VMCPUCount, Set-VMCPUCount, Get-VMMemory, Set-VMMemory, Set-VMSerialPort<\/em> <\/p>\n<p><em><b>Manipulating Disk controllers, drives and disk images<\/b><br \/>Get-VMDiskController<br \/>Add-VMSCSIController , Remove-VMSCSIcontroller<br \/>Get-VMDriveByController , Add-VMDRIVE , Remove-VMdrive<br \/>Get-VMDiskByDrive, Add-VMDISK , Set-VMDisk, Get-VMDisk<br \/>Get-VMFloppyDisk , Add-VMFloppyDisk<br \/>Add-VMNewHardDisk<\/em> <\/p>\n<p><em><b>Manipluating Network Interface Cards<\/b><br \/>Get-VMNic , List-VMNic , Choose-VMNIC, Add-VMNIC, Remove-VMNIC , Set-VMNICAddress , Set-VMNICConnection , Get-VMNicport , <br \/>Get-VMnicSwitch, Choose-VMSwitch, New-VMSwitchPort, Get-VMByMACaddress, Choose-VMExternalEthernet,<br \/>New-VMExternalSwitch, New-VMInternalSwitch,New-VmPrivateSwitch<\/em> <\/p>\n<p><em><b>Working with VHD files<\/b><br \/>Get-VHDDefaultPath, Get-VHDInfo, New-VHD, Compact-VHD, Test-VHD,Convert-VHD,Merge-VHD,Mount-VHD, Unmount-VHD\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just read on Hypervoria that the PowerShell library on Codeplex was updated.\u00a0 Everything in Hyper-V can be managed used PowerShell.\u00a0 Everything VMM does is translated into Powershell (and the scripts can be saved to the library for later use or copied\/pasted). \u201cAt present there are 80 functions in the library, some of these are &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=9381\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Updated Hyper-V PowerShell Library&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-9381","post","type-post","status-publish","format-standard","hentry","category-hyper-v"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9381"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9381\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}