<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Scripts for updating Map services from 10.1 to 10.2 AGServer in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/scripts-for-updating-map-services-from-10-1-to-10/m-p/687902#M26335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There, Here is my scenario: I have large number of map services (100+) within current production environment (10.1) that I need to migrate to the new server environment for 10.2. As part of upgrade, new ArcGIS Server 10.2 wil be hosted on a new server. I wanted to know if there is way to script/automate publishing of map services? Thanks Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 21:03:36 GMT</pubDate>
    <dc:creator>jayshukla</dc:creator>
    <dc:date>2014-03-19T21:03:36Z</dc:date>
    <item>
      <title>Scripts for updating Map services from 10.1 to 10.2 AGServer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/scripts-for-updating-map-services-from-10-1-to-10/m-p/687902#M26335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There, Here is my scenario: I have large number of map services (100+) within current production environment (10.1) that I need to migrate to the new server environment for 10.2. As part of upgrade, new ArcGIS Server 10.2 wil be hosted on a new server. I wanted to know if there is way to script/automate publishing of map services? Thanks Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 21:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/scripts-for-updating-map-services-from-10-1-to-10/m-p/687902#M26335</guid>
      <dc:creator>jayshukla</dc:creator>
      <dc:date>2014-03-19T21:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts for updating Map services from 10.1 to 10.2 AGServer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/scripts-for-updating-map-services-from-10-1-to-10/m-p/687903#M26336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are a few resources on the help site regarding automating publishing services:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Publish_a_map_service_from_a_map_document_MXD/0154000005qr000000/" rel="nofollow" target="_blank"&gt;Publishing from a map document&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Publish_service_definitions_listed_in_a_text_file/01540000061r000000/" rel="nofollow" target="_blank"&gt;Publishing from a text file&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you publish to ArcGIS Server, an MXD and MSD are placed in the arcgisinput folder within the site, Ex. C:\arcgisserver\directories\arcgissystem\arcgisinput.&amp;nbsp; What you can do is loop through this directory for the mxd's and then publish them to your other ArcGIS Server site.&amp;nbsp; The thing to make sure of here, though is that all data workspaces in the old server site are registered with the new server site.&amp;nbsp; Attached is a script tool and script I wrote a bit ago to write the workspaces of mxd's in a directory to a file.&amp;nbsp; This can be used to check the workspaces of all the mxd's you have published and register them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can also do is loop through the directory as described above, and follow the documentation below to register data sources at publish time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Register_a_data_folder_at_publish_time/015400000611000000/" rel="nofollow" target="_blank"&gt;Register a data folder at publish time&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The main thing is to make sure your data sources are registered correctly in your new server if you're going to automate this process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 21:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/scripts-for-updating-map-services-from-10-1-to-10/m-p/687903#M26336</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2014-03-19T21:52:27Z</dc:date>
    </item>
  </channel>
</rss>

