Compare items between two instancesCompare content across Sitecore DB's programaticallyComparing a Sitecore instance with a vanilla oneGet list of Sitecore items updated by Specific UserGetting locked items SPEHow to get list view of items plus their linked items in powershell-extensions?Compare item versions with Sitecore PowerShell ExtensionBulk create Media ItemsArchive Sitecore items using Sitecore PowerShell ExtentionCompare two branches of a Sitecore content treeSitecore Powershell skip items in System FolderRemove duplicate items from an array of items

Would it have been possible to re-fuel the planes in the air?

Should I sign a NDA that holds me liable for legal fees even if I am in the right?

Convert logical combinations from Reduce to a usable function

Creating 2020 in the fewest number of steps

How to be ready for The Rise of Skywalker?

Moving into check for a draw as black, why is it illegal? Comparison to Racing Kings

Overcrowded German trains

To whom does "Madam Speaker" refer during the Trump impeachment debate?

Can I use Thaumaturgy to hide the effect of Detect Magic?

Affection vs. Affliction

Implementation gap in logistics

Help identifying 8 pin connector

UFW OpenSSH application port change?

Is one spouse responsible if other failed to file taxes

What is the best way to teach JavaScript functions to middle schoolers?

Sort-of Alexa clone using Python on a raspberry pi

How to understand "No she bludgering well won't!"

Corridor seats on the TGV — why? Are seat reservations not always mandatory?

Is the number of federal judges appointed by Trump unusual?

Forgot item in a hotel in Spain; hotel says I have to send a courier myself because they don't handle international shipments

Reuse a part of a tikz picture with savebox

How would sword design change if the aim was to cause as much immediate bleeding as possible?

Left-right non-bimodule examples

How scammy are cashback sites?



Compare items between two instances


Compare content across Sitecore DB's programaticallyComparing a Sitecore instance with a vanilla oneGet list of Sitecore items updated by Specific UserGetting locked items SPEHow to get list view of items plus their linked items in powershell-extensions?Compare item versions with Sitecore PowerShell ExtensionBulk create Media ItemsArchive Sitecore items using Sitecore PowerShell ExtentionCompare two branches of a Sitecore content treeSitecore Powershell skip items in System FolderRemove duplicate items from an array of items






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









6


















We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.



So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1



Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?










share|improve this question































    6


















    We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.



    So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1



    Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?










    share|improve this question



























      6













      6









      6


      1






      We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.



      So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1



      Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?










      share|improve this question














      We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.



      So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1



      Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?







      powershell-extensions content-migration






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 2 at 16:36









      MathewMathew

      887 bronze badges




      887 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          6



















          There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.



          Reports



          There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.



          Example filtering criteria[1]



          Comparing Instances



          The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.



          Clear-Host
          $watch = [System.Diagnostics.Stopwatch]::StartNew()

          $Username = "admin"
          $Password = "b"
          $Source = "https://abc.dev.local"
          $Destination = "https://123.dev.local"

          $localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
          $remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination


          $rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"

          $sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock "
          $itemIds
          -Raw

          $destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw

          $referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
          $differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)

          $queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
          Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject

          $watch.Stop()
          $totalSeconds = $watch.ElapsedMilliseconds / 1000
          Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow





          share|improve this answer
































            5



















            Welcome to Sitecore stackexchange.



            RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.



            Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.



            There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one






            share|improve this answer


























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "664"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );














              draft saved

              draft discarded
















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f22371%2fcompare-items-between-two-instances%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown


























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              6



















              There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.



              Reports



              There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.



              Example filtering criteria[1]



              Comparing Instances



              The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.



              Clear-Host
              $watch = [System.Diagnostics.Stopwatch]::StartNew()

              $Username = "admin"
              $Password = "b"
              $Source = "https://abc.dev.local"
              $Destination = "https://123.dev.local"

              $localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
              $remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination


              $rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"

              $sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock "
              $itemIds
              -Raw

              $destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw

              $referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
              $differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)

              $queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
              Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject

              $watch.Stop()
              $totalSeconds = $watch.ElapsedMilliseconds / 1000
              Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow





              share|improve this answer





























                6



















                There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.



                Reports



                There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.



                Example filtering criteria[1]



                Comparing Instances



                The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.



                Clear-Host
                $watch = [System.Diagnostics.Stopwatch]::StartNew()

                $Username = "admin"
                $Password = "b"
                $Source = "https://abc.dev.local"
                $Destination = "https://123.dev.local"

                $localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
                $remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination


                $rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"

                $sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock "
                $itemIds
                -Raw

                $destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw

                $referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
                $differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)

                $queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
                Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject

                $watch.Stop()
                $totalSeconds = $watch.ElapsedMilliseconds / 1000
                Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow





                share|improve this answer



























                  6















                  6











                  6









                  There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.



                  Reports



                  There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.



                  Example filtering criteria[1]



                  Comparing Instances



                  The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.



                  Clear-Host
                  $watch = [System.Diagnostics.Stopwatch]::StartNew()

                  $Username = "admin"
                  $Password = "b"
                  $Source = "https://abc.dev.local"
                  $Destination = "https://123.dev.local"

                  $localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
                  $remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination


                  $rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"

                  $sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock "
                  $itemIds
                  -Raw

                  $destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw

                  $referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
                  $differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)

                  $queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
                  Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject

                  $watch.Stop()
                  $totalSeconds = $watch.ElapsedMilliseconds / 1000
                  Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow





                  share|improve this answer














                  There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.



                  Reports



                  There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.



                  Example filtering criteria[1]



                  Comparing Instances



                  The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.



                  Clear-Host
                  $watch = [System.Diagnostics.Stopwatch]::StartNew()

                  $Username = "admin"
                  $Password = "b"
                  $Source = "https://abc.dev.local"
                  $Destination = "https://123.dev.local"

                  $localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
                  $remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination


                  $rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"

                  $sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock "
                  $itemIds
                  -Raw

                  $destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw

                  $referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
                  $differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)

                  $queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
                  Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject

                  $watch.Stop()
                  $totalSeconds = $watch.ElapsedMilliseconds / 1000
                  Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow






                  share|improve this answer













                  share|improve this answer




                  share|improve this answer










                  answered Oct 2 at 17:00









                  Michael WestMichael West

                  13.6k2 gold badges21 silver badges68 bronze badges




                  13.6k2 gold badges21 silver badges68 bronze badges


























                      5



















                      Welcome to Sitecore stackexchange.



                      RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.



                      Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.



                      There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one






                      share|improve this answer





























                        5



















                        Welcome to Sitecore stackexchange.



                        RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.



                        Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.



                        There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one






                        share|improve this answer



























                          5















                          5











                          5









                          Welcome to Sitecore stackexchange.



                          RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.



                          Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.



                          There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one






                          share|improve this answer














                          Welcome to Sitecore stackexchange.



                          RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.



                          Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.



                          There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one







                          share|improve this answer













                          share|improve this answer




                          share|improve this answer










                          answered Oct 2 at 16:50









                          Abhay DharAbhay Dhar

                          1,2615 silver badges23 bronze badges




                          1,2615 silver badges23 bronze badges































                              draft saved

                              draft discarded















































                              Thanks for contributing an answer to Sitecore Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f22371%2fcompare-items-between-two-instances%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown









                              Popular posts from this blog

                              Tamil (spriik) Luke uk diar | Nawigatjuun

                              Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                              Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?