Solved

Get proxy settings of remote user

Posted on 2004-09-23
2
1,147 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Acer laptop Win XP Wifi to Pace router needs reconnecting 8 148
Remote Exchange powershell-ing 25 115
cloning computer 13 94
Event ID 1054 Userenv 2 32
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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