Files
tacticalrmm/scripts_wip/Win_Network_AutoDiscovery_Disable.ps1
2021-06-24 17:20:49 -04:00

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