{"id":2539,"date":"2021-07-06T21:00:00","date_gmt":"2021-07-06T19:00:00","guid":{"rendered":"https:\/\/www.mosi.at\/ikt\/?p=2539"},"modified":"2021-07-07T01:29:35","modified_gmt":"2021-07-06T23:29:35","slug":"mit-powershell-hotfix-auslesen","status":"publish","type":"post","link":"https:\/\/www.mosi.at\/ikt\/2021\/07\/06\/mit-powershell-hotfix-auslesen\/","title":{"rendered":"Mit Powershell: Hotfix auslesen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Unter Windows 7, 8.0, 8.1, 10 k\u00f6nnen mit Powershell eingespielte Service Pack, Update, Security Update und Hotfix mit Powershell ermittelt werden. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>get-hotfix | Sort-Object HotfixID | Where-Object {$_.HotfixID -like \"*\"} | FT HotFixID, Description -AutoSize<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Das Ergebnis kann beispielsweise wie folgt f\u00fcr Windows 7 aussehen:<br>SP1, PowerShell 5.1 und Abh\u00e4ngigkeiten.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Windows PowerShell\nCopyright (C) 2016 Microsoft Corporation. All rights reserved.\n\nPS C:\\admin&gt; get-hotfix | Sort-Object HotfixID | Where-Object {$_.HotfixID -like \"*\"} | FT HotFixID, Description -AutoSize\n\nHotFixID  Description\n--------  -----------\nKB2574819 Update\nKB2809215 Update\nKB2872035 Hotfix\nKB3033929 Security Update\nKB3063858 Security Update\nKB3138612 Update\nKB3191566 Update\nKB976902  Update\nKB976932  Service Pack<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/07\/get-hotfix\/Get-Hotfix-short.png\" alt=\"\" class=\"wp-image-2556\"\/><figcaption>PowerShell Get-Hotfix \u00a9 MoSi<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Oder mit Datum nach Datum sortiert<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>get-hotfix | Sort-Object InstalledOn | Where-Object {$_.HotfixID -like \"*\"} | FT HotFixID, Description, @{Name=\"InstalledOn Date\"; Expression={$_.InstalledOn.ToString(\"yyyy.MM.dd\")}} -AutoSize<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\admin&gt; get-hotfix | Sort-Object InstalledOn | Where-Object {$_.HotfixID -like \"*\"} | FT HotFixID, Description, @{Name=\"InstalledOn Date\"; Expression={$_.InstalledOn.ToString(\"yyyy.MM.dd\")}} -AutoSize\n\nHotFixID  Description     InstalledOn Date\n--------  -----------     ----------------\nKB2872035 Hotfix          2020.07.04\nKB976932  Service Pack    2020.07.04\nKB976902  Update          2020.07.04\nKB3033929 Security Update 2020.07.04\nKB2809215 Update          2020.07.04\nKB3138612 Update          2020.07.05\nKB2574819 Update          2020.07.05\nKB3191566 Update          2020.07.06\nKB3063858 Security Update 2020.07.06<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"997\" height=\"294\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/07\/get-hotfix\/Get-Hotfix-short-date.png\" alt=\"\" class=\"wp-image-2565\" srcset=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/07\/get-hotfix\/Get-Hotfix-short-date.png 997w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/07\/get-hotfix\/Get-Hotfix-short-date-300x88.png 300w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/07\/get-hotfix\/Get-Hotfix-short-date-768x226.png 768w\" sizes=\"(max-width: 997px) 100vw, 997px\" \/><figcaption>PowerShell Get-Hotfix \u00a9 MoSi<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Oder nur Updates und Security Updates<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>get-hotfix | Sort-Object InstalledOn | Where-Object {$_.HotfixID -like \"*\" -and $_.Description -like \"*Update\"} | FT HotFixID, Description, @{Name=\"InstalledOn Date\"; Expression={$_.InstalledOn.ToString(\"yyyy.MM.dd\")}} -AutoSize<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\admin&gt; get-hotfix | Sort-Object InstalledOn | Where-Object {$_.HotfixID -like \"*\" -and $_.Description -like\n\"*Update\"} | FT HotFixID, Description, @{Name=\"InstalledOn Date\"; Expression={$_.InstalledOn.ToString(\"yyyy.MM.dd\")}} -A\nutoSize\n\nHotFixID  Description     InstalledOn Date\n--------  -----------     ----------------\nKB976902  Update          2020.07.04\nKB3033929 Security Update 2020.07.04\nKB2809215 Update          2020.07.04\nKB3138612 Update          2020.07.05\nKB2574819 Update          2020.07.05\nKB3191566 Update          2020.07.06\nKB3063858 Security Update 2020.07.06<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.microsoft.com\/de-DE\/download\/details.aspx?id=35388\" target=\"_blank\">KB2574819<\/a> <a rel=\"noreferrer noopener\" href=\"https:\/\/www.catalog.update.microsoft.com\/Search.aspx?q=KB2574819\" target=\"_blank\">MicrosoftUpdateCatalog<\/a> <a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/de-de\/topic\/ein-update-ist-verf%C3%BCgbar-das-unterst%C3%BCtzung-f%C3%BCr-dtls-in-windows-7-sp1-und-windows-server-2008-r2-sp1-hinzuf%C3%BCgt-2c0e25cd-e8ff-968b-4aff-3729a3a5f7db\" target=\"_blank\">DTLS Unterst\u00fctzung f\u00fcr Windows 7 SP1<\/a><\/li><li><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Unter Windows 7, 8.0, 8.1, 10 k\u00f6nnen mit Powershell eingespielte Service Pack, Update, Security Update und Hotfix mit Powershell ermittelt werden. Das Ergebnis kann beispielsweise wie folgt f\u00fcr Windows 7 aussehen:SP1, PowerShell 5.1 und Abh\u00e4ngigkeiten. Oder mit Datum nach Datum sortiert Oder nur Updates und Security Updates KB2574819 MicrosoftUpdateCatalog DTLS Unterst\u00fctzung f\u00fcr Windows 7 SP1<\/p>\n","protected":false},"author":2,"featured_media":2565,"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,24,96,38],"tags":[],"class_list":["post-2539","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-__news","category-betriebssysteme","category-power-shell","category-scripts","category-software","category-windows","category-windows-10","category-windows-10-home","category-windows-7","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/2539","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=2539"}],"version-history":[{"count":16,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/2539\/revisions"}],"predecessor-version":[{"id":2573,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/2539\/revisions\/2573"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media\/2565"}],"wp:attachment":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media?parent=2539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/categories?post=2539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/tags?post=2539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}