{"id":1247,"date":"2022-07-15T21:25:44","date_gmt":"2022-07-15T18:25:44","guid":{"rendered":"https:\/\/wiki.volu-t.ru\/?p=1247"},"modified":"2022-07-19T09:40:56","modified_gmt":"2022-07-19T06:40:56","slug":"change-network-profile-on-windows-server-2016","status":"publish","type":"post","link":"https:\/\/wiki.m-network.ru\/?p=1247","title":{"rendered":"Change network profile on Windows Server\u00a02016"},"content":{"rendered":"\n<p>Network pofile change can be done using powershell<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><\/td><td><code>PS C:\\&gt; Get-NetConnectionProfile<\/code>&nbsp;&nbsp;<br><code>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NetworkInterface<\/code><br><code>Alias&nbsp;&nbsp; : Ethernet0 2Interface<\/code><br><code>Index&nbsp;&nbsp; : 5NetworkCategory&nbsp; : Private<\/code><br><code>IPv4Connectivity : Internet<\/code><br><code>IPv6Connectivity : NoTraffic<\/code><br><code>Set-NetConnectionProfile -InterfaceIndex 5 -NetworkCategory DomainAuthenticated<\/code>&nbsp;<br><code>Set-NetConnectionProfile : Unable to set NetworkCategory to 'DomainAuthenticated'.&nbsp; This NetworkCategory type will beset automatically when authenticated to a domain network.<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In my case Restarting Network Location Awareness service helped and profile reverted back to DomainAuthenticated<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td><code># set firewall to disabled <\/code><br><code>Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False<\/code><br><code># restart NLA service <\/code><br><code>Get-Service -Name NLASvc&nbsp; | Restart-Service -Force <\/code><br><code>PS C:\\&gt; Get-NetConnectionProfile<\/code>&nbsp;&nbsp;<br><code>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : mydomain.localInterface<\/code><br><code>Alias&nbsp;&nbsp; : Ethernet0 2<\/code><br><code>InterfaceIndex&nbsp;&nbsp; : 5<\/code><br><code>NetworkCategory&nbsp; : DomainAuthenticated<\/code><br><code>IPv4Connectivity : Internet<\/code><br><code>IPv6Connectivity : NoTraffic<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u0422\u0430\u043a \u0436\u0435 \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u0447\u0430\u0441\u0442\u043d\u0443\u044e \u0441\u0435\u0442\u044c. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445. \u0421\u0432\u044f\u0437\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f:<\/p>\n\n\n\n<p><code>Get-Service -Name NLASvc\u00a0 | Restart-Service -Force <\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Network pofile change can be done using powershell PS C:\\&gt; Get-NetConnectionProfile&nbsp;&nbsp;Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NetworkInterfaceAlias&nbsp;&nbsp; : Ethernet0 2InterfaceIndex&nbsp;&nbsp; : 5NetworkCategory&nbsp; : PrivateIPv4Connectivity : InternetIPv6Connectivity : NoTrafficSet-NetConnectionProfile -InterfaceIndex 5 -NetworkCategory DomainAuthenticated&nbsp;Set-NetConnectionProfile : Unable to set NetworkCategory to &#8216;DomainAuthenticated&#8217;.&nbsp; This NetworkCategory type will beset automatically when authenticated to a domain network. In my case Restarting Network Location Awareness service ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.m-network.ru\/?p=1247\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,139,169,142],"tags":[],"_links":{"self":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/1247"}],"collection":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1247"}],"version-history":[{"count":5,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions"}],"predecessor-version":[{"id":1255,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions\/1255"}],"wp:attachment":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}