The following command must be run in c: \ Program Files \ common files \ microsoft shared \ Web
Server Extensions \ 14 \ bin 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 notes
-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-oAddsolution-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.Set. STPAnd. WSPPut the file directlyC :\Directory
Open the "command prompt" window and enter:
Cd c: \ 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. ActivateFeature
Stsadm-O activatefeature-filename meetingtemplate \ feature. XML-URL http: // test: 9001/sites/portail-Force
Special notes-URL
7. getlock and setlock: used for backupBackupSite
Access restrictions during collection;