Windows 7图书馆的噩梦

在我们的Active Directory中,我们将一个策略部署到我们的个人目录(我的文档)被redirect到我们的文件服务器的客户端

\\server\share\username\Documents 

在旧系统中一切正常。 在Windows 7中,有些用户正在尝试以下症状:

  • 文档是EMPTY
  • 在资源pipe理器中应该显示文档库的地方会显示一个空的白色图标。 无标题。
  • 右键单击“文档”库以编辑作为库的一部分的文件夹,将popup对话框。 但是,该对话框不可用。 没有文件夹存在,点击添加文件夹什么都不做。
  • 删除库并自动创build它并不能解决问题
  • 共享目录可以通过UNCpath访问,也可以作为共享驱动器挂载。 图书馆仍然破碎。
  • 共享驱动器在W2008索引服务器上…
  • 使用Windows库工具实用程序不能解决问题。

这个问题的原因是什么?如何解决?

在记事本中,打开%appdata%\Microsoft\Windows\Libraries\Documents.library-ms
该文件的内容应该是这样的,你也可以很容易地编辑文件(Windows是非常原谅用户直接编辑文件)。

 <?xml version="1.0" encoding="UTF-8"?> <libraryDescription xmlns="http://schemas.microsoft.com/windows/2009/library"> <name>@shell32.dll,-34575</name> <ownerSID>S-1-5-21-xxxxxx-{The uers's SID}-xxxxx</ownerSID> <version>11</version> <isLibraryPinned>true</isLibraryPinned> <iconReference>imageres.dll,-1002</iconReference> <templateInfo> <folderType>{7d49d726-3c21-4f05-99aa-fdc2c9474656}</folderType> </templateInfo> <propertyStore> <property name="HasModifiedLocations" type="boolean"><![CDATA[true]]></property> </propertyStore> <searchConnectorDescriptionList> <searchConnectorDescription> <isDefaultSaveLocation>true</isDefaultSaveLocation> <isSupported>true</isSupported> <simpleLocation> <url>\\myserver\users\JohnDoe</url> </simpleLocation> </searchConnectorDescription> <searchConnectorDescription> <isSupported>true</isSupported> <simpleLocation> <url>\\anotherserver\JohnsFiles</url> </simpleLocation> </searchConnectorDescription> </searchConnectorDescriptionList> </libraryDescription> 

笔记:

  • 用户的实际SID必须放在文件中。
  • 本例中的folderType字段用于内置的“Documents”文件夹。 你可以用文件夹及其types做各种有趣的事情,但这超出了这个问题的范围。
  • 这个例子有两个地方。 注意第一个将DefaultSaveLocation设置为true,第二个没有这个字段。 您可以只有一个文件夹,或最多50个文件夹; 正好有一个必须有默认的文件夹字段。