Summary of common SharePoint Moss stsadm commands

Source: Internet
Author: User
Back up and restore websites
Stsadm-O backup-URL http: // spweb/sites/FDP-filename c: \ fdp_0216.bak-overwrite
Stsadm-O restore-URL http: // spweb/sites/FDP-filename D: \ backup \ fdp_0216.bak-overwrite

Import and Export backup
Stsadm-O import-URL http: // portalsuat/smspindia/Bi-filename c: \ smspindia-bi.cab-includeusersecurity-haltonfatalerror
Stsadm-O export-URL http: // simoss/sites/GNS/circuits-filename D: \ Backups \ gnscircuit \ gnscircuit20090207.bak-includeusersecurity-haltonfatalerror

Add or delete a database
Stsadm-O preparetomove-contentdb simossshowsql01: wss_content_sidevvm02-site http: // sidevvm02
Stsadm-O deletecontentdb-URL http: // sidevvm02-databasename wss_content_sidevvm02
Stsadm-O addcontentdb-URL http: // sidevvm02-databasename wss_content_sidevvm02

Command Line password Modification
Cd % commonprogramfiles % \ microsoft shared \ Web Server Extensions \ 12 \ bin
Stsadm-O updatefarmcredentials-userlogin Redmond \ sicfgact-Password feb19upd @ t
Iisreset/noforce
Stsadm-O updateaccountpassword-userlogin Redmond \ sicfgact-Password feb19upd @ T-noadmin
Stsadm.exe-O spsearch-farmserviceaccount Redmond \ sicfgact-farmservicepassword feb19upd @ t
Stsadm.exe-O spsearch-farmcontentaccessaccount Redmond \ sicfgact-farmcontentaccesspassword feb19upd @ t
Stsadm.exe-O editssp-title sharedservices1-ssplogin Redmond \ sicfgact-ssppassword feb19upd @ t
Stsadm.exe-O osearch-farmserviceaccount Redmond \ sicfgact-farmservicepassword feb19upd @ t

Lock website
Stsadm-O getsitelock-URL http: // SDT-help/personal/test
Stsadm-O setsitelock-URL http: // SDT-help/personal/test-lock readonly

Restore database
Stsadm-O databaserepair-URL http: // portalsuat/smspindia/Bi-databasename wss_content_portalsuat02c
Stsadm-O databaserepair-URL http: // portalsuat/smspindia/Bi-databasename wss_content_portalsuat02b-deleteappsuption

Delete website
Stsadm-O deletesite-URL http: // portalsuat/smspindia/Bi

Transfer Database
Stsadm-O enumsites-URL http: // portalsuat> C: \ system_log \ 2009-03-26 \ sites. xml
Stsadm-O mergecontentdbs-URL http: // portalsuat-sourcedatabasename wss_content_portalsuat02b-destinationdatabasename implements-operation 3-filename C: \ system_log \ 2009-03-26 \ sites. xml
Iisreset/noforce

Upgrade SharePoint 6332
Cd % commonprogramfiles % \ microsoft shared \ Web Server Extensions \ 12 \ bin
Stsadm-O preparetomove-contentdb simossshowsql01: wss_content_sidevvm02-site http: // sidevvm02
Stsadm-O deletecontentdb-URL http: // sidevvm02-databasename wss_content_sidevvm02
Net start spadmin
Net start sptimerv3
Psconfig-cmd upgrade-inplace B2B-Force
Stsadm-O addcontentdb-URL http: // sidevvm02-databasename wss_content_sidevvm02

Install and activate feature
Stsadm-O installfeature-filename [under the feature folder] \ feature. xml
Stsadm-O activatefeature-filename [in the feature folder] \ feature. XML-URL http: // [computer name]: [port]/sites/portol-Force

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.