Skip to content

Commit

Permalink
Disable printer sharing (#12408)
Browse files Browse the repository at this point in the history
As the title suggests. We already disable all communication between CI
nodes through network rules, but we currently get a lot of noise from
GCP logging violations to those rules from Windows trying to feel its
way out for file share buddies.

CHANGELOG_BEGIN
CHANGELOG_END

As usualy, this branch will contain intermediate commits that may serve
as an audit log of sorts.
  • Loading branch information
garyverhaegen-da authored Jan 13, 2022
1 parent 33bc6fe commit 5716d99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infra/vsts_agent_windows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ locals {
name = "ci-w1",
size = 0,
assignment = "default",
disk_size = 200,
disk_size = 400,
},
{
name = "ci-w2"
size = 6,
assignment = "default",
disk_size = 400
disk_size = 400,
},
]
}
Expand Down Expand Up @@ -96,6 +96,9 @@ Set-MpPreference -DisableRealtimeMonitoring $true
Stop-Service -Name Spooler -Force
Set-Service -Name Spooler -StartupType Disabled
# Disable File & Printer sharing
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Any
# Enable long paths
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -Type DWord -Value 1
Expand Down

0 comments on commit 5716d99

Please sign in to comment.