Hi
I need some help with running this command with the PADT:
netsh advfirewall firewall add rule name=“X Y Z” dir=in action=allow program=“C:\program files\xyz\xyze.exe”
I have tried the following but it doesn’t seem to work. I get error window from PADT:
Execute-Process -FilePath “C:\Windows\System32\netsh.exe” -Arguments “advfirewall firewall add rule name=“X Y Z” dir=in action=allow program=“C:\program files\xyz\xyz.exe””
I think it has something to do with the -Arguments command not being in the right formatting, maybe I’m missing some “”
Can anyone who is a script expert help out ?