0

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

1 Answer 1

1

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()
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! I had to add the $wsussrvconfig.UseProxy property. After that it works. I will accept it as answer when you update the answer with the missing property.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.