Solved

Get proxy settings of remote user

Posted on 2004-09-23
2
1,144 Views
Last Modified: 2010-08-05
Anyone know how to get the proxy settings of the current user of a remote PC ?

- the user does not have access to LAN Settings (GPO greys it out) for users

I have full permission in AD & on the PC's

Someone suggested getting it from the remote registry, but haven't been able to find it, and you need the users SID.
0
Comment
Question by:Gitcho
2 Comments
 
LVL 7

Accepted Solution

by:
sj_hicks earned 500 total points
Comment Utility
You can use WMI to retrieve data from remote machines.  The following example is a WSH VBScript to retrieve and display the ProxyServer reg value from MyComputer:

const HKEY_CURRENT_USER = &H80000001
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "MyComputer"
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
        strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
strValueName = "ProxyServer"
oReg.GetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue
msgbox "Proxy server: " & strValue

This was adapted from the TechNet script center script repository (http://www.microsoft.com/technet/community/scriptcenter/registry/default.mspx).
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now