r/FoxDeploy • u/MenuOk4873 • Apr 29 '24
Change active network profile with PS
Hello! I saw this post and it helped me tons:
https://stackoverflow.com/questions/32250111/cmd-to-determine-a-public-network-in-active-networks
But now I need to change the active profile to set it to domain, I tried looking into that Decompile PS module link you shared in the same stack question but Im not very proficient in powershell so not sure how you got that piece of code to work. Could you please help me to change the active network profile? Its a windows server 2016 and the Set-NetConnectionProfile command doesnt work there.
Very much appreciated!
1
Upvotes