--------------------
to add site templates to your installation, you can use the following command:
Stsadm -o addtemplate -filename
-title <> -description <>
----------------------
add a Web Part Package
Stsadm -o addwppack -filename <>
----------------------
The following command will have SharePoint send out immediate alerts every 10 minutes:
Stsadm -o setproperty -pn job-immediate-alerts -pv "Every 10 minutes"
Note : -pn and -pv instead of -propertyname and -propertyvalue
----------------------
The following to a text file named createpersonalsite.cmd
stsadm -o createsite -url http://localhost/users/%1 -ownerlogin contoso\%1
-owneremail %1@contoso.com -sitetemplate usersite.stp
-title "Personal site for %1" -description "Personal site for %1" -quota "500 MB"
----------------------
create a site for the user jaganinfo, simply execute the following:
createpersonalsite.cmd jaganinfo
-----------------------
To rename a web from "oldname" to "coolnewname," use the following:
Stsadm -o renameweb -url http://localhost/oldname -newname coolnewname
------------------------
Backing Up and Restoring
STSADM which site to back up and where to write the backup file, like this:
Stsadm -o backup -url http://localhost -filename site.bak
------------------------
Working with a Data View Web Part
to view a list of site collections
create a scheduled task that runs:
stsadm –o enumsites –url http://localhost
>c:\inetpub\wwwroot\excludedsite\sites.xml
---------------------------
To export a web, use the following simple command:
Stsadm -o export -url http://localhost/web -filename backup.dat
----------------------------
To import a web back to the server, use the following command:
Stsadm -o import -url http://localhost/web2 -filename backup.dat
-------------------------
Expert Operations
If the account jaganinfo is renamed to mohaninfo, you can use the following command:
Stsadm -o migrateuser -oldlogin domain\jaganinfo -newlogin domain\mohaninfo -ignoresidhistory
----------------------------
The following command will unextend your virtual server:
Stsadm -o unextendvs -url http://localhost
--------------------------------
To change the port to one you specify:
Stsadm -o setadminport -port 1026
-------------------------------
Feature
activatefeature
stsadm.exe -o activatefeature
{-filename
-name
-id
[-url
[-force]
deactivatefeature
stsadm.exe -o deactivatefeature
{-filename
-name
-id
[-url
[-force]
installfeature
stsadm.exe -o installfeature
{-filename
-name
[-force]
uninstallfeature
stsadm.exe -o uninstallfeature
{-filename
-name
-id
[-force]
----------------------------------------------