Hi Paul It's the ID of the managed metadata service application.
Below is some documentation I wrote for a client who does not have strong PowerShell skills so it's a bit laborious (note the pre-reqs at the end) PS C:\Users\SP_Admin> Get-SPServiceApplication DisplayName TypeName Id ----------- -------- -- Secure Store Serv... Secure Store Serv... 8a9ad845-241e-40e0-a2cb-c5fa09ddb479 State Service App... State Service 833e41ed-9574-4f6b-978b-787a087735e1 Managed Metadata ... Managed Metadata ... 479cd8d7-af32-4f85-adb1-9cdd858ed3e6 Web Analytics Ser... Web Analytics Ser... 4b54f5d4-2148-4cbf-ad24-b1e49b0eb7e5 Search Service Ap... Search Service Ap... a3434173-fc5d-464d-a05c-aeda41d4959f * Create a PowerShell object bound to the managed metadata service application ID. PS C:\Users\SP_Admin> $mms = Get-SPServiceApplication -Identity 479cd8d7-af32-4f85-adb1-9cdd858ed3e6 * Confirm that the correct service application is selected by examining the properties of the object. Confirm the service type is "Managed Metadata Service" PS C:\Users\SP_Admin> $mms.DisplayName Managed Metadata Service Application PS C:\Users\sp_admin> $mms.TypeName Managed Metadata Service * Using PowerShell, determine the ID of the managed metadata service application proxy (note the matching service application is marked in bold). The GUID listed in the ID column is the important bit PS C:\temp> Get-SPServiceApplicationProxy DisplayName TypeName Id ----------- -------- -- Business Data Con... Business Data Con... a3237d54-00f9-4ba3-8544-cb020ae1d8b5 State Service App... State Service Proxy 24f87eba-85af-4938-98f4-3002ff0da95b Managed Metadata ... Managed Metadata ... 373ad4c0-cdd2-4db8-9dd8-a0c5c8d1df41 Secure Store Serv... Secure Store Serv... 7ac50f4f-addc-466e-a695-9a37890058f5 WSS_UsageApplication Usage and Health ... c8de2c82-8ae5-41ab-bf58-9724c48776d5 * Create an object bound to the managed metadata service application proxy. PS C:\Users\SP_Admin> $mmp = Get-SPServiceApplicationProxy -Identity 373ad4c0-cdd2-4db8-9dd8-a0c5c8d1df41 * Confirm that the correct service application proxy is selected by examining the properties of the object. Confirm the service type is "Managed Metadata Service Connection" PS C:\temp> $mmp.DisplayName Managed Metadata Service Application PS C:\temp> $mmp.TypeName Managed Metadata Service Connection * Export the current Managed metadata term store to the UNC path specified in step 1, utilising the service application object and service application proxy object created in steps 3 and 6. Export-SPMetadataWebServicePartitionData -Identity $mms.id -ServiceProxy $mmp -Path \\server\share\termstore.bak<file:///\\server\share\termstore.bak> Also make sure you ensure these pre-requisites: * This method can only be used by an account with local administration access to the entire farm (eg AD\svcsp-admin) * The backup of the term store must be a UNC path (eg "\\dcsep01db\SharePointBackup") that resides on the SQL Server for the SharePoint farm * The services account (svcsp-services-[instance]) requires modify permission to the backup file share (\\DCSEP01DB\SharePointBackup<file:///\\DCSEP01DB\SharePointBackup>) * Ensure that for restore, the services account (svcsp-services-[instance]) is temporarily granted bulk import rights on SQL Server which it does not have by default. From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Paul Noone Sent: Monday, 5 May 2014 9:47 AM To: ozMOSS Subject: Export/Import Managed Metadata Hi all, Has anyone had any experience performing this using the import/export SPMetaDataWebServicePartitionData functions? I'm preparing to run an export but am thoroughly confused by the -Identity parameter. The TechNet reference<http://technet.microsoft.com/en-us/library/ff607847(v=office.15).aspx> for this function says this should be the ID or Name of the site subscription to export. Online examples say it's the tsid value from the URL of the Term Store Tool. This is not the GUID for MMS app but the value of its ManageLink.Url property. Is this correct?? I'm wanting to export the entire term store in the hope that this will bring across the site-scoped ones as well, which I apparently then have to re-link. Regards, Paul The content of this email is confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed to, or used by, anyone other than this addressee, nor may it be copied in any way. If received in error, please contact the author and then delete the message from your system. Please note that neither Keller Australia nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). Visit http://www.keller.com.au/ for more information. ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________
_______________________________________________ Sponsored by Infotext - Amazing Search for Microsoft SharePoint - http://www.infotext.com/ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss