-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSet-HYDWSUS.ps1
More file actions
24 lines (17 loc) · 861 Bytes
/
Set-HYDWSUS.ps1
File metadata and controls
24 lines (17 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<#
************************************************************************************************************************
Created: 2015-03-01
Version: 1.1
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the author or DeploymentArtist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deploymentresearch.com
************************************************************************************************************************
#>
$SQLServerName = "cm01.corp.viamonstra.com"
$WSUSContentFolder = "E:\WSUS"
$WSUSUtil = "$($Env:ProgramFiles)\Update Services\Tools\WsusUtil.exe"
$WSUSUtilArgs = "POSTINSTALL SQL_INSTANCE_NAME=$SQLServerName CONTENT_DIR=$WSUSContentFolder usecustomwebsite true"
Start-Process -FilePath $WSUSUtil -ArgumentList $WSUSUtilArgs -NoNewWindow -Wait