Stsadm 與 Windows PowerShell 的對應 (SharePoint Server 2010)
適用版本: SharePoint Foundation 2010, SharePoint Server 2010
上次修改主題的時間: 2015-03-09
本文列出 Stsadm 作業及其相對應的 Windows PowerShell Cmdlet;並針對作業與 Cmdlet 之間不是一對一對應的情況,提供列出您必須使用以取得相同功能的特定 Windows PowerShell 參數表格。
Stsadm 作業 |
Windows PowerShell Cmdlet |
Activatefeature |
|
Activateformtemplate |
|
Addalternatedomain |
|
Addcontentdb |
|
Adddataconnectionfile |
|
Add-ecsfiletrustedlocation |
|
Add-ecssafedataprovider |
|
Add-ecstrusteddataconnectionlibrary |
|
Add-ecsuserdefinedfunction |
|
Addexemptuseragent |
|
Addpath |
|
Addpermissionpolicy |
無 |
Addsolution |
|
Addtemplate |
|
Adduser |
|
Addwppack |
|
Addzoneurl |
|
Allowuserformwebserviceproxy |
使用 AllowForUserForms 和 Identity 參數。 |
Allowwebserviceproxy |
使用 AllowWebServiceProxy 和 Identity 參數。 |
Authentication |
使用 AuthenticationMethod 或 AuthenticationProvider 參數。 |
Backup |
|
Backuphistory |
|
Binddrservice |
無 |
Blockedfilelist |
無 |
Canceldeployment |
無 |
Changepermissionpolicy |
無 |
Copyappbincontent |
無 |
Createadminvs |
|
Creategroup |
無 |
Createsite |
|
Createsiteinnewdb |
New-SPSite 使用 ContentDatabase 參數。 |
Createweb |
|
Databaserepair |
無 |
Deactivatefeature |
|
Deactivateformtemplate |
|
Deleteadminvs |
無 |
Deletealternatedomain |
|
Deleteconfigdb |
|
Deletecontentdb |
|
Deletegroup |
無 |
Deletepath |
|
Deletepermissionpolicy |
無 |
Deletesite |
|
Deletesolution |
|
Deletetemplate |
|
Deleteuser |
|
Deleteweb |
|
Deletewppack |
|
Deletezoneurl |
|
Deploysolution |
|
Deploywppack |
|
Disablessc |
無 |
Displaysolution |
|
Editcontentdeploymentpath |
|
無 |
|
Enablessc |
無 |
Enumalternatedomains |
|
Enumcontentdbs |
|
Enumdataconnectionfiledependants |
|
Enumdataconnectionfiles |
|
Enumdeployments |
無 |
Enumexemptuseragents |
|
Enumformtemplates |
|
Enumgroups |
無 |
Enumroles |
無 |
Enumservices |
|
Enumsites |
Get-SPSiteAdministration (若要執行此 Cmdlet,您必須是伺服器陣列管理員群組的成員)。 Get-SPSite (若要執行此 Cmdlet,您必須是 SharePoint 2010 產品安裝所在之電腦上的本機管理員)。 |
Enumsolutions |
|
Enumsubwebs |
|
Enumtemplates |
|
Enumusers |
|
Enumwppacks |
|
Enumzoneurls |
|
Execadmsvcjobs |
|
Export |
|
Extendvs |
|
Extendvsinwebfarm |
|
Forcedeletelist |
無 |
Getadminport |
使用下列語法:
|
Getdataconnectionfileproperty 屬性 |
使用下列語法:
|
Getformtemplateproperty 屬性 |
使用下列語法:
|
Getosearchsetting |
無 |
Getproperty |
|
Getsitelock |
|
Getsiteuseraccountdirectorypath |
無 |
Geturlzone |
|
Import |
|
Installfeature |
|
Listlogginglevels |
|
Listqueryprocessoroptions |
無 |
Listregisteredsecuritytrimmers |
|
Localupgradestatus |
無 |
Managepermissionpolicylevel |
無 |
Mergecontentdbs |
|
Migrateuser |
|
Osearch |
若是 Osearch 參數 farmcontactemail、farmperformancelevel、farmserviceaccount 及 farmservicepassword,請使用 Get-SPEnterpriseSearchService 和 Set-SPEnterpriseSearchService Cmdlet。 若是 Osearch 參數 start 和 stop,請分別使用 Start-SPEnterpriseSearchServiceInstance 和 Stop-SPEnterpriseSearchServiceInstance Cmdlet。 若是 Osearch 參數 defaultindexlocation,請使用 Get-SPEnterpriseSearchServiceInstance 和 Set-SPEnterpriseSearchServiceInstance Cmdlet。 |
Osearchdiacriticsensitive |
使用 Get-SPEnterpriseSearchServiceApplication Cmdlet 擷取特定 Search Service 應用程式,然後從 Set-SPEnterpriseSearchServiceApplication Cmdlet 使用 DiacriticSensitive 參數。 |
Provisionservice |
|
Quiescefarm |
無 |
Quiescefarmstatus |
無 |
Quiesceformtemplate |
|
Reconvertallformtemplates |
|
Refreshdms |
無 |
Refreshsitedms |
無 |
Registersecuritytrimmer |
|
Registerwsswriter |
無 |
Removedataconnectionfile |
|
Remove-ecsfiletrustedlocation |
|
Remove-ecssafedataprovider |
|
Remove-ecstrusteddataconnectionlibrary |
|
Remove-ecsuserdefinedfunction |
|
Removedrservice |
無 |
Removeexemptuseragent |
|
Removeformtemplate |
|
Removesolutiondeploymentlock |
無 |
Renameserver |
|
Renamesite |
使用 Url 參數。 |
Renameweb |
使用 RelativeUrl 參數。 |
Restore |
|
Retractsolution |
|
Retractwppack |
無 |
Runcontentdeploymentjob |
|
Scanforfeatures |
使用 Scanforfeatures 參數。 |
Setadminport |
|
Setapppassword |
無 |
Setconfigdb |
|
Setcontentdeploymentjobschedule |
|
Setdataconnectionfileproperty |
|
Set-ecsexternaldata |
|
Set-ecsloadbalancing |
使用 LoadBalancingScheme 參數。 |
Set-ecsmemoryutilization |
使用 MemoryCacheThreshold 和 PrivateBytesMax 參數。 |
Set-ecssecurity |
使用 CrossDomainAccessAllowed、EncryptedUserConnectionRequired 和 FileAccessMethod 參數。 |
Set-ecssessionmanagement |
使用 SessionsPerUserMax 和 SiteCollectionAnonymousSessionsMax 參數。 |
Set-ecsworkbookcache |
使用 Workbookcache 和 WorkbookCacheSizeMax 參數。 |
Setformtemplateproperty |
|
Setlogginglevel |
|
Setosearchsetting |
無 |
Setproperty |
|
Setqueryprocessoroptions |
無 |
Setsitelock |
使用 LockState 參數。 |
Setsiteuseraccountdirectorypath |
|
Setworkflowconfig |
|
Siteowner |
|
Syncsolution |
使用 Synchronize 參數。 |
Unextendvs |
|
Uninstallfeature |
|
Unquiescefarm |
無 |
Unquiesceformtemplate |
|
Unregistersecuritytrimmer |
|
Unregisterwsswriter |
無 |
Updateaccountpassword |
|
Updatealerttemplates |
無 |
Updatefarmcredentials |
無 |
Upgrade |
無 |
Upgradeformtemplate |
|
Upgradesolution |
|
Upgradetargetwebapplication |
無 |
Uploadformtemplate |
|
Userrole |
|
Verifyformtemplate |