Tactical Advice

How to Use User State Virtualization for Backup and Migration

Provide users with constant access to their data, whenever and wherever, while centralizing important files for backup and management.

Microsoft’s User State Virtualization technologies alleviate the need to rely on users to back up their data or deploy backup agents to every client device. User State Virtualization can also be useful in desktop migration scenarios. Improvements in Offline Files provide a more reliable experience, and most important, users no longer need to manually synchronize changes when a connection is re-established to a remote server.

User State Virtualization is an umbrella term used to describe three technologies: Roaming Profiles, Folder Redirection and Offline Files. Together, these features give users access to their data and settings from wherever they log on to the network and ensure there’s always a copy of important data on a server for safekeeping.

Roaming Profiles

When a user logs on to a computer for the first time, a profile is created on the local disk to store the user’s files, application settings and registry data (ntuser.dat). The profile is loaded whenever the user logs on to the PC.

If Roaming Profiles are configured for the PC in Group Policy or per user in Active Directory, the user’s local profile is copied to the given server path at logoff. The profile is then synchronized between the server and any device that the user logs on to.

Figure 1

Figure 1 - The Roaming Profile path for a user in Active Directory Users and Computers (ADUC)

Group Policy settings are available, which allow administrators to exclude folders from Roaming Profiles. Other controls include the automatic deletion of old user profiles and logon behavior over slow network connections.

Figure 2

Figure 2 – Group Policy settings for Roaming Profiles

It’s important to remember that when using Roaming Profiles, changes are only synchronized to the server when the user logs off. This is in contrast to Folder Redirection in online mode, where changes are immediately available from other PCs.

Roaming Profiles performance has been enhanced in Windows 7 to allow registry settings (ntuser.dat) to be uploaded to the server while users are logged on, reducing the time it takes to perform a logoff operation. This behavior can also be controlled via Group Policy.

Folder Redirection and Offline Files

Folder Redirection lets system administrators set the file path for default user folders, such as Documents and Desktop, moving storage from the local disk to a server. Changes made on one PC are immediately available from any other PC to which a user logs on.

Offline Files, sometimes referred to as “client-side caching,” works with Folder Redirection to ensure that notebook users always have access to their files when there is no connectivity to the corporate network. Group Policy settings for Folder Redirection can be found in the User Configuration section of a Group Policy Object (GPO) under Policies > Windows Settings > Folder Redirection. You can let Windows manage the server location for redirected folders or, in more advanced environments, specify a destination according to users’ Active Directory group membership.

Figure 3

Figure 3 – Setting Up Folder Redirection for the Documents folder in Group Policy

When setting a path for Folder Redirection, select Create a folder for each user under the root path and let Windows create the folders automatically to avoid problems with security access control lists (ACLs).

Availability With the Distributed File System

After adding the Distributed File System (DFS) into the mix, it’s possible to specify a DFS path in the basic or advanced locations for redirected folders, ensuring access to the closest replicated copy of a file if users travel between sites.

In all but the smallest networks, DFS can also prove useful by providing some level of redundancy should a server need to be taken out of service, transparently providing a replicated copy of users’ data without the need for any reconfiguration. For more information on DFS, see http://www.microsoft.com/windowsserversystem/dfs/default.mspx.

Folder Redirection vs. Roaming Profiles

While Folder Redirection provides a means of transparently redirecting users’ files and folders to a server, with the additional option to synchronize a copy locally for offline use, Roaming Profiles keep all data and settings stored locally until the user logs off, when all changed files and settings are synchronized with a server.

In contrast, Folder Redirection just handles user data, unless you opt to redirect the AppData folder. While generally not recommended because of application compatibility issues, this allows users’ program settings to follow them, assuming the line-of-business applications were developed following Microsoft’s best practices.

The Best of Both Worlds

Combine the benefits of Roaming Profiles with the performance of Folder Redirection by configuring both features to work at the same time. It’s possible to exclude folders, such as Documents, that contain large files from Roaming Profiles, but use Folder Redirection to make sure the contents of the Documents folder are always synchronized with a file server.

When setting up Roaming Profiles, configure the path in Active Directory Users and Computers (ADUC). If you use Group Policy to configure Roaming Profiles per computer, there’s no way to exclude administrators.

Improvements in Offline Files in Windows 7

Windows 7 brings significant improvements to the user experience when Offline Files is enabled. When a user logs on for the first time, their files are first moved to a local disk cache before being transferred to the server, greatly reducing the amount of time it requires to log on.

Additionally, if a user is in offline mode, Windows 7 detects when the network becomes available and automatically transitions back to online mode. By default, Windows 7 enables support for deletion and renaming of files and folders when working offline.

The Usually Offline feature, which allows users connected to remote servers on slow networks to link to work from an offline cache, has been enhanced in Windows 7 to include a background synchronization feature that helps to ensure files are always up to date on servers and clients. This can be enabled and configured using Group Policy.

Sign up for our e-newsletter

About the Author

Russell Smith

Russell Smith

Microsoft Technology Best Practices

Russell is a technology consultant and trainer specializing in management and security of Microsoft server and client technologies. A Microsoft Certified Systems Engineer with more than 10 years of experience, Russell’s projects have included everything from deploying Small Business Server to developing security practices on large-scale United Kingdom government IT projects. Russell is also author of Least Privilege Security for Windows 7, Vista and XP published by Packt.

Security

Review: Belkin Advanced Secu... |
This tool can prevent KVM toggling from being a source of network vulnerabilities.
Honeywords: Password Securit... |
Researchers are proposing a new method of spiking the password punch as a way to identify...
How Many Vulnerabilities Doe... |
The potential for damaging data breaches lurks in nearly every corner for SMBs.

Storage

EMC World 2013: Software-Def... |
Storage virtualization is a key element of providing on-demand, flexible cloud services.
How Steve Wozniak Explains V... |
Fusion-io's chief scientist breaks virtualization down into terms everyone can understand.
Product Review: Quantum NDX-... |
Device does double duty for storage and backup.

Infrastructure Optimization

Why More Software Is Headed... |
Many of your favorite software suites are trading in their shiny discs for cloud-based...
Cisco Live 2013: Brush Up wi... |
Get up to speed on convergence, wireless networking, collaboration and more ahead of the...
EMC World 2013: Software-Def... |
Storage virtualization is a key element of providing on-demand, flexible cloud services.

Networking

How to Secure Optimized Netw... |
WAN optimization and security aren’t always complementary. These tips can help you deal...
Cisco Live 2013: Brush Up wi... |
Get up to speed on convergence, wireless networking, collaboration and more ahead of the...
Do Virtual Meetings Boost Pr... |
New study finds that face-to-face meetings don’t always work in workers’ favor.

Mobile & Wireless

Consumr App Powers Informed... |
Reviews and ratings for products on the shelf are only a barcode scan away.
Faster In-Flight Wi-Fi: Com... |
The FCC is working on regulation to free up more Internet bandwidth for air travelers.
CTIA: Wireless Network Data... |
The invisible bytes that zip through the air continue to multiply at rapid rates.

Hardware & Software

Consumr App Powers Informed... |
Reviews and ratings for products on the shelf are only a barcode scan away.
Review: Belkin Advanced Secu... |
This tool can prevent KVM toggling from being a source of network vulnerabilities.
How Many Vulnerabilities Doe... |
The potential for damaging data breaches lurks in nearly every corner for SMBs.