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
0 comments:
Post a Comment