Jump to content
Welcome to our new Citrix community!
  • 0

WEM - mapping network drive with %variable%

Milan Jesberger1709160131


hi, i'm trying to convert gpp's into WEM , our corporate drive mapping utilizes %variable% in location which gets it's value from LDAP query using extensionAttribute2 value. if user extensionAttribute2=fileserver1 than the location should resolve to \\fileserver1\groupdir.




can WEM work with such setup? all of my attempts failed so far. has anyone had luck setting this up?



Link to comment

6 answers to this question

Recommended Posts

  • 0

Hi - As per your message, try it this way


in WEM - create an environmental variable. Give it a Name, Description and then set your Variable name as GROUPDIR set the value as [ADAttribute:extensionAttribute2]


Then create a drive mapping action and specify the path as the variable %GROUPDIR%


This is assumes that your extensionAttribute2 value is something like \\Server\Share


You can play around with the values as required


  • Like 1
Link to comment
  • 0
13 hours ago, Carlos Vilardell1709161700 said:

Hi James, 

I'm trying to configure more or less the same but using the SID attribute from the user account : [ADAttribute:SID] without success to put it into a registry key. Do you know what it can happen? Is it a must to have the powershell module ActiveDirectory enabled into the client where I want to get it working?

Thanks in advance,




use the exact attribute name objectSid

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...