From 261fdaf6ef566ef70f21c080e2313043c5dc27d9 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:52:44 +0100 Subject: [PATCH] fix(disable file sharing): redundant profile set --- .../Scripts/ScriptWrappers/DisableFileSharing.ps1 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisableFileSharing.ps1 b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisableFileSharing.ps1 index 2ee41fd3ea..25a191fd52 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisableFileSharing.ps1 +++ b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisableFileSharing.ps1 @@ -20,10 +20,6 @@ sc.exe config NetBT start=disabled | Out-Null # Set network profile to 'Public Network' Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Public -$profiles = Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles" -Recurse | Where-Object { $_.GetValue("Category") -ne $null } -foreach ($profile in $profiles) { - Set-ItemProperty -Path $profile.PSPath -Name "Category" -Value 0 | Out-Null -} # Disable network discovery firewall rules Get-NetFirewallRule | Where-Object {