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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Firewall Define Program Exceptions

Status
Not open for further replies.

Empmark

IS-IT--Management
Oct 1, 2002
58
US
We are using Group Policy to centrally define windows firewall settings. An example of a line is

%programfiles%\FolderName1\FolderName2\File.exe:*:Enabled:Name
or
c:\Folder\file.exe:*:Enabled:Name

I've had no issues but I now have a program that has an executable in the User\Temp folder. I have no choice and have to use the program. My problem is how to pass the variable for the user's name in the path since it will be different for each person logged on. It works if I include the name in the path

C:\Documents and Settings\name\Local Settings\Temp

But if I try %username% it will not work. This may be a smiple one and I appreciate any thoughts. Thanks in advance for any help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top