[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

GPO Computer Policy, firewall policy for user application

Hello

We have an application that executes in the context of a user, i.e. the path on win7 to the application is C:\Users\<user.name>\AppData\Local\<app.folder>\<app>.exe
Issue is that on first execution the application <app>.exe needs to make an inbound firewall policy, this policy references the specific username as per path above.

We would like to set this firewall policy in GPO computer settings using %USERNAME%, i.e. C:\Users\%USERNAME%\AppData\Local\<app.folder>\<app>.exe , this path is not recognised in the context of a user on the client machine. GPO setting is applied but executing the user application creates the default policy with path C:\Users\<user.name>\AppData\Local\<app.folder>\<app>.exe . now we have a policy with local policy <username> and GPO policy with %USERNAME%.

Is there a way to do this via GPO with non-specific username variable?
0
hairylots
Asked:
hairylots
1 Solution
 
MaheshArchitectCommented:
%localappdata%\app\app.exe

The above variable represents
C:\Users\%username%\AppData\Local

You need to append app folder

Mahesh
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now