mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 09:37:21 +00:00
add extra config
This commit is contained in:
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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user