Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell - force firewall profile to domain authenticated.

$
0
0

Hi

The windows firewall is not realizing its on a domain network and it sets the profile incorrectly to public. e.g. vpn connections etc.

I can create a script to determine when its domain connected and i'll probably need to keep this script running in the background.

Question is when the pc is actively domain joined how do I force the firewall to the domain profile ?

Ive tried

Set-NetConnectionProfile-NetworkCategoryDomainAuthenticated

I get an error stating that this cant be done as this is automatic only !

Here i'm not looking for windows/powershell's advice as its made the wrong call.

I'm asking it to do as instructed & force the network profile to Domain authenticated.

Is this possible ?

Thanks



confuseis


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>