以下属本人不成熟的认知,如果有错误之处,请您指正,感激不尽!
这两天在弄Roaming user profile的事情。先上一段来自wikipedia的解释(http://en.wikipedia.org/wiki/Roaming_user_profile)。
A roaming user profile is a concept in the Microsoft Windows NT family of operating systems that allows a user with a computer joined to a Windows Server domain to log on to any computer on the same network and access their documents and have a consistent desktop experience, such as applications remembering toolbar positions and preferences, or the desktop appearance staying the same.
我想通俗点来说,就是如上图,用了这个roaming user从A登陆B,然后做了一些修改啊,啥啥啥的,或者是移动了桌面上的图片啥啥啥的。然后,我们logout出来,注意,logout出来的时候roaming user的profile会自动保存到domain server上去。然后,我们再用这个roaming user从A登陆C, 桌面上的profile会跟你刚刚在B上的一样,这是因为登陆的时候,从domain server上下载了该roaming user的profile也就是刚刚保存的profile.好了,下面我们来看如何设置。由于本人也是在摸索阶段来实现的,所以如果有漏掉的地方没讲,导致你设置不成功的,就按照错误信息再上网搜搜吧,毕竟别人讲的不是自己的,只有自己做过一遍的才是自己的。
1. 建一个domain server,我们暂且称其为S。如何建domain server自己去网上搜下。然后去到控制面板中打开管理工具,进入到Active Directory用户和计算机中,可以新建一个user,也可以使用你已有的user。新建user的时候注意其所在组的选择,可能会影响到后来client能否连到这个账户上。由于我对这个不清楚,所以我就直接用了我已有的一个账户,就叫test吧。然后进入到“配置文件”选项,填写“配置文件路径”。就是填写你要保存roaming user的profile的路径,譬如我在C盘建了个profile的文件夹,然后共享该文件夹并且给予其可写的权力,因为保存profile的时候需要能够改写该文件夹。然后我再在profile文件夹中新建一个文件夹,命名为test。在下图的红线圈中,我该填写的就是//S/profile/test。在主文件夹那栏中的本地路径中,我也填写成C:/profile/test。
2. 然后我就登陆到client B,将B加入domain中,加入的时候,用的是test的账户和密码。然后重启。重启后,用test和其密码登陆,注意Log on to:那个框框中要选择domain的名字,因为是登陆到domain中去。 登陆后,右键点击My computer,到Advanced页面,点击“User Profiles”下的Settings按钮。点击后,会出现一个User Profiles的框框,找到domainName/test(此处的domainName指的是你的domain的名字,test指的是我们刚刚设置的roaming user)。选中该项,然后点击Change Type,你会发现它已经自动选中Roaming Profile。然后就点OK,然后一直OK。如果此处遇到Roaming Profile不能选的情况,请到startàrun 中运行gpedit.msc,然后在跳出的窗口中Computer ConfigurationàAdministrative TemplatesàSystemàUser Profiles中,看右边窗口中的Only allow local user profiles Properties有没有被你启用,我是禁用了。不过我觉得选Not Configured也还OK吧,默认是Not Configured的。
3. ClientA, C同client B。
4. 从client A登陆B,当logout的时候,你去domain server上看C:/profile/test,会发现里面存储了profile,对,这就证明离成功不远了。然后再从A登陆C,当然,这些登陆都是用roaming user登陆。你会发现,刚刚在A上的桌面就到了C上了。
5. 参考资料:
(1) Roaming user profile介绍: http://en.wikipedia.org/wiki/Roaming_user_profile
(2) Fixing “Windows cannot connect to the domain” Errors:http://www.petri.co.il/fixing-windows-cannot-connect-to-the-domain-errors.htm
(3) Configuring Roaming User Profiles(官方):http://technet.microsoft.com/en-us/library/cc738596(WS.10).aspx
(4) Managing User Profiles:http://technet.microsoft.com/en-us/library/bb726990.aspx
(5) Remote desktop connection "The local policy of this system does not permit you to logon interactively":http://support.microsoft.com/kb/289289#LetMeFixItMyselfAlways
(6) WINDOWS 2003中的管理工具tsmmc、远程连接数(直接看文章最后):http://hi.baidu.com/hbxjzlq/blog/item/bb77142c8896dc3e349bf793.html