Answer the question
In order to leave comments, you need to log in
How can one manage services and firewall in Windows 7 with Python?
Hello everyone, please tell me, I have a powershell script, it works correctly on Windows 10, but for some reason it gives errors on Windopws 7, here is the script
New-NetFirewallRule -DisplayName 'UTM_transport' -Profile @('Domain', 'Private', 'Public' ) -Direction Inbound -Action Allow -Protocol TCP -LocalPort @('8228')
Set-Service OpenVPNService -startuptype automatic -passthru
Set-Service Transport -startuptype automatic -passthru
Restart-Service -Name OpenVPNService
Restart-Service -Name Transport
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question