SPS 2010 Stsadm PwoerShell 对应命令
熟悉SharePoint 2007的朋友对stsadm命令一定不陌生, 在SharePoint 2010里, 开始使用power shell是不是就有点不知所措了呢? 没关系, 这个列表会让你找回一点熟悉的感觉.
Stsadm operation |
Windows PowerShell cmdlet |
Activatefeature |
|
Activateformtemplate |
|
Addalternatedomain |
|
Addcontentdb |
|
Adddataconnectionfile |
|
Add-ecsfiletrustedlocation |
|
Add-ecssafedataprovider |
|
Add-ecstrusteddataconnectionlibrary |
|
Add-ecsuserdefinedfunction |
|
Addexemptuseragent |
|
Addpath |
|
Addpermissionpolicy |
None |
Addsolution |
|
Addtemplate |
|
Adduser |
|
Addwppack |
|
Addzoneurl |
|
Allowuserformwebserviceproxy |
Use the AllowForUserForms and Identity parameters. |
Allowwebserviceproxy |
Use the AllowWebServiceProxy and Identity parameters. |
Authentication |
Use the AuthenticationMethod or AuthenticationProvider parameters. |
Backup |
|
Backuphistory |
|
Binddrservice |
None |
Blockedfilelist |
None |
Canceldeployment |
None |
Changepermissionpolicy |
None |
Copyappbincontent |
None |
Createadminvs |
|
Creategroup |
None |
Createsite |
|
Createsiteinnewdb |
New-SPSite Use the ContentDatabaseparameter. |
Createweb |
|
Databaserepair |
None |
Deactivatefeature |
|
Deactivateformtemplate |
|
Deleteadminvs |
None |
Deletealternatedomain |
|
Deleteconfigdb |
|
Deletecontentdb |
|
Deletegroup |
None |
Deletepath |
|
Deletepermissionpolicy |
None |
Deletesite |
|
Deletesolution |
|
Deletetemplate |
|
Deleteuser |
|
Deleteweb |
|
Deletewppack |
|
Deletezoneurl |
|
Deploysolution |
|
Deploywppack |
|
Disablessc |
None |
Displaysolution |
|
Editcontentdeploymentpath |
|
|
None |
Enablessc |
None |
Enumalternatedomains |
|
Enumcontentdbs |
|
Enumdataconnectionfiledependants |
|
Enumdataconnectionfiles |
|
Enumdeployments |
None |
Enumexemptuseragents |
|
Enumformtemplates |
|
Enumgroups |
None |
Enumroles |
None |
Enumservices |
|
Enumsites |
Get-SPSiteAdministration(To run this cmdlet, you must be a member of the Farm Administrators group.) Get-SPSite (To run this cmdlet, you must be a local administrator on the computer where SharePoint 2010 Products is installed.) |
Enumsolutions |
|
Enumsubwebs |
|
Enumtemplates |
|
Enumusers |
|
Enumwppacks |
|
Enumzoneurls |
|
Execadmsvcjobs |
|
Export |
|
Extendvs |
|
Extendvsinwebfarm |
|
Forcedeletelist |
None |
Getadminport |
Use the following syntax: · |
Getdataconnectionfileproperty property |
Use the following syntax: · |
Getformtemplateproperty property |
Use the following syntax: · |
Getosearchsetting |
None |
Getproperty |
|
Getsitelock |
|
Getsiteuseraccountdirectorypath |
None |
Geturlzone |
|
Import |
|
Installfeature |
|
Listlogginglevels |
|
Listqueryprocessoroptions |
None |
Listregisteredsecuritytrimmers |
|
Localupgradestatus |
None |
Managepermissionpolicylevel |
None |
Mergecontentdbs |
|
Migrateuser |
|
Osearch |
For the Osearch parameters farmcontactemail, farmperformancelevel, farmserviceaccount, and farmservicepassword, use the Get-SPEnterpriseSearchService and Set-SPEnterpriseSearchServicecmdlets. For the Osearch parameters start and stop, use the Start-SPEnterpriseSearchServiceInstance and Stop-SPEnterpriseSearchServiceInstancecmdlets, respectively. For the Osearch parameter defaultindexlocation, use the Get-SPEnterpriseSearchServiceInstance and Set-SPEnterpriseSearchServiceInstance cmdlets. |
Osearchdiacriticsensitive |
Use the Get-SPEnterpriseSearchServiceApplication cmdlet to retrieve the specific Search service application, and then use DiacriticSensitive parameter from the Set-SPEnterpriseSearchServiceApplication cmdlet. |
Provisionservice |
|
Quiescefarm |
None |
Quiescefarmstatus |
None |
Quiesceformtemplate |
|
Reconvertallformtemplates |
|
Refreshdms |
None |
Refreshsitedms |
None |
Registersecuritytrimmer |
|
Registerwsswriter |
None |
Removedataconnectionfile |
|
Remove-ecsfiletrustedlocation |
|
Remove-ecssafedataprovider |
|
Remove-ecstrusteddataconnectionlibrary |
|
Remove-ecsuserdefinedfunction |
|
Removedrservice |
None |
Removeexemptuseragent |
|
Removeformtemplate |
|
Removesolutiondeploymentlock |
None |
Renameserver |
|
Renamesite |
Use the Url parameter. |
Renameweb |
Use the RelativeUrl parameter. |
Restore |
|
Retractsolution |
|
Retractwppack |
None |
Runcontentdeploymentjob |
|
Scanforfeatures |
Use the Scanforfeatures parameter. |
Setadminport |
|
Setapppassword |
None |
Setconfigdb |
|
Setcontentdeploymentjobschedule |
|
Setdataconnectionfileproperty |
|
Set-ecsexternaldata |
|
Set-ecsloadbalancing |
Use the LoadBalancingScheme parameter. |
Set-ecsmemoryutilization |
Use the MemoryCacheThreshold and PrivateBytesMax parameters. |
Set-ecssecurity |
Use the CrossDomainAccessAllowed, EncryptedUserConnectionRequired, and FileAccessMethod parameters. |
Set-ecssessionmanagement |
Use the SessionsPerUserMax and SiteCollectionAnonymousSessionsMax parameters. |
Set-ecsworkbookcache |
Use the Workbookcache and WorkbookCacheSizeMax parameters. |
Setformtemplateproperty |
|
Setlogginglevel |
|
Setosearchsetting |
None |
Setproperty |
|
Setqueryprocessoroptions |
None |
Setsitelock |
Use the LockState parameter. |
Setsiteuseraccountdirectorypath |
|
Setworkflowconfig |
|
Siteowner |
|
Syncsolution |
Use the Synchronize parameter. |
Unextendvs |
|
Uninstallfeature |
|
Unquiescefarm |
None |
Unquiesceformtemplate |
|
Unregistersecuritytrimmer |
|
Unregisterwsswriter |
None |
Updateaccountpassword |
|
Updatealerttemplates |
None |
Updatefarmcredentials |
None |
Upgrade |
None |
Upgradeformtemplate |
|
Upgradesolution |
|
Upgradetargetwebapplication |
None |
Uploadformtemplate |
|
Userrole |
|
Verifyformtemplate |
资料来源:
Stsadm to Windows PowerShell mapping (SharePoint Server 2010)
http://technet.microsoft.com/en-us/library/ff621084(office.14).aspx