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

WEM 1906 - Home drive mapping not working


Question

Hi all, 

 

I am struggling with this. Hope someone can give me a hand here to understand what I am missing...

 

WEM version = 1906.0.1.1

I have a share (hosted on NAS) with correct permissions (same as permissions as UPM UsrProfile that is working correctly).

I created a Network Drive action in WEM to map \\server\share\Home\%username%.%userdomain% and under Options, both Self Healing and Set as Home Drive are checked.

 

The Home Drive action is assigned to the Everyone built-in group in WEM.

 

I would expect the Home folder (%username%.%userdomain%) of the user to be created if it does not exists else just get mapped.

 

At user logon in the Citrix WEM Agent.log I can read: 

07:52:03 Warning -> VuemNetworkDriveExecutor.SetNetworkDriveName() : Network Drive -> Home (Id:1) -> Network Drive Name Configuration Skipped -> Registry Root Missing

07:52:03 Exception -> VuemNetworkDriveExecutor.ProcessNetworkDriveConnection() : The specified network resource or device is no longer available
07:52:03 Exception -> VuemNetworkDriveExecutor.ExecuteMapNetworkDrive() : Network Drive -> Home (Id:1) -> Network Drive Connection Failed -> Exiting
07:52:03 Exception -> VuemNetworkDriveController.ProcessSingleEntityTask() : Error while processing Network Drive: Home for Item: Everyone (S-1-1-0)
 

From a cmd.exe published to that user I am able create a test folder and files without issues under the Home share. 

 

I am wondering if I should configure a Create Folder action first to create the user Home folder... or if I am missing something else. 

I would really appreciate any suggestions else I will have to use GPOs for the home drive.... 

 

Thanks in advance for your help.

Link to comment

5 answers to this question

Recommended Posts

  • 0

WEM won't create the folder as part of a drive map action. That would cause havoc if an action was configured with a wrong path. WEM expects the path to be available 

 

Drive maps process before file system objects, so whilst your logic is sound, the execution will still fail on first run as the folder won't exist until wem creates it

 

Perfect scenario for an external task that calls a powershell script which maps drive in a non persistent fashion and marks as home drive or even native one liner net use command via wem external tasks (wem file system object actions processed before external tasks)

 

Set the external task to run once so it only occurs at first run 

 

Next time wem runs, life should be good with native mappings 

Link to comment
  • 0
13 minutes ago, James Kindon said:

WEM won't create the folder as part of a drive map action. That would cause havoc if an action was configured with a wrong path. WEM expects the path to be available 

 

Drive maps process before file system objects, so whilst your logic is sound, the execution will still fail on first run as the folder won't exist until wem creates it

 

Perfect scenario for an external task that calls a powershell script which maps drive in a non persistent fashion and marks as home drive or even native one liner net use command via wem external tasks (wem file system object actions processed before external tasks)

 

Set the external task to run once so it only occurs at first run 

 

Next time wem runs, life should be good with native mappings 

 

Thanks, I wasn't sure whether the folder needed to be created or not...

 

I have followed your advice and can now get the home folder created and mapped on first logon.

 

On the subsequent logons, the Home drive gets mapped natively by WEM, however I was expecting the HOMEDRIVE to be set to H: and the HOMEPATH to \

Instead those variables are set to

HOMEDRIVE=C:
HOMEPATH=\Users\citrixtester

 

I guess I am left with creating those variable via the corresponding Actions > Environment Variables. 

 

I am puzzled as to what the "Set as Home Drive" option really does? The documentation does not really say. 

 

Also starting to wonder if setting the home drive via WEM has any benefit over doing it via GPO Remote Desktop settings? 

 

Would appreciate your thoughts. 

Thanks for your help  so far! 

Link to comment
  • 0

Just to share my experience after testing this further...

 

As mentioned above, I was able to use External Task, to cread the Home folder and map it using: 

Path: C:\windows\system32\cmd.exe

Argument:  /C mkdir \\server\share\Home\%username%.%userdomain% & net use H: \\server\share\Home\%username%.%userdomain%

 

 However, I could not get the WEM Environment Variables HOMEDRIVE or HOMEPATH variables to work properly. No error in the log yet the variables where still set as if the Home was in the default path C:\Users\.... Even under the registry HKCU:\Volatile Environment the values were not set properly. Weird... 

 

Also tried with WEM Registry Entries, that did set the registry entries as specified but yet those variable in CMD were not being picked up correctly, even when launching a second CMD window...

 

Same thing happend with the GPO Remote Desktop Session Host > Set Profile Path... Home folder created, but H: not mapped and incorrect Env. Variables.

 

I ended up using User GPP settings to map the H: drive (that does actually create the user folder if missing) and GPP Registry entries for the Environment Variables HOMEDRIVE,  HOMEPATH and HOMESHARE.

 

Hope that helps someone... 

Link to comment
  • 0

sorry been a long week, just in the lab double checking this

 

behavior i see is that when "Set as Home Drive" is selected, the following occurs

 

HOMEPATH is blanked out (previously is \users\%username%)

HOMEDRIVE is replaced with the drive letter you specify on the WEM drive assignment (previously it is C:)

 

I wasn't able to get %HOMEPATH% to change either

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...