Windows 7 Libraries - Default location??
Morning Guys! It's a bit of a long shot, but after weeks of trying i've drawn a blank on this one... At the company where I work, we're implementing Folder Redirection/Offline Folders across the business using Group Policy. This is all fine and "just works" with Windows Xp. However... When using 7, it does the redirection however due to the Windows 7 "Libraries" feature, it doesnt default to the network location of their files and still saves locally. There's no registry key for this so we can't do it the way we'd like... (Group Policy preferences) Does anyone know of anyway (apart from doing it manually) that we can automate this? So it removes all other locations that the libraries are currently saving to, and defaults to the network location of their redirected files. E.g. \\company\global\GB\PLC\CSD\Misc Shares\BSD user files\%USERNAME%\My Documents I suspect this is going to be a bit of a bodge using our logon script and some custom code now... But before I start coding i'm after some more ideas if anyone out there has any thoughts on this?? Cheers Rich
April 21st, 2011 3:31am

Hi, According to my test, if the Documents, Music, Pictures and Videos in Libraries are redirected to the network location, the library location will also be redirected to the same network location. In addition, you may also manually remove or include a local folder and a network location to the library. For your reference, I have uploaded the screenshots. If this is not the issue, please clarify it in detail. Regards, Arthur Li TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com . Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2011 3:21am

Hi Arthur, Thanks for this - but I think I need to clarify the problem a bit. We've got what you've shown above already working - but we need to automate making this a default location/ to be able to remove the "Public Documents" location on C:\ so everything saves to the network not a local disk. ...But I don't believe this is possible in GPO? Cheers, Rich
April 26th, 2011 3:26am

Hi Arthur, Thanks for this - but I think I need to clarify the problem a bit. We've got what you've shown above already working - but we need to be able to remove the "Public Documents" location on C:\ so everything saves to the network not a local disk. ...But I don't believe this is possible in GPO? Cheers, Rich
Free Windows Admin Tool Kit Click here and download it now
April 26th, 2011 3:28am

Hi, As far as I know, there is no Group Policy can be used to remove the folders from library locations. But you can achieve it via scripts. For your reference, please refer to the following blog: Scripting Windows 7 Libraries http://blog.crayon.no/blogs/ragnar/archive/2009/09/02/scripting-windows-7-libraries.aspx If you encounter any difficulties when customizing the scripts, you may submit a new question in The Official Scripting Guys Forum! which is a best resource for scripting related issues. The Official Scripting Guys Forum! http://social.technet.microsoft.com/Forums/en/ITCG/threads Regards, Arthur Li TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com . Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
April 29th, 2011 4:24am

Hi, I would like to confirm what is the current situation? If there is anything that I can do for you, please do not hesitate to let me know, and I will be happy to help. Regards, Arthur Li TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com .Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 1st, 2011 9:50pm

Hi Arthur, Thanks for your help - I'm going to have a look at scripting this with one of our IT guys whose fairly clued up with his scripting and i'll let you know. Cheers, Rich
May 3rd, 2011 10:54am

Here's a complete MSDN Reference for Windows 7 Libraries and how they are constructed. http://msdn.microsoft.com/en-us/magazine/dd861346.aspx COPIED FROM MSDN The code creates a new library file in the Libraries folder. A library in Windows 7 is stored as an XML definition file that has a file extension of .library-ms. The file name is the actual name of the library. For example, the Documents Library is represented by an XML file called Documents.library-ms. Library descriptions are saved on disk in the %appdata%\Microsoft\Windows\Libraries folder (also known as FOLDERID_Libraries). Let's dig into the Documents Library definition file schema. The XML structure is pretty self-explanatory, but let's explain a few of its elements. As shown in Figure 8, at the top of the file we can find the Library "header" information: ENDING COPY FROM MSDN Follow the instructions on this site, you can then learn how to devise a powershell script that will generate the libraries that you would prefer in the domain. C:\Users\steve>cd %appdata%\microsoft\windows\libraries C:\Users\steve\AppData\Roaming\Microsoft\Windows\Libraries>dir /b (see the library-ms files - nothing but renamed XML files) Documents.library-ms Music.library-ms Pictures.library-ms Videos.library-ms C:\Users\steve\AppData\Roaming\Microsoft\Windows\Libraries>notepad.exe documents.library-ms <?xml version="1.0" encoding="UTF-8"?> <libraryDescription xmlns="http://schemas.microsoft.com/windows/2009/library"> <name>@shell32.dll,-34575</name> <ownerSID>OMMITTED</ownerSID> <version>4</version> <isLibraryPinned>true</isLibraryPinned> <iconReference>imageres.dll,-1002</iconReference> <templateInfo> <folderType>{7d49d726-3c21-4f05-99aa-fdc2c9474656}</folderType> </templateInfo> This chunk is the folders that are listed within a library. <searchConnectorDescriptionList> <searchConnectorDescription publisher="Microsoft" product="Windows"> <description>@shell32.dll,-34577</description> <isDefaultSaveLocation>true</isDefaultSaveLocation> <simpleLocation> <url>knownfolder:{FDD39AD0-238F-46AF-ADB4-6C85480369C7}</url> <serialized>Rediculous Long Serial Number</serialized> </simpleLocation> </searchConnectorDescription> <searchConnectorDescription publisher="Microsoft" product="Windows"> <description>@shell32.dll,-34579</description> <isDefaultNonOwnerSaveLocation>true</isDefaultNonOwnerSaveLocation> <simpleLocation> <url>knownfolder:{ED4824AF-DCE4-45A8-81E2-FC7965083634}</url> <serialized>Rediculous long serial number</serialized> </simpleLocation> </searchConnectorDescription> </searchConnectorDescriptionList> Ending of the Folder definitions chunk </libraryDescription> Steve Kline Microsoft Certified IT Professional: Server Administrator Microsoft Certified Technology Specialist: Active Directory, Network Infrastructure, Application Platform, Windows 7 Microsoft Certified Product Specialist & Network Product Specialist Red Hat Certified System Administrator This posting is "as is" without warranties and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2011 11:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics