We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bee7ca commit 261fdafCopy full SHA for 261fdaf
src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisableFileSharing.ps1
@@ -20,10 +20,6 @@ sc.exe config NetBT start=disabled | Out-Null
20
21
# Set network profile to 'Public Network'
22
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Public
23
-$profiles = Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles" -Recurse | Where-Object { $_.GetValue("Category") -ne $null }
24
-foreach ($profile in $profiles) {
25
- Set-ItemProperty -Path $profile.PSPath -Name "Category" -Value 0 | Out-Null
26
-}
27
28
# Disable network discovery firewall rules
29
Get-NetFirewallRule | Where-Object {
0 commit comments