add extra config

This commit is contained in:
abrown38 committed 2025-04-28 12:05:36 +01:00
1 parent d44ffa9b26
commit db2f86ede2
1 file changed
+4
@@ -44,6 +44,8 @@ if (Test-Path -Path $WSUSDir) {
# Get WSUS Server Object
$wsus = Get-WSUSServer
$wsus.CreateComputerTargetGroup("Openstack VMs")
# Connect to WSUS server configuration
$wsusConfig = $wsus.GetConfiguration()
@@ -54,6 +56,8 @@ Set-WsusServerSynchronization -SyncFromMU
# Set Update Languages to English and save configuration settings
$wsusConfig.AllUpdateLanguagesEnabled = $false
$wsusConfig.SetEnabledUpdateLanguages("en")
$wsusConfig.TargetingMode = "Client"
$wsusConfig.SetEnabledUpdateLanguages("en")
$wsusConfig.Save()