Hi,
It should work. For more information, please refer to the following article:
How to use the "netsh advfirewall firewall" context instead of the "netsh firewall" context to control Windows Firewall behavior in Windows Server 2008 and in Windows Vista
How to use the "netsh advfirewall firewall" context instead of the "netsh firewall" context to control Windows Firewall behavior in Windows Server 2008 and in Windows Vista
Netsh AdvFirewall Firewall Commands
Netsh AdvFirewall Firewall Commands
Thanks.