Page 1 of 1

DOS command

Published: January 6, 2021 - 4:26 PM
by Yochi17
Hello,

I'm stuck creating a package and I hope the community can help me.

I have a command:
`netsh advfirewall firewall set rule group="Remote Assistance" new enable=yes`.

Its purpose is to allow remote assistance across all domains in the Windows Firewall.

Unfortunately, I can't deploy it to my network using a .bat file.

Do you have any ideas?
Thanks everyone.

The network is mostly Windows 10
with a wapt agent 1.8.2.7321 on the workstations.
I don't know what the database is running on.

Re: DOS Command

Published: January 7, 2021 - 5:01 PM
by nliaudat
No need for a .bat file...

in WAPT, use the command `run('netsh advfirewall ....')` or with `run_not_fatal()`

(see the example

). PS: Add `"profile=domain"` to your `netsh` command to only allow connections from your domain.