Forum Discussion

vgernyc's avatar
vgernyc
Copper Contributor
Nov 30, 2021

Start Menu does not load if user profile in a driver other than C Drive

I'm trying to set up an Windows 10 embedded device who's Z drive houses users profiles.

 

If I modify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList  Key:  ProfilesDirectory Value Data: Z:\Users   the Start Menu does not load.  If I set it back to C:\Users or %SystemDrive%\Users then it works again.  I used to be able to change this with Windows versions before Windows 10.

2 Replies

    • vgernyc's avatar
      vgernyc
      Copper Contributor

      Craig Reilly 
      A lot of trial and error but I did eventually find a way. 

      What I did was to create 2 Scheduled Tasks in Group Policy Preferences User Configuration. 

       

      First one was to mount a folder as a drive using the Subst.exe command.  In the General tab, set the following as the user account the task will run as:  "%LogonDomain%\%LogonUser%"  and "Run only when the user is logged on".

      Under the Tigger tab, create a new trigger "At log on" and specify a specific user or group "%LogonDomain%\%LogonUser%"

      Under the Actions tab create a Start a program and add "C:\Windows\System32\subst.exe"  and for the argument Z: "C:\Users\%Username%"

      Under Common tab set it to only run under user's security context.

      2nd Scheduled Task is to dismount this drive upon logoff.

      Settings are more or less the same except for under the Triggers tab create a new "On and Event".  On the left side set to "Basic" and on the right side set to "Security" for Log and "4647" for Event ID.

      Under the Actions Tab, again "Start a Program", but this time "C:\Windows\System32\subst.exe" and for the argument Z: /d

      There is an inconsistent delay in Windows showing the mounted folder as a drive but it works and I can hide and block the C Drive with this.  It could be that I was using this on thin clients which were a bit slow.

       

Resources