guiwhatsthat
guiwhatsthat

Reputation: 2434

Set WSUS Proxy with PowerShell

I'm not able to set the WSUS proxy with powershell.

I have tried diffrent solutions like:

.\WsusUtil.exe configuresslproxy "IP" "Port" -enable

.\upddwnldcfg.exe /s:IP:Port /allusers

netsh winhttp import proxy source=ie #the IE settings are already configured

None of this commnds work.

I also tired wsusutility but I think the configuresslproxy is the wrong command. I don't use ssl.

this screenshot shows the GUI setting which I want to overwrite: enter image description here

Upvotes: 0

Views: 2294

Answers (1)

vte
vte

Reputation: 71

I don't have test environment right now to check will it work but you can try:

$proxyname = "168.192.0.0"
$proxyport = 8080

$wsussrv = get-wsusserver
$wsussrvconfig = $wsussrv.GetConfiguration()
$wsussrvconfig.ProxyName = $proxyname
$wsussrvconfig.ProxyServerPort = $proxyport
$wsussrvconfig.UseProxy = $true
$wsussrvconfig.Save()

Upvotes: 1

Related Questions