This message was deleted.
# _general
s
This message was deleted.
m
In theory it should, but doesn't do anything in my lab ๐Ÿ˜ž I think it's a bug
d
damn, thanks for the quick reply.
then.... as I also couldn't find a GPO for this, anyone out there got a script that simply deletes all these userbased entries?
j
Think I might
No sorry, I just had a script for the HKLM entries that refer to firewall rules
d
That should cover them isnโ€™t it? Itโ€™s hklm stuff and contains domain\username
j
Oh right yeah in that case might work ๐Ÿ™‚
d
So script > in RES AppSense WEM DEM Liquidware PU, elevated at logoff should work for 2004
๐Ÿ‘ 1
wouldn't this already cover it (getting rid of all those rules where the owner is domain\someuser)?
get-NetFirewallRule | where-object {$_.owner -ne "any" -and $_.owner -ne $null} | remove-Netfirewallrule
j
I recall we had some issues just using PS direct, which is why we removed the Registry values instead. It may be that those issues are gone now though - I can only suggest "suck it and see"
๐Ÿ‘ 1
d
for my assignment is's good enough I guess, just added SYSTEM to the -ne list
get-NetFirewallRule | where-object {$_.owner -ne "any" -and $_.owner -ne "NT AUTHORITY\SYSTEM"-and $_.owner -ne "NT AUTHORITY\USER MODE Drivers" -and $_.owner -ne $null} | remove-Netfirewallrule