Migrating on premise site collections to SharePoint online using powershell

Hi folks,
Intention:-migrating on premise site collection to SharePoint online.
Is there any power-shell script or list availabe products.
Please give idea and let me know that script.
Thanks,

Hi Jio333,
This issue has been discussed in Sharepoint forum:
SharePoint 2013 - Migrate
from SharePoint 2013 On Premise to SharePoint 2013 Cloud      
To complete this kind of Migration task, we usually use 3rd party tools because they have some complex migration requirements.
If there is anything else regarding this issue, please feel free to post back.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Configure site auditing in sharepoint online using powershell or Client object model

    Is the any way to configure site collection audit settings in sharepoint online programmatically or using powershell.

    Hi Bhism,
    The solution given in the article is for sharepoint 2010, i want to enable site auditing in Sharepoint 2013.
    When i tried using that for sharepoint 2013 making he neccessary changes required for sharepoint 2013 i got an error :
    Unable to find type [Microsoft.SharePoint.SPAuditMaskType]: make sure that the
    assembly containing this type is loaded.
    I think the assembly is for SP2010, is there anything like that for SP2013
    Thanks in Advance.

  • Building Site Collections in SharePoint Online

    Hello all,
    Please forgive me for this very basic question, but I was not able to find the info online. 
    Background info: I have a great deal of experience with SharePoint administration on-prem but not much experience with SharePoint Online. My current organization has O365 and wants to build a collaboration environment and an Intranet. I understand the information
    architecture practices that would have been common for this for an on-prem environment, and I understand that those have changed with 2013 and SharePoint Online due to the new practice of organizing everything under one web app. 
    Between reading some articles and using my experience with on-prem, I am trying to design an organized information architecture that will facilitate both environments and the permissions structures they require. My tentative plan was to build one site collection
    for the Intranet under https://mycompany.sharepoint.com/sites (under which subsites would be built for various Intranet divisions), and then a number of individual site collections for the collaboration environment under https://mycompany.sharepoint.com/teams
    (/hr, /finance, etc., so that content owners and users could work in their own site collection without affecting a site collection belonging to someone else). 
    This is the article that initially caused me to believe that this is possible/a good idea: http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/09/01/sharepoint-online-information-architecture-considerations.aspx. 
    "For [managed paths] you get the root, /search (explicit managed path), /sites (wildcard managed path), and /teams (wildcard managed path)."
    However this article leads me to believe that I will not be allowed to create any site collections at all, only subsites: https://support.office.com/en-us/article/Plan-sites-and-manage-users-8e568d8d-3d65-42c4-99fa-f7285c9db842. 
    "You cannot create additional site collections in SharePoint Online for Office 365 for Small Business."
    I understand the answer to this may depend on what version of O365 we have, and I am working to find that out. 
    My understanding is that I cannot be made a SharePoint Online administrator without being a global O365 administrator: http://blogs.technet.com/b/lystavlen/archive/2012/06/14/understanding-the-administrator-role-in-sharepoint-online.aspx.
    "You cannot separate the roles of Office 365 global administrator and SharePoint Online Administrator." 
    Thus, I don't currently have the level of access I need to browse around the administration area and find the answers to my questions that way. When the time comes, I will likely be given temporary access or will be working with an O365 global administrator
    to build.
    Main question: Will I be allowed to build site collections under managed paths?
    Larger question: How are others managing the information architecture for an Intranet and a Collaboration environment in SharePoint Online, especially if the answer to the prior question is no?
    Thanks in advance for any insight you can offer. 
    Shae

    Hi,
    According to the error message, the Microsoft.Online.SharePoint.Client.Tenant.dll seems not been loaded.
    You can find it in the path below:
    C:\Program Files\SharePoint Client Components\Assemblies
    A code snippet about how to retrieve a list of site collections in a tenant for your reference:
    const string username = "[email protected]";
    const string password = "password";
    const string tenantAdminUrl = "https://yourdomain-admin.sharepoint.com/";
    var securedPassword = new SecureString();
    foreach (var c in password.ToCharArray()) securedPassword.AppendChar(c);
    var credentials = new SharePointOnlineCredentials(username, securedPassword);
    using (var context = new ClientContext(tenantAdminUrl))
    context.Credentials = credentials;
    var tenant = new Tenant(context);
    SPOSitePropertiesEnumerable spp = tenant.GetSiteProperties(0, true);
    context.Load(spp);
    context.ExecuteQuery();
    foreach (SiteProperties sp in spp)
    Console.WriteLine(sp.Title);
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Backup - Restore process of a Site Collection in SharePoint Online

    Hi, I have a couple of questions. 
    1) What do I have to do to get a backup-restore of a site collection in SharePoint Online? 
    2) Can I myself perform a backup-restore or just backup a site collection without using any 3rd party tool?
    Any inputs on these will be helpful. Thanks in advance!

    Hi,
    what you can instead of backup and restore site is to save it as template, check this thread
    http://community.office365.com/en-us/f/154/t/203139.aspx
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Using microsoft.sharepoint.client.search.analytics to report the monthly hit count of site collections on SharePoint Online

    Is it possible to use microsoft.sharepoint.client.search.analytics to report the monthly hit count of site collections on SharePoint Online.
    GetHitCountForDay()
    GetHitCountForMonth()
    If yes, how can this be called and executed successfully from a Console application using the Client Object Model.
    Reference:
    http://download.microsoft.com/download/8/5/8/858F2155-D48D-4C68-9205-29460FD7698F/[MS-SPACSOM].pdf
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/54310f5f-e8a3-469e-86a3-63781b91670d/how-to-get-analytics-reports-programmatically-in-sharepoint-2013?forum=sharepointdevelopment

    Check if this works in 2013 as well.
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2012/10/04/how-to-retrieve-web-analytics-report-data-using-api.aspx
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Authoring and Publishing site collection in SharePoint Online

    Hi ,
    Can we have multiple authoring and publishing site collection in SharePoint Online?
    Thanks, Kaviya (Please remember to click “Mark as Answer” on the post that helps you)

    Yes you can use SharePoint 2013 cross-site publishing feature in SharePoint Online to support 1:1 and 1:n set up of authoring : publishing site-collections in SharePoint Online. The catch is that it all needs to be within same tenant.
    http://technet.microsoft.com/en-us/library/jj635883(v=office.15).aspx
    http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/04/01/cross-site-publishing-alternatives-in-sharepoint-online-office-365.aspx
    Please mark the replies as answers if they help or unmark if not.

  • Issue removing a site collection from Sharepoint Online

    A sharepoint site owner deleted their site by going to site settings delete this site.  This didn't remove the site collection from the Sharepoint Online admin portal in Office 365.  When I attempt to delete here I get the following error "
    Sorry, something went wrong
    There is no site in the current site subscription matching the HiddenSiteSelection control's value.
    I've tried running using Powershell commands to delete the site and I get an error.  
    What do I need to do to remove the site from the admin portal.
    Thanks

    HI,i would recommend  run the PowerShell cmdlet to check if this website exists. Here are the detailed steps:
    1. Set up the SharePoint Online Management Shell Windows PowerShell environment
    http://technet.microsoft.com/en-us/library/fp161372.aspx
    2. Run the command Get-SPOSite, it will return all site collections.
    3. Check if the problematic public site collection is shown in the result. If it shows up, run another command to remove it. For example:
    Remove-SPOSite -Identity https://expertsharepoint/sites/site1 -NoWait
    This will remove the site collection named https://expertsharepoint/sites/site1 from the site collections list and moves it to the Recycle Bin.
    4. Delete the site from the Recycle Bin:
    Remove-SPODeletedSite -Identity https://expertsharepoint/sites/site1
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Is there any REST API to get all the Site and site Collections from Sharepoint Online

    Hi,
    I have one SharePoint Online tenant. We are using REST API to integrate SharePoint to our internal System.
    For my use case I need to get all the SharePoint sites ans Sitecollections. From each SiteCollection I need all the subsites under this.
    I have used below REST Query
    http://<Base site url>/_api/web
    This doesn't give me all the Site collections
    Could any one please give me some way to get all the Site collections and sites from my sharepoint tenant through REST API.
    Thanks,

    Hi Abhiram,
    There seems no such endpoint in SharePoint REST API can retrieve a list of site collections in a SharePoint Online tenant:
    https://msdn.microsoft.com/en-us/library/office/jj860569.aspx#Reference
    If Client Object Model can be an option for you, you can use Tenant object to achieve what you want:
    http://social.technet.microsoft.com/wiki/contents/articles/24050.perform-basic-admin-operations-using-csom-in-sharepoint-online.aspx#Scenario_3_Fetch_All_Site_Collections
    Anyway, I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the future version of REST API of Office 365 SharePoint
    Online:
    http://officespdev.uservoice.com/
    It
    is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft
    Product Team will take it into consideration when designing the next version in the future.
    Thanks 
    Patrick Liang
    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]

  • Having trouble uploading sub folders to Sharepoint online using PowerShell

    Hi there,
    I have been attempting to upload folders and files to a document library on Sharepoint Online. I can upload the top-level folder and the files in that folder but when i comes to the sub folders i get this message: 
    New-Object : Exception calling ".ctor" with "2" argument(s): "Access to the path 
    'C:\FilePath\TestFolder\TestFolder1' is denied."
    At C:\FilePath\ImportFiles_Test1.ps1:54 char:29
    +               $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.F ...
    +                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
        + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
    I'm running as an Administrator so I have full access to the folders
    here's my code so far
    #Specify tenant admin and site URL
    $User = "[email protected]"
    $SiteURL = "https://company.sharepoint.com/sites/TestSite"
    $Folder = "C:\Users\user\Documents\SharepointTestFolder"
    $DocLibName = "Admin"
    #Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
    $Password = Read-Host -Prompt "Please enter your password" -AsSecureString
    #Bind to site collection
    $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
    $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
    $Context.Credentials = $Creds
    #Retrieve list
    $List = $Context.Web.Lists.GetByTitle($DocLibName)
    $Context.Load($List)
    $Context.ExecuteQuery()
    Function ImportFiles()
    #Get name of folder
    $NewFolder = Split-Path $Folder -Leaf
    #upload folder to sharepoint
    $UploadFolder = $List.RootFolder.Folders.Add($NewFolder) #this may not upload folders within folders.
    $Context.Load($UploadFolder)
    $Context.ExecuteQuery()
    $FilesInFolder = Get-ChildItem $Folder | ? {$_.PsIsContainer -eq $False}
    #Loop Through Folder
    Foreach ($File in (dir $Folder))
    #If file
    If($File)
    #Upload file to Sharepoint
    $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.FileMode]::Open)
    $FileCreationInfo = New-Object Microsoft.SharePoint.Client.FileCreationInformation
    $FileCreationInfo.Overwrite = $true
    $FileCreationInfo.ContentStream = $FileStream
    $FileCreationInfo.URL = $File
    $Upload = $UploadFolder.Files.Add($FileCreationInfo)
    $Context.Load($Upload)
    $Context.ExecuteQuery()
    Else
    recurse ImportFiles
    ImportFiles
    If anyone could help me I'd be so grateful!!
    Thanks!!
    Dearbhla Bradley

    The exception is pretty clear. for some reason the script is not able to open the folder TestFolder1 on the local hard drive.
    I noticed in the script you have specified the $Folder variable to be "C:\Users\user\Documents\SharepointTestFolder" while the exception is for "C:\FilePath\TestFolder\TestFolder1"
    Will you please help me understand this difference?
    Also, sorry I'm not familiar with the "recurse" calling method. I'm suspecting you're telling it to call the ImportFiles() function again, though if this is the case it looks to me that it's reusing the same $Folder variable that was defined at the start,
    rather than using the folder object you have just identified.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • How can I get a list of OOB Site from a SharePoint WebApplication using Powershell Script

    Hi,
    Could anybody help on this?
    Thanks,
    Srabon
    srabon

    You can include the WebTemplate parameter in the select, from that you will get the template ID for all sites.
    I am sure you know the custom template IDs then just filter / use if else to get the desired results.
    check this blog, track inventory session.
    http://sharepointpromag.com/sharepoint-2010/inventorying-sharepoint-using-powershell
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Download RSS feed as xml file from Sharepoint Online using PowerShell

    Hello
    Our company sharepoint (Office 365) contains also several RSS feeds.
    How it is possible to download xml file out of this feed (website) using PowerShell?
    I can authenticate with sharepoint using CSOM but do not what to do next.
    As service user is not administrator I cannot use "SPOService".
    This script works OK for standard website, but not for Sharepoint.
    $doc = New-Object System.Xml.XmlDocument
    $doc.Load("http://www.{CompanySite}.com/feed/")
    $doc.save("C:\temp\feed.xml")
    I am getting this error when using for company Sharepoint:
    "The remote server returned an error: (403) Forbidden."
    Thanks for your time considering this question.
    Jozin

    Hi Scott,
    thanks for advice.
    Combination of WebClient and Sharepoint Credentials is working OK:
    $client = New-Object System.Net.WebClient 
    $client.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User, $SecurePassword)
    $client.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f")
    $client.DownloadFile($SiteURL, $file)

  • Powershell - site collections, size, owner, last used etc

    Hi All,
    I know its out there, as I've used something similar, albeit needing fewer info than requested, but I need to be able to provide all site collections in a farm, size, last used, owner and a bit more, which cannot remember, but if someone can point me in
    the right direction I have something to build on
    Thanks

    AG9,
    Please have these script for those reports
    Windows
    PowerShell Script to Output Site Collection Information
    FIND
    ALL SHAREPOINT 2010 SITE COLLECTIONS AND THEIR SIZES USING POWERSHELL
    Hope the are helpfull
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Can't delete a Site Collection from SharePoint admin center completely

    Hi All
    I'm using Office365. And I wanted to delete a Site Collection from SharePoint admin center.
    But at first, I couldn't delete it from there. So I opened the Site and delete it from the Site setting successfully.
    Then I went back to SharePoint admin center to check it was deleted or not completely.
    But the Site Collection was still on the Site Collections list.....
    Things I did are
    1. IE -> Tools->Internet Options-> In General Tab click on Delete in browsing history section and check all options and again click on delete.
    2. Close and re-open the browser and sign back in
    I wanna make free server resource to create new Site Collection.
    Does anyone know how to delete a Site Collection completely?

    Hi,
    Can you try delete the site collection using SharePoint online power shell command? Refer the following link for that.
    Delete site collection
    Also, while deleting site collection from Admin Center, do you get any warning?Or what are steps you follow to delete the Site Collection from Admin Center?
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How can I copy documents from a Sharepoint On Premises library to a Sharepoint Online library and at the same time preserving their metadata?

    How can I copy documents from a Sharepoint On Premises library to a Sharepoint Online library and at the same time preserving their metadata?
    I use the Open Explorer Windows to drag and drop the files, but the metadata are not copied. Thanks.

    To maintain the metadata you'll need to use one of the third party tools that does this kind of migration.  Metalogix has a product with a free trial that we have used before.  (Don't remember whether the free version maintains metadata or not).
     You can read about it here:
    http://www.metalogix.com/Products/Content-Matrix.aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How can I send an email from Sharepoint Online using sandbox solution?

    How can I send an email from Sharepoint Online using sandbox solution?
    If possible I do not want to use workflow.
    Is It possible to do it without using workflow?

    hello Steven Andrews,
    when any user sends a message using contact us page in SharePoint online.
    1. We are inserting item in Contact Us List . - This is working fine
    for anonymous users also. We have used Office365 anonymous codeplex wsp and it is working fine. Anonymous user is able to insert new record in the Contact Us List.
    2. Once, new record is inserted in Contact Us list, we want to fire email notifying thanks to the user on his email id as well as to our company x person for notification of new inquiry. 
    We tried using Workflow having impersonation step for  anonymous user but it is not working for Anonymous users. Workflow is able to sent the email if someone logged into system but not working for Anonymous user although workflow is getting started
    but not able to send email although used Imperonsation step.
    We are stuck into implementing second step.

