Wednesday, January 30, 2008

Some Useful SharePoint Commands

STSADM

To set path to stsadm:
Path = C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

-------------------------------------------
execadmsvcjobs

stsadm.exe -o execadmsvcjobs

Executes all administrative timer jobs immediately instead of waiting for the timer job to run.
-------------------------------------------
Backup Site

stsadm.exe -o backup -url http://ServerTLD:Port/PathtoSite -filename BackupFileName.dat -overwrite
-------------------------------------------
Restore Site

stsadm.exe -o restore -url http://ServerTLD:Port/PathToSite -filename BackupFileName.dat -overwrite

-------------------------------------------

Infopath Form Template

Verify:

stsadm.exe -o VerifyFormTemplate -filename c:\MyFormFolder\MyForm.xsn

Upload:

stsadm.exe -o UploadFormTemplate -filename c:\MyFormFolder\MyForm.xsn

Activate:

stsadm.exe -o ActivateFormTemplate -url http://MySiteCollection -filename c:\MyFormFolder\MyForm.xsn

Deactivate:

stsadm.exe -o DeactivateFormTemplate -url http://MySiteCollection -filename c:\MyFormFolder\MyForm.xsn

Remove:

stsadm.exe -o RemoveFormTemplate -filename c:\MyFormFolder\MyForm.xsn

-------------------------------------------

No comments: