On the Host machine ( Windows 10 ) I Get downloaded all the command lets. But on Vmware workstation based VM ( Windows 7) I am not able to delete the persistent rules since the Ge-Command -- fails to download. Network connection is not an issue. PS is with Administrative power. Using RegEdit I clean the BFE keys under CurrentControlSet, when I reboot, reg entries are gone. But netsh wfp show filters creates the xml file with all the filters I added.
I add rules using WFP Api, and it does not show in the Defender Firewall App, so I can not delete from there.
Is there a way to clean all the rules from the VM ( Windows 7). So I can continue testing without old rules being shown ??
Thanks,
Prokash
PS C:\Users\Administrator> Get-Command -Module NetSecurity
PS C:\Users\Administrator> Remove-NetFirewallRule
Remove-NetFirewallRule : The term 'Remove-NetFirewallRule' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
- Remove-NetFirewallRule
- ~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Remove-NetFirewallRule:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException