This commit is contained in:
USER
2023-02-27 19:35:53 +00:00
parent 14e187ed76
commit 586c89e6cf
3 changed files with 0 additions and 0 deletions

5
PS/DisableNet.ps1 Normal file
View File

@ -0,0 +1,5 @@
#Get-NetFirewallRule -DisplayGroup 'Network Discovery'
Set-NetFirewallRule -DisplayGroup 'Network Discovery' -Profile 'Private' -Enabled false
Set-NetFirewallRule -DisplayGroup 'File And Printer Sharing' -Profile 'Private' -Enabled false
#select Name,DisplayName,Enabled,Profile|ft -a

9
PS/EnableNet.ps1 Normal file
View File

@ -0,0 +1,9 @@
#Get-NetFirewallRule -DisplayGroup 'Network Discovery'
Set-NetFirewallRule -DisplayGroup 'Network Discovery' -Profile 'Private' -Enabled true
Set-NetFirewallRule -DisplayGroup 'File And Printer Sharing' -Profile 'Private' -Enabled true
Get-NetConnectionProfile -InterfaceAlias "Ethernet" | Set-NetConnectionProfile -NetworkCategory Private
Get-NetConnectionProfile -InterfaceAlias "WiFi" | Set-NetConnectionProfile -NetworkCategory Private
#Get-NetConnectionProfile -InterfaceAlias "Ethernet1" | Set-NetConnectionProfile -NetworkCategory Private
#select Name,DisplayName,Enabled,Profile|ft -a

0
PS/aa.ps1 Normal file
View File