{"id":72,"date":"2015-09-17T06:00:02","date_gmt":"2015-09-17T04:00:02","guid":{"rendered":"https:\/\/www.mosi.at\/ikt\/?p=72"},"modified":"2019-05-03T11:55:22","modified_gmt":"2019-05-03T09:55:22","slug":"physischen-datentraegerzustand-auslesen","status":"publish","type":"post","link":"https:\/\/www.mosi.at\/ikt\/2015\/09\/17\/physischen-datentraegerzustand-auslesen\/","title":{"rendered":"Physischen Datentr\u00e4gerzustand auslesen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Auslesen der pysischen Datenr\u00e4ger mit Powershell.<br>\nAngezeigt werden unter anderem das Modell, die Seriennummer, der Medientyp, die DeviceID und der Gesundheitsstatus.<br>\nDie Ausgabe wird nach der DeviceID sortiert. Die Serienummer wird von Leerzeichen befreit. Die Gr\u00f6\u00dfe wird in Gigabyte mit 2 Nachkommastellen formatiert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span style=\"color: #003366;\">Get-PhysicalDisk | Sort-Object DeviceID | FT -AutoSize FriendlyName, CannotPoolReason, CanPool, Bustype, DeviceId, MediaType, Model, @{Name=&#8220;Size in GB&#8220;; Expression={[math]::round($_.size\/1GB, 2)}}, @{Name=&#8220;SerialNumber&#8220;; Expression={$_.SerialNumber.trim()}} , OperationalStatus, HealthStatus<\/span><\/strong><br> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>S C:\\> Get-PhysicalDisk | Sort-Object DeviceID | FT -AutoSize FriendlyName, CannotPoolReason, CanPool, Bustype, DeviceId, MediaType, Model, @{Name=\"Size in GB\";\nExpression={[math]::round($_.size\/1GB, 2)}}, @{Name=\"SerialNumber\"; Expression={$_.SerialNumber.trim()}} , OperationalStatus, HealthStatus\n\nFriendlyName              CannotPoolReason      CanPool BusType DeviceId MediaType Model                     Size in GB SerialNumber    OperationalStatus HealthS\n                                                                                                                                                          tatus\n------------              ----------------      ------- ------- -------- --------- -----                     ---------- ------------    ----------------- -------\nSamsung SSD 840 EVO 120GB Insufficient Capacity   False SATA    0        SSD       Samsung SSD 840 EVO 120GB     111,79 S1D5NSBAAAAAAA1 OK                Healthy\nTOSHIBA HDWQ140           In a Pool               False SATA    1        HDD       TOSHIBA HDWQ140              3725,25 Y7GUK0NAAAAAAA7 OK                Healthy\nWDC WD30EFRX-68EUZN0      In a Pool               False SATA    2        HDD       WDC WD30EFRX-68EUZN0         2793,75 WD-WCC4AAAAAAA9 OK                Healthy\nWDC WD30EFRX-68EUZN0      In a Pool               False SATA    3        HDD       WDC WD30EFRX-68EUZN0         2793,75 WD-WMC4AAAAAAA3 OK                Healthy\nWDC WD30EFRX-68EUZN0      In a Pool               False SATA    4        HDD       WDC WD30EFRX-68EUZN0         2793,75 WD-WMC4AAAAAAA4 OK                Healthy<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Auslesen der pysischen Datenr\u00e4ger mit Powershell. Angezeigt werden unter anderem das Modell, die Seriennummer, der Medientyp, die DeviceID und der Gesundheitsstatus. Die Ausgabe wird nach der DeviceID sortiert. Die Serienummer wird von Leerzeichen befreit. Die Gr\u00f6\u00dfe wird in Gigabyte mit 2 Nachkommastellen formatiert. Get-PhysicalDisk | Sort-Object DeviceID | FT -AutoSize FriendlyName, CannotPoolReason, CanPool, Bustype, DeviceId, [&hellip;]<\/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,20,18,16],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-__news","category-power-shell","category-scripts","category-windows","entry"],"_links":{"self":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/72","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=72"}],"version-history":[{"count":0,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}