Using powershell to move a sub-site tree to a new site collection

I have a case where I may need to move a subsite tree from one site collection to another existing site collection.
The information I have normally seen on the web talks about creating a new site collection when moving a subsite tree.
If I am going to an existing site, then can I still do the export and import or do I need to do something else.
The manage content option is not available to me - the publishing infrastructure is not turned on the source site collection and the ramifications of turning it on are too great.
I can use powershell to perform this move.
Another situation is that the destination site collection has the SP 2010 visual upgrade, but this subsite tree does not yet have that turned on. I presume that it would be best to turn it on before I move - is there a way via powershell to turn on the visual
upgrade for a subsite tree only? I don't want to turn it on the sibling trees at this time.

Okay, after more web research, I see examples where I have to create a destination site before I import to it.
So, here's what I tried.
Export-spweb -Identity
http://myfarm/sites/e/dprojects6/CC-Sharing/ -Path d:\temp\export_cc.bak -includeusersecurity –includeversions All –usesqlsnapshot
# What template is the site?
$web = get-spweb http://myfarm/sites/e/dprojects6/CC-Sharing/
Write-host “Web Template:” $web.WebTemplate ” | Web Template ID:” $web.WebTemplateID "| Web Configuration:" $web.Configuration
$tmp=$web.WebTemplate + "#" + $web.Configuration
write-host "template:" $tmp
New-SPWeb http://myfarm/sites/e/dprojects4/CC-Sharing -Template $tmp
import-spweb
http://myfarm/sites/e/dprojects4/CC-Sharing/ -Path d:\temp\export_cc.bak -includeUserSecurity
What I ended up with was the imported data at
http://myfarm/sites/e/dprojects4 instead of in
http://myfarm/sites/e/dprojects/4/CC-Sharing/ .
I am working on recovering things so I can try this again. It is not obvious to me what
I did to cause the results I had.
When I look in the import log I see:
[3/18/2014 7:30:14 AM] Progress: Starting content import.
[3/18/2014 7:30:14 AM] Progress: De-Serializing Objects to Database.
[3/18/2014 7:30:14 AM] [Web] [CC-Sharing] Progress: Importing
[3/18/2014 7:30:14 AM] [Web] [CC-Sharing] Verbose: Importing Web
http://myfarm/sites/e/dprojects4/CC-Sharing.
[3/18/2014 7:30:14 AM] [Folder] [] Progress: Importing
and yet when I went to
http://myfarm/sites/e/dprojects4/ I found the contents of CC-Sharing.
Does this kind of thing sound familiar to anyone?
Thank you all for your help.

