{"id":75,"date":"2015-09-16T06:00:39","date_gmt":"2015-09-16T04:00:39","guid":{"rendered":"https:\/\/www.mosi.at\/ikt\/?p=75"},"modified":"2019-05-03T11:49:11","modified_gmt":"2019-05-03T09:49:11","slug":"hyper-v-virtuelle-maschinenid-auslesen","status":"publish","type":"post","link":"https:\/\/www.mosi.at\/ikt\/2015\/09\/16\/hyper-v-virtuelle-maschinenid-auslesen\/","title":{"rendered":"Hyper-V Virtuelle MaschinenID auslesen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Zum L\u00f6schen nicht ben\u00f6tigter virtueller Maschien wird die VMId ben\u00f6tigt. Diese kann mit Powershell ausgelesen werden. Die ermittelten virtuellen Maschinen werden nach Status und Namen sortiert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span style=\"color: #003366;\">Get-VM | Sort-Object state, VMName |select State, VMName, Status, UpTime, Generation, Path, VMId | ft -AutoSize<\/span><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\> Get-VM | Sort-Object state, VMName |select State, VMName, Status, UpTime, Generation, Path, VMId | ft -AutoSize\n\n  State VMName              Status           Uptime           Generation Path       VMId\n  ----- ------              ------           ------           ---------- ----       ----\nRunning SRV-BACKUP-02       Normaler Betrieb 18:09:00.5280000          2 V:\\Hyper-V e6e14adc-a655-4d30-99f4-942ffc880d66\nRunning SRV-BACKUP-t300     Normaler Betrieb 18:09:00.7000000          2 V:\\Hyper-V a08c6a99-f428-4c9f-b68d-b45af9de2106\nRunning SRV-FILESPENDER     Normaler Betrieb 18:08:44.5900000          2 V:\\Hyper-V 57aa5d06-f928-4a60-b303-d5cb8e25956f\nRunning SRV-ITS-MGMT01      Normaler Betrieb 18:08:48.9180000          1 V:\\Hyper-V d245f408-5c2b-420f-8f77-aa936b68ba9f\nRunning VPC-010010          Normaler Betrieb 18:08:50.5430000          1 V:\\Hyper-V 46f80550-eb2f-42c9-9e15-74fdf8897bc0\nRunning VPC-010010-WinXP    Normaler Betrieb 18:08:58.0590000          1 V:\\Hyper-V f605b6f2-d24b-4fbd-a5d1-79839ab6643e\nRunning VPC-Win10-Test      Normaler Betrieb 18:09:00.4180000          2 V:\\Hyper-V 4ed31193-b692-43ae-b2a3-cc32c33281ea\n    Off !SRV-debian-OMV     Normaler Betrieb 00:00:00                  1 V:\\Hyper-V 35551c61-939a-4184-be46-6f8ef75deda0\n    Off PC-User001-alt      Normaler Betrieb 00:00:00                  1 V:\\Hyper-V df97318f-5bca-4312-9346-2307513f7d74\n    Off PC-User001-alt-UEFI Normaler Betrieb 00:00:00                  2 V:\\Hyper-V e7199990-898d-423b-8383-7e3057ccb861\n    Off PC-Win7x32          Normaler Betrieb 00:00:00                  1 V:\\Hyper-V 2208f480-d230-4bf4-a45c-c278f1abce87\n    Off SRV-OMV             Normaler Betrieb 00:00:00                  1 V:\\Hyper-V 53e78360-7035-4497-be98-02d6ea7cf63d\n    Off SRV-tm2k            Normaler Betrieb 00:00:00                  1 V:\\Hyper-V 749822a5-f2e2-4fc1-a485-cd0104e6476c\n    Off VPC-VER-01-Win7x32  Normaler Betrieb 00:00:00                  1 V:\\Hyper-V 1f830b7e-9e6e-47c1-ae81-d1e65a1e12b2\n    Off VPC-VER-02-Win7x32  Normaler Betrieb 00:00:00                  1 V:\\Hyper-V a8be3fdc-706e-4167-89d8-9b975b864249<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Zum L\u00f6schen nicht ben\u00f6tigter virtueller Maschien wird die VMId ben\u00f6tigt. Diese kann mit Powershell ausgelesen werden. Die ermittelten virtuellen Maschinen werden nach Status und Namen sortiert. Get-VM | Sort-Object state, VMName |select State, VMName, Status, UpTime, Generation, Path, VMId | ft -AutoSize<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_front_end_style_editor":"no","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","osp_disable_panel":"default","osh_disable_topbar_sticky":"default","osh_disable_header_sticky":"default","osh_sticky_header_style":"default","osh_sticky_header_effect":"","osh_custom_sticky_logo":0,"osh_custom_retina_sticky_logo":0,"osh_custom_sticky_logo_height":0,"osh_background_color":"","osh_links_color":"","osh_links_hover_color":"","osh_links_active_color":"","osh_links_bg_color":"","osh_links_hover_bg_color":"","osh_links_active_bg_color":"","osh_menu_social_links_color":"","osh_menu_social_hover_links_color":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[9,11,20,18,10,16],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-__news","category-betriebssysteme","category-power-shell","category-scripts","category-software","category-windows","entry"],"_links":{"self":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":0,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}