Tuesday, April 15, 2014

Useful STSADM Command



STSADM Command (SharePoint Team Services Administration)

Before you run to STSADM command, you are required to run command prompt with “Run as Administrator” .  In common prompt, you have to change directory to

C: \ Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\bin>

  • To backup SharePoint Team Site without user permission
    • stsadm -o export -url  <url of your team site> -filename <file location>
       You are able to see one .export file and multiple .cmp files in your  file location. In .export file, all logs will be recorded.
       
  • To backup SharePoint Team Site with user permission 
    •  stsadm -o export -url  <url of your team site> -filename <file location> -includeusersecurity
       You are able to see one .export file and multiple .cmp files in your  file location. in .export  file, all logs will be recorded.

  •  To restore SharePoint Team Site without user permission 
    • Create one Team Site in SharePoint 
    • import-spweb -identity “Create Team Site Url” -path <your exported file e.g D:\test.cmp>
       
  • To restore SharePoint Team Site with user permission 
    • import-spweb -identity “Create Team Site Url” -path <your exported file e.g  D:\test.cmp> -includeusersecurity

  •  To increate Team Site Template Limit 
    • stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 524288000

No comments:

Post a Comment

If this post is useful, pls comment here.