{"id":2440,"date":"2021-05-11T22:00:00","date_gmt":"2021-05-11T20:00:00","guid":{"rendered":"https:\/\/www.mosi.at\/ikt\/?p=2440"},"modified":"2021-05-15T00:34:51","modified_gmt":"2021-05-14T22:34:51","slug":"mit-powershell-pnp-geraete-deaktivieren-und-aktivieren","status":"publish","type":"post","link":"https:\/\/www.mosi.at\/ikt\/2021\/05\/11\/mit-powershell-pnp-geraete-deaktivieren-und-aktivieren\/","title":{"rendered":"Mit Powershell: PnP-Ger\u00e4te deaktivieren und aktivieren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Unter Windows k\u00f6nnen die Plug and Play (PnP) Ger\u00e4te mit der PowerShell deaktiviert und aktiviert werden: <br>Quellen:<br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/pnpdevice\/get-pnpdevice?view=windowsserver2019-ps\" target=\"_blank\">Microsoft Docs Get-PnPDevice<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/pnpdevice\/disable-pnpdevice?view=windowsserver2019-ps\" target=\"_blank\">Microsoft Docs Disable-PnPDevice<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/pnpdevice\/enable-pnpdevice?view=windowsserver2019-ps\" target=\"_blank\">Microsoft Docs Enable-PnPDevice<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Beispiel mit der Medion Kammera MD 88366 Ful HD Webcam<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-PnpDevice -PresentOnly -FriendlyName \"*88366*\"  | FT -AutoSize<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1030\" height=\"407\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-auslesen.png\" alt=\"\" class=\"wp-image-2432\" srcset=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-auslesen.png 1030w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-auslesen-300x119.png 300w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-auslesen-768x303.png 768w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><figcaption>PowerShell Medion Kammera auslesen \u00a9 MoSi<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Im Ger\u00e4temanger sieht es so aus:<br>devmgmt.msc<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"350\" height=\"655\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-geraete.png\" alt=\"\" class=\"wp-image-2435\" srcset=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-geraete.png 350w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-geraete-160x300.png 160w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; DevID der Medion Ger\u00e4te &#8222;MD 88366&#8220; ermitteln<br>&#8211; Deaktivieren der Kammera<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$DevID = (Get-PnpDevice -PresentOnly -FriendlyName \"*88366*\" -Class \"Camera\").InstanceId<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Disable-PnpDevice -InstanceID $DevID -Confirm:$false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Der Status &#8222;Error&#8220; bedeutet das Ger\u00e4t ist deaktiviert und &#8222;OK&#8220; hei\u00dft aktiviert.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1031\" height=\"408\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-aus-und-einschalten.png\" alt=\"\" class=\"wp-image-2434\" srcset=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-aus-und-einschalten.png 1031w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-aus-und-einschalten-300x119.png 300w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Mit-PowerShell-PnP-Geraete-aus-und-einschalten-768x304.png 768w\" sizes=\"(max-width: 1031px) 100vw, 1031px\" \/><figcaption>PowerShell Kammera deaktivieren \/ aktivieren \u00a9 MoSi<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"655\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-deaktiviert.png\" alt=\"\" class=\"wp-image-2436\" srcset=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-deaktiviert.png 350w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-deaktiviert-160x300.png 160w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><figcaption>Ger\u00e4temanager Kammera deaktiviert \u00a9 MoSi<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; DevID der Medion Ger\u00e4te &#8222;MD 88366&#8220; ermitteln<br>&#8211; Aktiveren der Kammera<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$DevID = (Get-PnpDevice -PresentOnly -FriendlyName \"*88366*\" -Class \"Camera\").InstanceId<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Enable-PnpDevice -InstanceID $DevID -Confirm:$false<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"655\" src=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-aktiviert.png\" alt=\"\" class=\"wp-image-2437\" srcset=\"https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-aktiviert.png 350w, https:\/\/www.mosi.at\/ikt\/wp-content\/uploads\/2021\/05\/ps-pnp-geraete\/Geraetemanager_Cam-aktiviert-160x300.png 160w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Kontrolle des Status der Medion Kammera &#8222;MD 88366&#8220;. Er sollte auf &#8222;OK&#8220; lauten.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-PnpDevice -PresentOnly -FriendlyName \"*88366*\" -Class \"Camera\" | FT -AutoSize<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Unter Windows k\u00f6nnen die Plug and Play (PnP) Ger\u00e4te mit der PowerShell deaktiviert und aktiviert werden: Quellen:Microsoft Docs Get-PnPDeviceMicrosoft Docs Disable-PnPDeviceMicrosoft Docs Enable-PnPDevice Beispiel mit der Medion Kammera MD 88366 Ful HD Webcam Im Ger\u00e4temanger sieht es so aus:devmgmt.msc &#8211; DevID der Medion Ger\u00e4te &#8222;MD 88366&#8220; ermitteln&#8211; Deaktivieren der Kammera Der Status &#8222;Error&#8220; bedeutet das [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2434,"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-2440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-__news","category-betriebssysteme","category-power-shell","category-scripts","category-software","category-windows","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/2440","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=2440"}],"version-history":[{"count":7,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/2440\/revisions"}],"predecessor-version":[{"id":2452,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/2440\/revisions\/2452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media\/2434"}],"wp:attachment":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media?parent=2440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/categories?post=2440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/tags?post=2440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}