Common Moss deployment command stsadm

Source: Internet
Author: User

From: http://blog.sina.com.cn/s/blog_64bdb8240100nyg5.html

 

The following command must run under c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 14 \ bin and must be an administrator!

 

Common stsadm command line parameters include:

1. installfeature and uninstallfeature:FeatureDeployment and uninstallation;

     Install feature: stsadm-o INstallfeature-Filename [in the feature folder] \ feature. xml

     Activate feature: stsadm-O activatefeature-filename [feature path] \ feature. XML-URL
Http: // [Host Header]: [port]/sites/portol-Force
          Special note-URL

In addition, the "Host Header" may not be the computer name, but sometimes an error occurs when you create a web application, so it is better to use the computer name. I do not know why an error occurs.

2. addwppack and deletewppack:WebpartAnd*. CabDeployment and uninstallation;

     Install: stsadm-oAddwppack-Filename [*. cab file path] \ *. Cab

     Uninstall: stsadm-oDeletewppack-Name *. Cab

     In general, do not directly deploy the webpart on the website. It is better to deploy the webpart with feature.

3. addtemplate and deleteremplate:Template(Template) deployment and uninstallation;

     Install: stsadm.exe-oAddtemplate-Filename[*. STP file path] \ *. STP-title [Template Name]

4. addsolution and deletesolution:SolutionDeployment and uninstallation;

     Install: stsadm-oAddsolution-Filename [*. WSP file path] \ *. WSP;

    Eg: Stsadm-o
Addsolution-Filename c: \ Users \ Zhaoming \ Desktop \ westaport \ template page \ group portal website template. WSP

     Deployment: stsadm-oDeploysolution-Name *. WSP-allowgacdeployment-immediate

     Delete: stsadm.exe-oDeletesolution-Name *. WSP

 Feature features are very powerful, and many things can be deployed to Moss through feature. However, according to your usage, you may feel like masterpage and template) it is better to upload it through the "Master page library" and "template library.

5. Deployment and deletion of solution:

   Deployment:
   A.Put the. STP and. WSP files directly under the c: \ directory.

Open the "command prompt" window and enter:

 

CDC: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin

  

   B. InstallationSolution

Stsadm-O addsolution-filename c: \ meetingtemplate. WSP

 

   C. deploysolution

Stsadm-O deploysolution-name meetingtemplate. WSP-allowgacdeployment-immediate

 
   If the ASPX page is deployed, the DLL will be automatically deployed to GAC, And the ASPX page will be automatically deployed to layouts.

   Delete
   A. retractsolution

Stsadm.exe-O retractsolution-Name meetingtemplate. WSP-immediate
 

   B. deletesolution

Stsadm.exe-O deletesolution-name meetingtemplate. WSP

You can also force Delete[-Override]

6.

 

Activate feature

Stsadm-O activatefeature-filename meetingtemplate \ feature. XML-URL
Http: // test: 9001/sites/portail-Force

Special note-URL

7. getlock and setlock: used for backupBackupAccess restrictions during site collection;

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.