Similar Messages

  • Can I set top site to not add new sites automatically?

    Can I set top site to not add new sites automatically? It is annoying to have to throw out sites I don't want to retain on my startup page.

    Your homepage is set in Safari > Preferences > General
    Everytime you visit a site in your TopSites, that refreshes the page automatically but there might be a workaround for you here >  How to manage Safari's Top Sites | Macworld

  • Why won't my edited photo move to facebook with story pasted on news site?

    If I use a non edited shot, it works. There is something that facebook needs from my saved photo. I have tried inputting 'public domain' in copyright section of print info--doesn't work. Could it be the format? I've tried saving as a baseline and progressive but still no luck.  The news site uses dlvr.it   Thanks for your ideas.

    The default location for the backups created by Lightroom on exit is in the same folder as the catalog itself (i.e. that would be on the same faulty drive). It is, however, possible to redirect those backups to a different destination, such as a different hard drive.....but only you know if you did that or not. Do you have any other backups, e.g. drive level backups?
    Just to be clear, if you are importing afresh into a new catalog from Raw files that do have XMP sidecar files, you should see the final edited state from the previous catalog, but you won't see the individual history steps that got you there (as that's one of the things that are not included when you write XMP data from within Lightroom). If there is no XMP sidecar, you'll just get the original OOC image.

  • Unable to apply a new site template to a new site collection's root web

    Hi folks,
    Using PowerShell I need to create a new site collection and add a new site template to its root web.  I've tried but failed...
    I created the site template from a team site that I modified and then saved it as a site template and saved the template to an WSP file (in the solutions gallery).
    I have tried both of the following methods but can't find the template to add to the root web of the site collection.  Help!!
    Method 1 - Create the site collection, deploy & install the template as a user solution, and apply the template
    I did the following, but it doesn't work because Get-SPWeb doesn't find it.  If I run Get-SPWeb with no parameters the list it returns doesn't include my template.  So site.GetWebTemplates includes it but Get-SPWebTemplate doesn't.
    # Create the site collection
    $site = New-SPSite $siteURL -OwnerAlias $owner -SecondaryOwnerAlias $secondOwner -name $studentName -Description $description
    # Deploy and install the template
    $wsp = Add-SPUserSolution -LiteralPath $wspPath -Site $siteURL
    $wsp = Install-SPUserSolution -Identity $wspIdentity -Site $siteURL
    # Assign the template.
    $loc= [System.Int32]::Parse(1033)
    $templates= $site.GetWebTemplates($loc)
    foreach ($child in $templates)
    Write-Host $child.Name
    If ($child.Name.EndsWith("ABC")
    # the name of the template that I added ends in "ABC" - when this script runs I the name of my
    #added template displays as "{longGUID}#1ABC"
    $template = $child
    $templateID = $child.Name
    $template = Get-SPWebTemplate $templateID
    # regardless of whether I assign $template above or here the Set-SP_Web assignment below fails
    $web = Get-SPWeb $siteURL
    $web | Set-SPWeb 
    -Template $template
    Method 2 - Deploy and install the template as a farm solution, create the site collection, and apply the template
    I did the following.  After I did the first section (deploy and install the solution to the farm) I was able to go to "Manage Farm Solutions" in CA and it was listed there, but neither
    site.GetWebTemplates nor Get-SPWebTemplate included the site template in their list of templates.
    # Deploy and install the solution to the farm
    $template = Add-SPSolution -LiteralPath "C:\SharePoint\Student Site.wsp"
    $template | Install-SPSolution
    Do {Start-Sleep 2 } while (!((Get-SPSolution $template).Deployed))
    # Create the site collection
    $site = New-SPSite $siteURL -OwnerAlias $owner -SecondaryOwnerAlias $secondOwner -name $studentName -Description $description
    # Assign the template.
    $loc= [System.Int32]::Parse(1033)
    $templates= $site.GetWebTemplates($loc)
    foreach ($child in $templates)
            Write-Host $child.Name
            If ($child.Name.EndsWith("ABC")
    # the name of the template that I added ends in "ABC" - when this script runs I the name of my
    #added template displays as "{longGUID}#1ABC"
                            $template = $child
                            $templateID = $child.Name
    $template = Get-SPWebTemplate $templateID
    # regardless of whether I assign $template above or here the Set-SP_Web assignment below fails
    $web = Get-SPWeb $siteURL
    $web | Set-SPWeb
    -Template $template
    David

    Out of curiosity, are you able to create a site within a site collection using this template? That is, can you create a site that is not the root site (e.g. http://sharepoint/sitecollection/Web)?
    Jason Warren
    Infrastructure Specialist
    Habanero Consulting Group
    habaneroconsulting.com/blog

  • Dreamweaver CS3 - Cannot create root and image folder in Site Management. (Create New Site)

    Good day everyone,
    I am not able to create folders for a new site in Dreamweaver CS3.
    This is the problem:
    I open Dreamweaver
    I go to site and click on create new site
    In the new site panel I name the site eg: Test Site
    Then I click on the browse folder to attached a root folder and image folder for the site
    This is where the problem starts, when I browse to the folders, Dreamweaver does not keep the location/path.
    Like this: My folder is created in the following directory.
    C:\xampp\htdocs\my_site_folder
    So when I browse to this folder and click save
    the path does not stay in Dreamweaver, all the stays is this.
    C:\xampp\htdocs\
    The site name does not remain.
    I cannot get Dreamweaver to hold the path.
    Same for the image folder.
    I noticed this started to happened after I updated Vista to Service pack 2.
    I have never seen this happen before.
    Anyone have any ideas?
    Thanks.
    Patrick

    You'll see the anser to this here:
    http://forums.adobe.com/thread/478132?tstart=60
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Using Powershell to Move & Rename a File

    I was wondering if there is a powershell script I could run as a scheduled task that will perform the following:
    Move file from "C:\Program Files (x86)\NCSOFT\Aion\Chat.log"
    To "C:\Users\Longstone\Documents\Aion Logs\Chat Log"
    Rename the Chat.log in the new location to yearmonth.log (e.x.200910) or any similar descriptive name
    Thanks in advance.

    Hi Nick,
    The { } indicate a string formatting placeholder, and the 0 means the first placeholder. The -f is PowerShell's format operator, and the get-date cmdlet returns the current date. The get-date cmdlet is enclosed in ( ) in order to make PowerShell evaluate it
    as an expression.
    Since you are new to PowerShell, I recommend two books: Windows PowerShell in Action by Bruce Payette and
    Windows PowerShell Cookbook by Lee Holmes.
    HTH,
    Bill
    Hey AbqBill,
    How do you run this from the command line?
    I've tried this in a batch file:
    powershell move-item "\\NetworkLocation\ST\Backup.rar" ("\\NetworkLocation\ST\{0:yyyy_MM_dd}.rar" -f (Get-Date))
    and it does not work, returns the error:
    Unexpected token ':yyyy_MM_dd' in expression or statement.
    At line:1 char:140
    + move-item \\NetworkLocation\ST\Backup.rar (\\NetworkLocation\ST\{0:yyyy_MM_dd <<<< }.rar -f (G
    et-Date))
        + CategoryInfo          : ParserError: (:yyyy_MM_dd:String) [], ParentCont
       ainsErrorRecordException
        + FullyQualifiedErrorId : UnexpectedToken
    ====================================================================
    What am I doing wrong? or missing?
    Thanks

  • After closing an Applet, how can I say a HTML/JSP Site to load a new site?

    Hi!
    I have a problem. I�m writting a little chat, and after qutting I want to say my HTML/JSP site to load or go further to another page.
    This is possible because a saw this already, but i didn�t got the way how!
    Thnx
    Ren�

    Hi,
    I assume you mean with "after quitting" pressing the Quit button.
    Your JSP can use the forward-statement to move to another JSP or HTML. You can find it on Suns
    JSP-Syntax Card.
    I hope I could help you
    Frank Rettweiler

  • How do I link all site pages to a new site page?

    Hello,
          I'm using Dreamweaver cs4 on a windows pc. I have 12 pages in my site with a vertical spry navigation bar. Each time I create a new page I then add that to the spry navigation bar. All the other pages don't show that new page in the nav bar. So, the spry nav. needs to be update site wide. Is there a way to update the spry navigation bar site wide in just a few clicks? Is there an easy way to link all the other page back to that new page? I have a template made but all my site pages are now detached from that template. Everytime I saved the template as a html file to create a new page the navigation bar had the word template in it so I just deleted it out of the code. As you can probably tell I'm pretty new to dreamweaver so any help will be greatly appreciated to say the least. I've checked pretty much everywhere I can think of for the answer
    Thank you for taking the time to help, dluthier

    Is there a way to update the spry navigation bar site wide in just a few clicks? Is there an easy way to link all the other page back to that new page?
    Yes, there are ways to have all the pages update when you make changes to a navbar.  However, the way you describe the situation, you currently have to do it all manually.
    Easiest way to update a navigation bar:
    1.  The use of serverside includes  -  here's a basic tutorial explaining what a SSI is and how it's done.
    http://bignosebird.com/ssi.shtml
    2.  The other is the use of templates - which you've tried.
    I have a template made but all my site pages are now detached from that template. Everytime I saved the template as a html file to create a new page the navigation bar had the word template in it so I just deleted it out of the code
    That's where you went wrong, you don't save the template with a new name and save it as a html file.  You need use:  Create New>from Template.  This way you create a new page from the master template and save it into the root of your site - and this is called a 'child page'.
    Using DW Templates:
    http://www.adobe.com/devnet/dreamweaver/templates.html
    The differences between using SSIs and DWTs (template file):
    With a SSI file, you make changes to the file and all pages with the include will will update automatically and you only need to upload the one SSI whenever you make a page.
    If using a template, whenever you make a change, again all child pages are updated, but you have to upload *all* the changed pages.
    Hope this helps.
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://twitter.com/nadiap
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/

  • Redirect from page within one site to an entirely new site?

    Hi folks,
    I have created a new website: http://wakatipucollection.co.nz as a replacement for a page I had been hosting at http://arrowmark.co.nz/clients
    At the Arrowmark site I have updated the menu bar and text links to take visitors to the new stand alone site but I still have collateral out there, including business cards and QR codes, that use the old arrowmark/clients address.
    I have inserted an iframe into the old page so that visitors see the same information as at wakatipucollection but it's not really ideal and I don't like its appearance.
    Is there any way to apply a redirection to just one page in a site to another site altogether? Or if not, is anyone able to suggest a workaround that is more attractive that this iframe?
    Thanks in advance for advice,
    Jo

    BoppyW wrote:
    Thanks for replying.
    arrowmark.co.nz/clients is not in a separate folder - all of my pages are in the root directory. Do I HAVE to create a separate folder for the page for this to work?
    Also, how would I know if the host is verified?
    The php solution will pose a bit of a problem as all the links/images in the page you are tring to 'get' will need to be absolute path links - http://wakatipucollection.co.nz/images/lake-hayes-panorama-2012.jpg - any scripts you'll need to use the absolute url as well:
    <script src="http://wakatipucollection.co.nz/SpryAssets/SpryEffects.js" type="text/javascript"></script> and any css links.
    You can change all those and it should work.
    The other possible way would be to use your htaccess file if you have one!
    Insert the following which should redirect anyone who accesses your old site to your new one.
    redirect 301 http://arrowmark.co.nz/index.html http://wakatipucollection.co.nz/index.html
    However the branding wont be preserved but can't you just add a subtle logo or something at the top of the page saying 'formerly Arrowmark' I mean who looks at the url address bar?

  • List of question to ask to business as a Site Developer for the new site creation or enhancement ?

    Hi,
    Please help ?
    Thanks
    srabon

    Hi srabon,
    As I understand you are about to create site as developer, I find some references relevant for you:
    https://msdn.microsoft.com/en-us/library/ee231576.aspx
    https://msdn.microsoft.com/en-us/library/ee231568.aspx
    http://blogs.msdn.com/b/kaevans/archive/2013/10/24/what-every-developer-needs-to-know-about-sharepoint-apps-csom-and-anonymous-publishing-sites.aspx
    If you have specific question, please create new threads and provide more detail information.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I hide "Taxonomy Catch All Column" without using PowerShell?

    After having moved some files around, I find that my view and edit properties forms include the field "Taxonomy Catch All Column" and the field IDs which are just going to be confusing gobbledegook to my end users.
    I can't seem to find a way to get rid of it. I can't delete it and I can't see where to hide it. Searches only seem to turn up PowerShell script solutions, and I can't use PowerShell.
    It's SharePoint 2010 Server, I'm a site admin and I can use SharePoint Designer, but not powershell, no server access, no central admin access.
    Can anyone help please?

    Hi,
    For your issue, it seems to be related to use Content & Structure. 
    If you choose to move content that contains managed metadata columns (or presumably enterprise keywords), the Taxonomy Catch All column shows up after you use the "Content and structure" tool. It shows up as a column in the library and is visible
    in "Edit Properties" on every document.
    Why are you can’t use power shell? It is convenient to solve your problem with power shell.
    Here is a similar post, you can use as a reference:
    https://social.msdn.microsoft.com/Forums/en-US/896cea1d-dc40-47f1-80f4-7a01f2d23fd9/what-is-the-significance-of-taxonomy-catch-all-column-lookup-column
    http://blogs.c5insight.com/Home/tabid/40/entryid/385/Why-Do-Hidden-Taxonomy-Catch-All-Columns-Become-Visible.aspx
    Besides, here is an article, you can have a look at:
    http://www.andrewconnell.com/sharepoint-2010-managed-metadata-in-depth-look-into-the-taxonomy-parts
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Creating a new site has become more obscure....

    So, on one of our site collections, I needed to activate the publishing features so that some navigation mentions that were available in sp 2007 worked under the new sp 2010 ribbon.
    That seemed harmless enough.
    Today, however, a site admin contacted me asking why they could not find where to create a site.
    Before that feature was activated, site actions > create a new site was available. Also, when one within a site's all site content clicked on Create, sites was one of the categories that could be selected.
    Now however sites are no longer available there.  The only place I could find to use for creating a site was to go to site actions > site settings > sites and workspaces and to click create there. Then we go to the old SP 2007ish create a site
    page.
    Is this the way this should work? Or is it acting this way because I did not turn on the publishing features on the sites (because we don't want all the "check out, change, check in, publish" workflow-ish actions).

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Why adobe has not issued an update!!!.
    Agreed. I'm disappointed that no patch has yet been issued. Hope we don't have to go on explaining this for the next 12 months.

  • How do I make new site go live?

    Hello, I hope somebody can help me out with this.
    My client's site is hosted by and developed in Business Catalyst. They wanted changes and improvements made to the site and these were done on a new build that is now sitting ready to go in the Trial Sites section. What I would like to know is, what is the proceedure for turning off the existing site and replacing it with the new site? Is it a case of deleting the existing live (paid for) site and upgrading the new site to a paid plan? I feel that this isn't the correct thing to do.
    Any help with this would be greatly appreciated.
    Thanks in advance
    Grant

    Liam read the subject line of your forum thread and immediately formed his own conclusion.  He should have read more to understand your situation.
    Unfortunately, one of the harder development workflows for BC is a redesign.  In order to test ecommerce and some other elements without impacting your original site requires that you create a new site, but there is no merging involved officially on BC's end.  What you'll really need to do is make sure everything is in working order and then copy your /Templates folder and any other folders you need in /Layouts or /_System to your local directory and re-upload those new assets (styles, images, layouts, templates) to your old website and then change the default template in the BC Admin area to your new template.
    There is one other major obstacle, though.  If you used heavy BC modules and such in your redesign, each of those are unique to your new trial site.  If you are using content holder modules or showing specific catalogs in ecommerce in your markup, when you copy those pages/templates to your old site the ID's for the data will be for your trial site and won't work on the old one so before updating your templates on the enw site you'll need to replicate all your modules on the old site first by hand I guess and reinsert the module codes after you've uploaded new pages/templates.
    I don't think there's an official way to merge just modules, catalogs, templates and pages into an old site, but your new trial site redesign is really just missing the CRM and Traffic data from your old site. IF you are a paid partner, open a support ticket and see if they can merge your old customer data and reporting to your new trial site.  That would be the easiest thing if they can even do that.

  • New Site published w/out losing old sites?

    I have 2 really important business sites that I've created on iweb but have them hosted with godaddy. All of my sites are saved to a folder on my desktop and have never been published through iweb. I would like to create a new site and publish that through iweb. Can I separate them and publish this new site without losing control of the others and their folder access for my godaddy account? I need to keep the business sites on iweb so I can do any editing that comes along. Right now on my iweb screen it has all the sites listed including the new site.

    Refer to this page.....
    http://iwebfaq.org/site/iWebMultiplewebsites.html
    Make sure you backup your domain file(s)....
    http://iwebfaq.org/site/iWebBackupretrieve.html

  • Pheedo is on every site I try to open and am not able to open any news sites. Why?

    when I click on a site such as any news site the address bar starts out https://http://pheedo.msnbc.msn.com/click.phdo?i=e85b8063ae0ed8fe00f617e4ba711650 This copied from a site I tried to open. Just had my computer cleared of all virus.

    I am on Windows, but have a few saved Mac discussions that may help (or, may not... but free to read)
    Mac and Root User http://forums.adobe.com/thread/879931
    -and http://forums.adobe.com/thread/940869?tstart=0
    Troubleshooting guide for Mac freeze
    http://helpx.adobe.com/x-productkb/global/troubleshoot-system-errors-freezes-mac.html

Maybe you are looking for

  • TDS at concessional rate

    Hi I have created a WHT code with 10%. But some vendor have given certificate for lower rate of WHT i.e. 2.5% So how this can be configured in SAP without creating new WHT type and WHT code. Is there any configuration by which i can use WHT code with

  • Email server settings

    Hi, I have a Blackberry Pearl 8130 that used to be used to access our county school system's email account. My wife entered some information into the Blackberry 2 years ago, and it apprently did some sort of an auto-config for the email account. She

  • Tooltips conrinued

    I have followed what I believe are the directions for adding a tooltip to an image (in this case in the A Master), by right-clicking on the image and insertinf text for the tooltip and the alternative text, but it doesn't seem to work in Preview or i

  • Reinstall OS9.2.1 on Powerbook G4

    Help! I have a powerbook G4 that I got for my kids to run their favorite programs. I also purchased a Mac OS 9 start up disk. It tells me to hold down the C key to start up from the disk. I have tried this several times without success. My C key work

  • Adobe flash no longer working

    I updated both Java and downloaded the latest version of adobe flash but still getting this message: "Application Blocked by Security Settings Name: eViewer Location:  Http://photos.cottages4your.co.uk Your securtity settings have blocked an untruste