Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an environment variable in Group Policy

Status
Not open for further replies.

irbk

MIS
Oct 20, 2004
578
US
We are in the process of rolling out some new filtering software. The new filtering software requires a proxy to be set up. Long story short about the only way I've found that I think will get things to work is to copy a configuration script via a login scrip file, then use GPO to tell IE to use the configuration scrip that was just copied over. Thanks to Windows 7 and XP being so completely different about the only way that I can get the configuration script to copy is to send it to "%userprofile%". This works great. I can get the file to copy to both XP boxes and windows 7 boxes. It will be in the "C:\Documents and Settings\<username>" for XP clients and in "C:\users\<username>" for windows 7 clients. Now comes the tricky part. I want to configure a GPO that will set the "Use automatic configuration script" (found in "internet options" - "Connections" - "Lan Settings"). The location I want it to use is "file://%userconfiguration%\wpad.dat". Unfortunately, Group policy seems to take that configuration quite literally and rather than automatically populating "file://C:\Documents and Settings\<username>\wpad.dat" for XP clients, it actually says "file://%userconfiguration%\wpad.dat" which doesn't work. SO, how can I create a GPO that will work for both XP and Windows 7 clients that will point them to their respective correct locations?
Thanks in advance
 
It is best to put the automatic configurations script on a shared network location for GPO to work properly. IE doesnt really care if it is Win7 or WinXP.

_______________________________________
Great knowledge can be obtained by mastering the Google algorithm.
 
I actually ended up being able to put the proxy script on our web hosts site so that solved my problem. Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top