mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:27: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
|
# Get WSUS Server Object
|
||||||
$wsus = Get-WSUSServer
|
$wsus = Get-WSUSServer
|
||||||
|
|
||||||
|
$wsus.CreateComputerTargetGroup("Openstack VMs")
|
||||||
|
|
||||||
# Connect to WSUS server configuration
|
# Connect to WSUS server configuration
|
||||||
$wsusConfig = $wsus.GetConfiguration()
|
$wsusConfig = $wsus.GetConfiguration()
|
||||||
@@ -54,6 +56,8 @@ Set-WsusServerSynchronization -SyncFromMU
|
|||||||
# Set Update Languages to English and save configuration settings
|
# Set Update Languages to English and save configuration settings
|
||||||
$wsusConfig.AllUpdateLanguagesEnabled = $false
|
$wsusConfig.AllUpdateLanguagesEnabled = $false
|
||||||
$wsusConfig.SetEnabledUpdateLanguages("en")
|
$wsusConfig.SetEnabledUpdateLanguages("en")
|
||||||
|
$wsusConfig.TargetingMode = "Client"
|
||||||
|
$wsusConfig.SetEnabledUpdateLanguages("en")
|
||||||
$wsusConfig.Save()
|
$wsusConfig.Save()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user