Export and Import subsite in sharepoint using PowerShell

Advertisement

Using PowerShell we can do Export and Import subsite's in sharepoint  using  PowerShell

Export-SPWeb yoursiteurl –Path "YourPathwith CMPName" -includeusersecurity 
Example
 Export-SPWeb http://dotnetsharepoint.com/sites/dotnet/dotnetsharepoint/ –Path "C:\BackUp\DotNetSharePoint.cmp" -includeusersecurity  

Import-SPWeb yoursiteurl -Path "YourPathwith CMPName"  -IncludeUserSecurity -Force
Example                        
Import-SPWeb http://dotnetsharepoint.com/sites/dotnet/sharepoint/ -Path "C:\SiteBackUp\DotNetSharePoint.cmp"  -IncludeUserSecurity -Force

-IncludeUserSecurity
To get the Users with Groups and Permissions

-Force
Is used to over write the existing site


Advertisements
SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment