Skip to content

Delay On Windows Vista With Redirected Desktop

14-Apr-08

If you are redirecting the Desktop folder for users on Windows Vista laptops, a knowledgebase article just been published that might be useful to you. Here’s details of what this article addresses:

SYMPTOMS
Consider the following scenario:

  • On a Windows Vista-based computer, you redirect the Desktop folder to a network redirection folder.
  • You enable the Always Available offline option to make the Desktop folder available offline.
  • The computer is connected to a network that does not contain the redirection folder.
  • You restart the computer, and then you enter your user credentials on the Welcome screen to log on to the computer.

In this scenario, you see a black screen for 30 to 120 seconds before the desktop or the Start menu appears.

Details here: After you log on to a Windows Vista-based computer that has the Desktop folder redirected, you see a black screen for 30 to 120 seconds before the desktop or the Start menu appears

PowerShell on Server Core

09-Apr-08

PowerShell running on Server Core

PowerShell running directly on Windows Server Core - no need to wait for Windows Server 2008 R2…  If you look closely you can see how I got it working.

Providing Redirected Start Menus To Laptops

08-Apr-08

OfflineStartMenu John has asked about using Offline Files as a method of fault tolerance instead of DFS on my previous post. Sounds like a great blog post (and it gives my an excuse to avoid my eight other draft posts), so here’s my answer:

First up, I would not rely on Offline Files as a method of fault tolerance. It will work as a solution for laptops operating disconnected from the network, but won’t provide effective fault tolerance. Offline Files are also not available on Terminal Server.

If you were to rely on Offline Files, you will have issues if the server the share is located goes down and can’t be restored. Using Group Policy to redirect user folders requires that the original source location is available if you ever want to change the redirection path. This is why DFS Namespace is a good match for folder redirection - the DFS path remains static, while the real path can change.

DFS Namespaces and DFS Replication offer a far better solution for fault tolerance and DFS is available in Windows 2000 Server and above. If you want FT without using a 3rd party solution take a look at DFS Replication.

I spent some time this evening to configure a redirected Start Menu for Windows Vista laptops in my test environment. Here’s my notes for recreating this setup and how it went:

This is very similar to redirected Start Menus for Terminal Servers with some minor differences.

Create a GPO linked to the OU that contains your target workstations and enable Group Policy loopback mode. You would generally target similarly configured workstations just like you would do for Terminal Servers. In my test environment I’m configuring this for Windows Vista, I’ve enabled a WMI filter on this GPO so that it only applies to Vista and above:

SELECT Version FROM Win32_OperatingSystem WHERE Version >= '6'

Edit the GPO and enable these settings (here’s the full GPO report):

  • Computer Configuration / Administrative Templates / System / Group Policy / User Group Policy loopback processing mode
  • User Configuration / Windows Settings / Folder Redirection / Start Menu / Basic (Redirect everyone’s folder to the same location) / Redirect to the following path: In my test environment, I’m using this DFS path: \\dev.local\Public\StartMenus\WindowsVista
  • Grant user exclusive rights to Start Menu
  • Move the contents of Start Menu to the new location
  • Redirect the folder back to the local userprofile location when policy is removed
  • User Configuration / Administrative Templates / Start Menu and Taskbar / Remove common program groups from Start Menu
  • User Configuration / Administrative Templates / Network / Offline Files / Administratively assigned offline files: \\dev.local\Public\StartMenus\WindowsVista

The last setting will ensure that the Start Menu will be cached by the workstation and available to the user offline. Here’s my configured folder which has been cached locally:

WindowsVistaStartMenu

Make sure you configure your Start Menus with access-based enumeration and the right permissions before users access them. If you don’t and users’ workstations cache the shortcuts, you might end up unavailable shortcuts looking like this:

StartMenuMissedIcon

Although I’ve only done some limited testing I think this solution would work quite well. One important note to remember is that you will need to add your internal DNS domain to the Intranet zone (when using a domain-based DNS Namespace) otherwise users will be prompted with a trust dialog each time they run a shortcut from the Start Menu.

Building Dynamic Start Menus With Access-Based Enumeration

06-Apr-08

StartMenu2In my last article I hinted at creating dynamic Start Menus using Access-Based Enumeration (ABE) in Windows Server 2003 SP1 and above. I have read an article on this subject previously on the Internets, but the tubes must be clogged up as I can’t find it anymore. If anyone has a link please let me know, because I would like to link to it.

So because I can’t find that article and Dylan asked how this is done, here’s my own version:

In this example I’m configuring a Start Menu for a Windows 2003 Terminal Server. This is probably the most common scenario for managing Start Menus and ABE helps to create a dynamic Start Menu even though all users may be accessing the same menu items.

My test environment consists of a Windows Server 2008 domain controller/file server named DC and a Windows 2003 Terminal Server named TS in a domain named dev.local with a DFS Namespace named Public.

Create A Share To Host The Start Menu

Access-based enumeration won’t work on local folders so you’ll need to redirect the Start Menu to a network folder. In my example configuration I’ve created a share named StartMenus which is located at E:\StartMenus on DC. Once the folder is shared, enable ABE. See my previous article on how to do this.

I’ve also set NTFS permissions on this folder so that Administrators and SYSTEM have Full Control and Authenticated Users have Read-only access. Ensure that the Administrators group has ownership on this and any sub-folders, otherwise, by default, folder redirection will not work.

Improving The Share Configuration

If you are hosting the share on Windows Server 2003 R2 or Windows Server 2008, I recommend enabling a File Screen on this location so that only .LNK, .URL and .INI files can be copied to this location. This will help prevent files with potentially harmful content being copied to the Start Menu and executed (especially the Startup location). Allow .INI files because the Start Menu is populated with DESKTOP.INI files.

You should also add this share to a DFS Namespace so that if you need to move the Start Menus to another server, you won’t need to modify Group Policy. In my example environment my new network path is \\dev.local\Public\StartMenus. DFS can also provide high-availability for your Start Menus through DFS Replication.

DFSNamespace

Create The Start Menu(s)

Create a folder below your new share for each Start Menu you require. This method of creating Start Menus doesn’t account for the configuration of each Terminal Server. For example, you might have multiple Terminal Server silos, so you’ll need to create a Start Menu for each silo (if you’re publishing multiple desktops). My example environment has a Start Menu location at \\dev.local\Public\StartMenus\TerminalServer.

Copy shortcuts from the local machine to the network share. You’ll need to copy from the user Start Menu as well as the common Start Menu to construct a menu with all of the required application shortcuts plus the usual suspects. After (or before) copying, clean up the shortcuts so that only the shortcuts you require are located there.

StartMenuFolder

Create groups in your domain that you can use when setting permissions on your Start Menu. Most organisations will use a group to represent each application, but if you can go with role-based groups they will be mean less administrative overhead.

Set permissions on each shortcut folder or individual shortcuts as required. Once access-based enumeration is enabled users will see only the shortcuts they have read access to. Setting permissions on the shortcuts and folders is a great candidate for scripting or Group Policy. If you keep the permissions configuration in a script or use Group Policy to set permissions you can ensure those ACLs will stay consistent.

Redirect The Start Menu

In my example I’m configuring a Start Menu for a Terminal Server environment, so I’m going to redirect the Start Menu via a loopback policy applied to my Terminal Servers OU. I also deny the Apply Group Policy right to Domain and Enterprise Admins (or other applicable administrator groups on this GPO so folder redirection does not apply to those users.

LoopbackPolicy

Create a GPO on the Terminal Servers OU and enable the loopback policy:

Computer Configuration / Administrative Templates / System / Group Policy / User Group Policy loopback processing mode

I generally set this to Merge because most settings are configured by GPOs on the user OUs. Also enable the setting to hide the common Start Menu. If you don’t enable this setting, users will see both the redirected and local Start Menus.

User Configuration / Administrative Templates / Start Menu and Taskbar / Remove common program groups from Start Menu

Now enable folder redirection to your network share and be sure to set the option ‘Redirect the folder back to the local userprofile location when policy is removed’. Here’s a copy of the GPO report to see exactly how I’ve configured it.

StartMenuRedirection

Start Menu folder redirection in this manner allows you to stop customising the local Start Menu. This is something I see TS administrators do in numerous organisations. I find this practice to be un-necessary and increases the administrative overhead. Redirect the user Start Menu so that administrators have access to all of the locally installed shortcuts.

Let’s See What It Looks Like

Now that the configuration in complete your users should have a Start Menu customised for them. If they don’t you should check the Application log for any Group Policy errors.

What users should see on their Start Menus should be fairly predictable. My first user sees the following configuration:

AaronStartMenu

And the second user sees a different Start Menu:

ZappStartMenu

Summary

Using Access-Based Enumeration in Windows Server 2003 SP1 and above, we can create a Start Menu solution customised for each user. There are numerous ways to achieve this (perhaps even more flexible), but ABE gives us a no script, no 3rd party solution - nice and simple.