tacticalrmm/scripts_wip/Win_Network_AutoDiscovery_D...

4 lines
225 B
PowerShell
Raw Normal View History

2021-06-24 21:20:49 +00:00
# SET NETWORK DISCOVERY TO FALSE ON ALL CONNECTIONS
Get-NetFirewallRule -DisplayGroup 'Network Discovery'|Set-NetFirewallRule -Profile 'Private, Domain' -Enabled false -PassThru|select Name,DisplayName,Enabled,Profile|ft -a