{"id":8362,"date":"2022-01-20T22:06:01","date_gmt":"2022-01-20T21:06:01","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=8362"},"modified":"2022-01-24T09:30:19","modified_gmt":"2022-01-24T08:30:19","slug":"windows-get-set-or-change-the-network-access-type-or-network-category","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-get-set-or-change-the-network-access-type-or-network-category\/","title":{"rendered":"Windows: Get, set or change the network access type or network category"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_8362 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_8362')){$('.twoclick_social_bookmarks_post_8362').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Get%2C%20set%20or%20change%20the%20network%20access%20type%20or%20network%20category\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20get%20and%20the%20network%20access%20type%20and%20the%20network%20category%20use%20the%20powershell%20commandlets%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-get-set-or-change-the-network-access-type-or-network-category\\\/\",\"post_id\":8362,\"post_title_referrer_track\":\"Windows%3A+Get%2C+set+or+change+the+network+access+type+or+network+category\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to get and the network access type and the network category use the powershell commandlets<!--more--> Get-NetConnectionProfile and Set-NetConnectionProfile.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Get-NetConnectionProfile\r\nName             : Network\r\nInterfaceAlias   : Ethernet0\r\nInterfaceIndex   : 6\r\nNetworkCategory  : Public\r\nIPv4Connectivity : LocalNetwork\r\nIPv6Connectivity : NoTraffic\r\n<\/pre>\n<p>And set the interface from public to private<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Set-NetConnectionProfile -Name Network -NetworkCategory Private\r\nPS D:\\&gt; Get-NetConnectionProfile\r\nName             : Network\r\nInterfaceAlias   : Ethernet0\r\nInterfaceIndex   : 6\r\nNetworkCategory  : Private\r\nIPv4Connectivity : LocalNetwork\r\nIPv6Connectivity : NoTraffic\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to get and the network access type and the network category use the powershell commandlets<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[1784,122,126,73,213,133,1176,1175,20],"class_list":["post-8362","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","category-windowsscripts","tag-access-type","tag-change","tag-domain","tag-get","tag-network","tag-powershell","tag-private","tag-public","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=8362"}],"version-history":[{"count":1,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8362\/revisions"}],"predecessor-version":[{"id":8363,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8362\/revisions\/8363"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=8362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=8362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=8362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}