Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I acquire the Windows system proxy using Powershell?

I know about this

$webproxy = (get-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').ProxyServer

Is there something more generic, or is that the best?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Don't know of anything better than that I'm afraid.

It goes straight to the setting and access to the registry is pretty efficient.

share|improve this answer
    
You're probably right. –  CMCDragonkai Jun 12 at 7:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.