Maybe you are looking for

  • I can no longer add songs I have not purchased in iTunes onto my phone.

    Hi, I have an iPhone 4S and had been using it with a PC until recently, when I upgraded to a macbook pro. I have synced my phone in iTunes with the new computer and all music I purchased from iTunes can be moved off and onto my phone. Any other music

  • FIOS TV Multi Room DVR

    Has anyone else been hung up on after - 10/24 my main tv screen goes blank and they send a replacement box - 10/29 upon return from business trip I learn that new box dropped all 27 hours of recorded programming and reflects no shows to record - this

  • Allocation table - cross company STO

    Hi, I tried to create allocation table for cross company STO, with item category E "E     PO via DC (NB - cross company code)" . However when i save the allocation table with below error. I set the DC and vendor same code. Pls advice Thanks Distribut

  • Cant's See the Table Of SQL Server Using UD Connect

    Dear Experts,         I meet a problem. I connect using UD connect. In t_code=RSA1->inforsource->Extr->Create BW Data source With UD Connect. I can select well in 'RFC Destination'&'UD Connect Sourc', But in the popu menu of 'UD Connect Source Obj.',

  • Integration Process and Action

    Hi everyone, Can some one explain about why do we need to create Action and Integration Process in ESR and use this Integration Process in Configuration Scenario.what's the use of creating this?