Сопоставление STSADM Microsoft PowerShell в SharePoint Server
**Применимо к:**SharePoint Foundation 2013, SharePoint Server 2013 Enterprise, SharePoint Server 2013 Standard, SharePoint Server 2016
**Последнее изменение раздела:**2017-08-24
Сводка: Операции Stsadm списков и их параметру PowerShell командлетов.
Если прямое сопоставление между операциями и командлетами отсутствует, в таблице указаны параметры PowerShell, которые необходимо использовать для достижения аналогичных функциональных возможностей.
Операция Stsadm |
Командлет Windows PowerShell |
Activatefeature |
|
Activateformtemplate |
|
Addalternatedomain |
|
Addcontentdb |
|
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 (Чтобы выполнить этот командлет, необходимо быть участником группы администраторов фермы.) Get-SPSite (Для выполнения этого командлета необходимо быть локальным администратором на компьютере, где установлен SharePoint Server ). |
Enumsolutions |
|
Enumsubwebs |
|
Enumtemplates |
|
Enumusers |
|
Enumwppacks |
|
Enumzoneurls |
|
Execadmsvcjobs |
|
Export |
|
Extendvs |
|
Extendvsinwebfarm |
|
Forcedeletelist |
Нет |
Getadminport |
Используйте следующий синтаксис:
|
Getdataconnectionfileproperty property |
Используйте следующий синтаксис:
|
Getformtemplateproperty property |
Используйте следующий синтаксис:
|
Getosearchsetting |
Нет |
Getproperty |
|
Getsitelock |
|
Getsiteuseraccountdirectorypath |
Нет |
Geturlzone |
|
Import |
|
Installfeature |
|
Listlogginglevels |
|
Listqueryprocessoroptions |
Нет |
Listregisteredsecuritytrimmers |
|
Localupgradestatus |
Нет |
Managepermissionpolicylevel |
Нет |
Mergecontentdbs |
|
Migrateuser |
|
Osearch |
Для применения параметров Osearchfarmcontactemail, farmperformancelevel, farmserviceaccount и farmservicepassword используйте командлеты Get-SPEnterpriseSearchService и Set-SPEnterpriseSearchService. Для применения параметров Osearch parameters start и stop используйте, соответственно, командлеты Start-SPEnterpriseSearchServiceInstance и Stop-SPEnterpriseSearchServiceInstance. Для использования параметра Osearch parameter defaultindexlocation используйте командлет Get-SPEnterpriseSearchServiceInstance. |
Osearchdiacriticsensitive |
Используйте командлет Get-SPEnterpriseSearchServiceApplication для получения определенного приложения-службы поиска, затем используйте параметр DiacriticSensitive из командлета Set-SPEnterpriseSearchServiceApplication. |
Profilechangelog |
Нет. Однако можно использовать операцию Stsadm profilechangelog, если необходимо заменить имя поставщика общих служб на имя приложения-службы.
Дополнительные сведения о приложениях-службах см. в разделе Сведения о службах и приложениях-службах в SharePoint Server. |
Provisionservice |
|
Quiescefarm |
Нет |
Quiescefarmstatus |
Нет |
Quiesceformtemplate |
|
Reconvertallformtemplates |
|
Refreshdms |
Нет |
Refreshsitedms |
Нет |
Registersecuritytrimmer |
|
Registerwsswriter |
Нет |
Removedataconnectionfile |
|
Removedrservice |
Нет |
Removeexemptuseragent |
|
Removeformtemplate |
|
Removesolutiondeploymentlock |
Нет |
Renameserver |
|
Renamesite |
Используйте параметр Url. |
Renameweb |
Используйте параметр RelativeUrl. |
Restore |
|
Retractsolution |
|
Retractwppack |
Нет |
Runcontentdeploymentjob |
|
Scanforfeatures |
Используйте параметр Scanforfeatures. |
Setadminport |
|
Setapppassword |
Нет |
Setconfigdb |
|
Setcontentdeploymentjobschedule |
|
Setdataconnectionfileproperty |
|
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 |
See also
Каталог Microsoft командлетов PowerShell для SharePoint Server