{"id":620,"date":"2015-04-17T06:57:30","date_gmt":"2015-04-17T04:57:30","guid":{"rendered":"https:\/\/www.em-soft.si\/myblog\/elvis\/?p=620"},"modified":"2015-05-08T08:37:14","modified_gmt":"2015-05-08T06:37:14","slug":"how-to-change-network-profile-with-powershell","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=620","title":{"rendered":"How to change network profile with PowerShell"},"content":{"rendered":"<p><span style=\"font-family: times new roman,times; font-size: 12pt;\">Many times, my customers tell me that their network don\u2019t not work well. They have problems with access to shares, they are not able to connect via RDP to some servers and so on.<\/span><br \/>\n<span style=\"font-family: times new roman,times; font-size: 12pt;\">The cause of this problem is in 90% of cases a wrong network profile. This can happen if you change router, network cards or other network equipment. A small distraction when you select the network type can have big consequences by blocking many services. All of these problems have the origin in default Windows settings, as the default network profile is Public. This setting is correct because it is the optimal solution when you connect to some untrusted networks (hotels, airports\u2026) and if we think that we travel a lot, this situation is more frequent that connecting to a new home network. <\/span><br \/>\n<span style=\"font-family: times new roman,times; font-size: 12pt;\">There are also many posts how to change network profile on the net. Some are better than others are, but I want to solve this problem using PowerShell. In this way it works on clients and servers, it can be done always in the same mode and you can change a profile whenever you want. It is just one command:<\/span><\/p>\n<p><span style=\"font-family: courier new,courier; font-size: 12pt;\">Get-NetConnectionProfile | Set-NetConnectionProfile \u2013NetworkCategory Private<\/span><\/p>\n<p><span style=\"font-family: times new roman,times; font-size: 12pt;\">Network categories you can use are <span style=\"font-family: courier new,courier;\">Private<\/span> or <span style=\"font-family: courier new,courier;\">Public<\/span>. You cannot set profile to Domain.<\/span><\/p>\n<p><span style=\"font-family: times new roman,times; font-size: 12pt;\">More on Set-NetConnectionProfile can be found <a title=\"Technet - Set-NetConnectionProfile\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/jj899565.aspx\" target=\"_blank\">here<\/a>.<\/span><a style=\"text-decoration:none\" href=\"\/index.php?s=viagra-oral-jelly-discount-price\">.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many times, my customers tell me that their network don\u2019t not work well. They have problems with access to shares, they are not able to connect via RDP to some servers and so on. The cause of this problem is in 90% of cases a wrong network profile. This can happen if you change router, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,13,15],"tags":[41,28,40],"class_list":["post-620","post","type-post","status-publish","format-standard","hentry","category-powershell","category-windows","category-windows-server","tag-powershell","tag-windows-8","tag-windows-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=620"}],"version-history":[{"count":1,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/620\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/620\/revisions\/621"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}