tacticalrmm/scripts_wip/Win_Network_AutoDiscovery_D...

4 lines
225 B
PowerShell

# 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