I highly recommend using Mandatory Profiles with PowerFuse in Terminal Services and VDI deployments. There is some information around the Internet detailing how to do this, but none of it appears to be step-by-step and you’ll get various snippets of information from varying sources. Having set this up on numerous occasions and having to piece together the details each time from my notes I thought I’d share them. I’ll cover some PowerFuse specific recommendations and best practices in a future post. Enjoy!
Creating the Mandatory Profile:
- Create the mandatory profile on your file server. For example, create the ‘D:\MandatoryProfile’ folder.
- Copy the Default User profile directory to the ‘D:\MandatoryProfile’ folder.
- Rename the ‘Default User’ folder to ‘Mandatory’ (or whatever you wish).
- Rename the D:\MandatoryProfile\Mandatory\NTUSER.DAT file to NTUSER.MAN.
- Remove NTFS permission inheritance and copy the existing permissions.
- Remove all named ACEs for all non-“Well Known Groups” and users.
- Add ‘Authenticated Users’ with Read and Execute permissions.
- Change the Owner of the directory (and sub-directories/files) to the local ‘Administrators’ group.
- Share the ‘D:\MandatoryProfile’ folder as ‘Mandatory’.
- Add ‘Authenticated Users’ with Read permissions to the share permissions
Modifying the Profile:
- Delete the NTUSER.LOG file and any other files/shortcuts that you don’t want available to the users from the ‘D:\MandatoryProfile\Manadatory’ folder.
- Change the registry permissions in the HKCU registry hive:
- Open REGEDIT.
- Highlight the HKEY_USERS hive.
- Select ‘File > Load Hive‘.
- Browse to the ‘D:\MandatoryProfile\Mandatory\NTUSER.MAN‘ file.
- Enter a name for the hive. This is only a place holder whilst the HKCU hive is loaded and can be named anything you like, i.e. ‘MAND’.
- Edit the permissions (Right click > Permissions) on the loaded hive and;
- Remove any non-“Well Known Groups” or individual users.
- Add the local ‘Users’ group with Full Control.
- Make any specific registry changes required here, for example, disabling the default Windows Startup sound.
- Unload the registry hive by highlighting the ‘MAND’ key and selecting ‘File > Unload Hive‘ from the menu. If you don’t unload the registry hive users will not be able to load the mandatory profile and receive errors at log on.
- Add additional files and shortcuts that you want available to the users, e.g. desktop shortcuts.
Assign the Mandatory Profile to users:
- To assign the Mandatory Profile to Terminal Services users, specify the users ‘Profile Path‘ setting as ‘\\SERVER\Mandatory\Mandatory‘ on the ‘Terminal Services Profile‘ tab of their AD account(s).
- To assign the Mandatory Profile to desktop and laptop users, specify the users ‘Profile Path‘ setting as ‘\\SERVER\Mandatory\Mandatory‘ on the ‘Profile‘ tab of their AD account(s).
- To assign the Mandatory Profile to VDI users, assign the profile as per the ‘desktop and laptops’ option above.