How to restrict users from accessing local drives of an RD Session Host server while using RemoteApp programs

How to restrict users from accessing local drives of an RD Session Host server while using RemoteApp programs

Rate This
  • Comments 29

Hello, my name is Pankaj Pande and I would like to discuss a method that an administrator can use to keep users from storing files in public folders and scattering files randomly throughout a virtual machine pool or Remote Desktop Session Host (RD Session Host) server farm, while using Remote Desktop Services and RemoteApp programs. (Note: an “RD Session Host server” was formerly called a “terminal server” in Windows Server 2008.)

Currently, when a user creates an RDP session or a RemoteApp program, they can see, and in some cases transverse, drives C and D of the RD Session Host server. They can also save anything on the desktop, which might look like their personal desktop, but it's actually the desktop of the RD Session Host server.

Restrictions will disable Libraries and Favorites and will hide or restrict users or a group of users from accessing and viewing any drives on the RD Session Host server. Users will be provided with an error message even if they use the UNC path to access the drives.

The primary reason to remove Favorites and Libraries and access to drives is because they contain mostly accessed locations on a system, so in the case of the RD Session Host server, this includes the desktop, downloads, recent places, etc. It is recommended that a user not save any documents to these locations.

Removing Favorites and Libraries

You must perform these modifications on the RD Session Host server. You can use the Registry to make these changes.

Using the Registry (applies to all users including the administrators)

Note: Back up the key first and take ownership of the ShellFolder before changing the value of Attributes.

1. For Favorites, the key is:

[HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder]
"Attributes"=dword:a0900100
Changing a0900100 to a9400100 will hide Favorites from the navigation pane.

2. For Libraries, the key is:

[HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder]
"Attributes"=dword:b080010d
Changing b080010d to b090010d will hide Libraries from the navigation pane.

Hiding/Preventing Access to Drives

You can use Group Policy settings to hide and restrict access to drives on the RD Session Host server. By enabling these settings you can ensure that users do not inadvertently access data stored on other drives, or delete or damage programs or other critical system files on drive C.

The following settings are located in the Group Policy Management Console under User Configuration\Policies\Administrative Templates\Windows Components\Windows Explorer:

  • Hide these specified drives in My Computer. You can remove the icons for specified drives from a user’s My Computer folder by enabling this setting and using the drop-down list to select the drives you would like to hide. However, this setting does not restrict access to these drives.
  • Prevent access to drives from My Computer. Enable this setting to prevent users from accessing the chosen combination of drives. Use this setting to lock down the RD Session Host server for users accessing it for their primary desktop.

Applies to:

  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows Server 2003

Other Group Policy Settings for Additional Security

You can also enable the following Group Policy settings at User Configuration\Administrative Templates\Windows Components\Windows Explorer:

  • Hides the Manage item on the Windows Explorer context menu — Enabled
  • Remove Hardware tab — Enabled
  • Remove “Map Network Drive” and “Disconnect Network Drive” — Enabled
  • Remove Search button from Windows Explorer — Enabled
  • Disable Windows Explorer's default context menu — Enabled
  • Remove Run menu from Start Menu — Enabled

Applies to:

  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows 7
  • Windows Vista
  • Windows XP
Leave a Comment
  • Please add 4 and 4 and type the answer here:
  • Post
  • I have Windows XP Professional. Changeing the attriibutes as shown above appliy to the Professional Version also?

  • Hi, Tampa,

    These settings are applied to the RD Session Host server, so the type of XP you're using isn't relevant. This applies to Windows XP only in that Windows XP supports the latest RDP client.

    Hope this helps,

    Christa

  • Hi, Tampa,

    These settings are applied to the RD Session Host server, so the type of XP you're using isn't relevant. This applies to Windows XP only in that Windows XP supports the latest RDP client.

    Hope this helps,

    Christa

  • Hi, Tampa,

    These settings are applied to the RD Session Host server, so the type of XP you're using isn't relevant. This applies to Windows XP only in that Windows XP supports the latest RDP client.

    Hope this helps,

    Christa

  • Is there a way to force the user to save to their client mapped drive when they choose save as from a remote application?  maybe using folder redirection or something to redirect mydocuments to their client mapped c drive.

  • This works great for remote desktop connections, however i'm unable to get this working for RemoteApps. Is there anything else which needs to be done to make this work for RemoteApps?

  • Hi Chris,

    The method is same for the full blown sessions and the Remote app, what exactly is the issue that you are facing.

    Let me know, till what steps you have followed and i will assist you with the same.

    - Pankaj

  • Hi-By modified the GPMC, I am able to prevent the hard drive form My Computer and disable run command form start menu, but it include Administrators too.  Is there anyway in which I exclude Administrator form these modifications??

    Thx

    Deepender

  • If you change the GPO as suggested wont this make the change on all computers and not just the RD server?

    Users will still need this functionality on their network computers but not on the RD server.

  • Hi Deepender,

    You can use, "Deny" on Administrators from GPMC.

    - Pankaj

  • we've been asked to publish windows explorer on our citrix host so that a vendor can save and view report files.  we do not give them a desktop, but publishing explorer as an app allows them to browse the whole server.  how do I restrict this user to a single directory without breaking all our published apps?

  • how can i edit in Hide these specified drives in My Computer policy to cand hide specific drives only to premit to user can take his devices inlogon ant save its job on it

  • Hello pankaj,

    Can we put only one software icon only to be shown when user connect through RDP session.

  • Hi,

    is there any way to have this policy only run when connected to the RD Sesson host?

    If I apply this policy as is, the user's loose access to their local drives on their desktop PC's

  • How do I prevent users from changing network adapters information (through GPO)

Page 1 of 2 (29 items) 12