Solved

Get proxy settings of remote user

Posted on 2004-09-23
2
1,145 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
ID: 12138927
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

22 Experts available now in Live!

Get 1:1 Help Now