Common commands for Sharepoint installation and deployment

Source: Internet
Author: User

Command lines are often used for installation and deployment. These commands are not very familiar with use, so you can record all used commands to avoid confusion in the future.

Note: the command line must be specified in the c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin directory.

Step: 1. CTRL + R → cmd → cd c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin

1. Installation, deployment, and uninstallation of solution:

Install: stsadm.exe-O addsolution-filename c: \ gqx. WSP (file path)

Deployment: stsadm.exe-O deploysolution-name gqx. WSP-allowgacdeployment-immediate

Uninstall: stsadm.exe-O deletesolution-name gqx. WSP-override (-override is used for force deletion)

The above commands have been used for the time being. Here, we will sort them out. For more detailed commands, see:

Http://www.cnblogs.com/LeimOO/archive/2008/10/06/1304905.html

2. site backup and Restoration:

Backup: stsadm.exe-O backup-URL http: // MOSS: 2012-filename c: \ filename. Bak-overwrite

Note: Back up the site http: // MOSS: 2012 to the C root directory. The backup file name is filename. Bak.

Restore: stsadm.exe-O restore-URL http: // MOSS: 2012-filename c: \ filename. Bak-overwrite

Note: Restore the filename. Bak file under the C root directory to the site at http: // MOSS: 2012. (Here, the http: // MOSS: 2012 website is the site we want to restore. It is defined by ourselves and can be any Moss site .)

The following link provides a detailed description. For more information, see:

Http://blog.csdn.net/stormlly/article/details/2449623

3. Add the website template to the Library:

Back up a website template: website operations → website settings → Save the website as a template → (enter the template information) → OK

Download website template: website operation → database (solution) → download our template

Add the template to the Library: stsadm.exe-O addtemplate-filename template_file_name-titletemplate_title [-description template_description]

4. automatically deploy the project to the site:

"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O retractsolution-name "gqx. WSP"-immediate-allcontenturls
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O execadmsvcjobs
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O deletesolution-name "gqx. WSP"
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O execadmsvcjobs
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O addsolution-FILENAME "gqx. WSP"
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O execadmsvcjobs
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O deploysolution-name "gqx. WSP "-immediate-allcontenturls-allowgacdeployment-allowcaspolicies-Force
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm.exe"-O execadmsvcjobs

(The above text is a project deployed in sharepoint2007, copy and paste the text directly to notepad, and change the file suffix ". bat "and then run it directly to implement WSP deployment. Remember to copy the file to the directory where the BAT file is located .)

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.