The Storage Team Blog about file services and storage features in Windows Server, Windows XP, Windows Vista and Windows 7.
1.1 Overview of Primary Computer feature
In Windows Server “8” Beta, administrators can designate a set of computers, known as primary computers, for each domain user, which controls which computers use Folder Redirection, Roaming User Profiles, or both. Designating primary computers is a simple and powerful method to associate user data and settings with particular computers or devices, simplify administrator oversight, improve data security, and help protect user profiles from corruption.
There are four major benefits to designating primary computers for users:
See Deploy Primary Computers for Folder Redirection and Roaming User Profiles for updated information about how to enable primary computer support and designate primary computers for users.
1.2 Overview of this document
This post describes the steps I took to set up a user with Folder Redirection and assign primary computers, so that you can experiment with this new technology yourself. The post does not include details on how to set up a domain controller or a domain. The audience of this document is expected to have an existing file server, domain controller, and clients setup or be able to set these up independently.
2.1 Prerequisites
You need only a single computer (the specs are provided below) and the ISO files for the Windows Server “8” Beta and Windows 8 Consumer Preview, both of which are available as free downloads.
You will need a computer that meets the following requirements:
In my case, I am using a Lenovo W520 Laptop with 8GB of RAM and an Intel Core i7.
You need to provision virtual machines for:
In my demo setup, I provisioned three virtual machines:
2.2 Setting up Folder Redirection
2.2.1 Create a file share for user data
To create a file share for user data, use the following procedure on the domain controller/file server.
2.2.2 Create a new user
To create a new user, use the following procedure on the domain controller.
2.2.3 Create a new group policy object
To create a new GPO for Folder Redirection and primary computer support, use the following procedure on the domain controller.
2.2.4 Configure Folder Redirection
To set up Folder Redirection for Bob Smith, use the following procedure.
2.2.5 Link the GPO to your domain
To link the GPO to your domain, use the following procedure on your domain controller.
2.2.6 Test the Folder Redirection setup
At this point, the Folder Redirection setup is complete. If you’d like to test it out, sign in as Bob Smith onPMClient1. Ensure that Folder Redirection successfully applies for Bob Smith, as shown in step 2.4.1 below.
It is possible that you may have to reapply group policy on the client computer in order for Folder Redirection to apply. To do so, sign in as Bob Smith, open a command prompt window and then type Gpupdate /force. After signing out and then signing back in, the Folder Redirection policy should apply.
2.3 Setting up primary computers
2.3.1 Designate a Primary Computer in Active Directory
2.3.1.1 Designate a primary computer by using Active Directory Administrative Center
To designate a primary computer in Active Directory Domain Services (AD DS), use the following procedure.
2.3.1.2 Designate a primary computer by using Windows PowerShell
To use Windows Powershell to designate a primary computer in AD DS, use the following procedure.
PS C:\Users\Administrator> $computer=Get-ADComputer PMClient1
PS C:\Users\Administrator> Set-ADUser bobsmith –Add @{‘msDS-PrimaryComputer’=”$computer”}
PS C:\Users\Administrator> Get-ADUser bobsmith –Properties msDS-PrimaryComputer
During the setup, if you’d like to remove the user-primary computer partnership for user Bob Smith, type the following command:
PS C:\Users\Administrator> Set-ADUser bobsmith –Remove @{‘msDS-PrimaryComputer’=”$computer”}
You can use the Windows PowerShell cmdlets published here to configure primary computer preferences in Active Directory.
2.3.2 Configure Folder Redirection policy to apply to primary computers
To enable primary computer support for Folder redirection, use the following procedure on the domain controller.
2.4 Testing primary computers
2.4.1 Sign on to a primary computer using the Bob Smith account
To test the experience of using a primary computer, use the following procedure on the PMClient1 computer.
2.4.2 Sign on to a non-primary computer using the Bob Smith account
To test the experience of using a non-primary computer, use the following procedure on the PMClient2 computer.