现在有一个问题就是用户的收藏夹该如何同步呢?GPO 中默认并未提供收藏夹得重定向设置,在微软员工的 Blog 上发现了能够配置收藏夹重定向的 GPO 模板,代码如下:
CLASS USER
CATEGORY !!WindowsComponents
CATEGORY !!InternetExplorer
CATEGORY !!IE_Favorites
KEYNAME "SoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders"
POLICY !!IE_Favorites
#if version >= 4
SUPPORTED !!SUPPORTED_IE5
#endif
EXPLAIN !!IE_Favorites_Location_Explain
PART !!IE_Favorites_Location_Tip1 TEXT
END PART
PART !!IE_Favorites_Location EDITTEXT EXPANDABLETEXT
VALUENAME Favorites
DEFAULT "%USERPROFILE%Favorites"
REQUIRED
END PART
END POLICY
END CATEGORY ;; IE_Favorites
END CATEGORY ;; Internet Explorer
END CATEGORY ;; WindowsComponents
[strings]
WindowsComponents="Windows Components"
IE_Favorites="Favorites"
IE_Favorites_Location="The path to the favorites folder"
IE_Favorites_Location_Explain="Specify the path to the location of favorites. You can use variables like %USERPROFILE%, %USERNAME%, etc... Both local and UNC paths are valid."
IE_Favorites_Location_Tip1="Specify the UNC path to the favorites location"
InternetExplorer="Internet Explorer"
SUPPORTED_IE5="at least Internet Explorer v5.01"
CATEGORY !!WindowsComponents
CATEGORY !!InternetExplorer
CATEGORY !!IE_Favorites
KEYNAME "SoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders"
POLICY !!IE_Favorites
#if version >= 4
SUPPORTED !!SUPPORTED_IE5
#endif
EXPLAIN !!IE_Favorites_Location_Explain
PART !!IE_Favorites_Location_Tip1 TEXT
END PART
PART !!IE_Favorites_Location EDITTEXT EXPANDABLETEXT
VALUENAME Favorites
DEFAULT "%USERPROFILE%Favorites"
REQUIRED
END PART
END POLICY
END CATEGORY ;; IE_Favorites
END CATEGORY ;; Internet Explorer
END CATEGORY ;; WindowsComponents
[strings]
WindowsComponents="Windows Components"
IE_Favorites="Favorites"
IE_Favorites_Location="The path to the favorites folder"
IE_Favorites_Location_Explain="Specify the path to the location of favorites. You can use variables like %USERPROFILE%, %USERNAME%, etc... Both local and UNC paths are valid."
IE_Favorites_Location_Tip1="Specify the UNC path to the favorites location"
InternetExplorer="Internet Explorer"
SUPPORTED_IE5="at least Internet Explorer v5.01"
将以上代码使用扩展名为“adm”进行保存,之后导入到GPO中即可。
具体的操作步骤如下:
首先,进入GPO编辑,切换到用户配置下的管理模板,右键点击添加删除模板。
添加事先准备好的 GPO 模板。
添加后我们即可在途中所示位置看到 Favorites 这个设置,但是在右边视图中却未看到具体的设置项,别急继续下一步。
在视图区域右键单击,点击筛选。
去掉“只显示能完全管理的策略设置”,之后我们即可看到具体的设置。
双击 Favorites,填写重定向路径,根据我的实际情况我将 Favorites 重定向到与“我的文档”同样的用户目录位置中,即:“\dcuserfiles\%USERNAME%Faorites”
本文转自 苏繁 51CTO博客,原文链接http://blog.51cto.com/goxia/219593如需转载请自行联系原作者