Поделиться через


Сопоставление STSADM Microsoft PowerShell в SharePoint Server

ОБЛАСТЬ ПРИМЕНЕНИЯ:yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint в Microsoft 365

Если между операциями и командлетами нет сопоставления "один к одному", в таблице перечислены конкретные параметры PowerShell, которые необходимо использовать для получения той же функциональности.

   
Операция Stsadm Командлет Windows PowerShell
Activatefeature Enable-SPFeature
Activateformtemplate Enable-SPInfoPathFormTemplate
Addalternatedomain New-SPAlternateUrl
Addcontentdb Mount-SPContentDatabaseNew-SPContentDatabase
Addexemptuseragent Add-SPInfoPathUserAgent
Addpath New-SPManagedPath
Addpermissionpolicy Нет
Addsolution Add-SPSolution
Addtemplate Нет
Adduser New-SPUser
Addwppack Install-SPWebPartPack
Addzoneurl New-SPAlternateUrl
Allowuserformwebserviceproxy Set-SPInfoPathWebServiceProxy Используйте параметры AllowForUserForms и Identity .
Allowwebserviceproxy Set-SPInfoPathWebServiceProxy Используйте параметры AllowWebServiceProxy и Identity .
Проверка подлинности Set-SPWebApplication Используйте параметры AuthenticationMethod или AuthenticationProvider .
Резервное копирование Backup-SPConfigurationDatabaseBackup-SPFarmBackup-SPSite
Backuphistory Get-SPBackupHistory
Binddrservice Нет
Blockedfilelist Нет
Canceldeployment Нет
Changepermissionpolicy Нет
Copyappbincontent Install-SPApplicationContent
Createadminvs New-SPCentralAdministration
Creategroup Нет
Createsite New-SPSite
Createsiteinnewdb New-SPSite Используйте параметр ContentDatabase. New-SPContentDatabase
Createweb New-SPWeb
Databaserepair Используйте Метод Get-SPContentDatabaseOrphanedData для обнаружения потерянных данных, но обратите внимание, что они не восстанавливают потерянные данные.
Deactivatefeature Disable-SPFeature
Deactivateformtemplate Disable-SPInfoPathFormTemplate
Deleteadminvs Remove-SPCentralAdministration
Deletealternatedomain Remove-SPAlternateUrl
Deleteconfigdb Disconnect-SPConfigurationDatabase
Deletecontentdb Dismount-SPContentDatabase
Deletegroup Нет
Deletepath Remove-SPManagedPath
Deletepermissionpolicy Нет
Deletesite Remove-SPSite
Deletesolution Remove-SPSolution
Deletetemplate Нет
Deleteuser Remove-SPUser
Deleteweb Remove-SPWeb
Deletewppack Uninstall-SPWebPartPack
Deletezoneurl Remove-SPAlternateUrl
Deploysolution Install-SPSolution
Deploywppack Install-SPWebPartPack
Disablessc Нет
Displaysolution Get-SPSolution
Editcontentdeploymentpath Set-SPContentDeploymentPath
Отправить сообщение Используйте Set-SPWebApplication с набором параметров -SMTPServer.
Enablessc Нет
Enumallwebs Get-SPContentDatabaseOrphanedData
Enumalternatedomains Get-SPAlternateURL
Enumcontentdbs Get-SPContentDatabase
Enumdataconnectionfiledependants Get-SPDataConnectionFileDependent
Enumdataconnectionfiles Get-SPDataConnectionFile
Enumdeployments Нет
Enumexemptuseragents Get-SPInfoPathUserAgent
Enumformtemplates Get-SPInfoPathFormTemplate
Enumgroups Нет
Enumroles Нет
Enumservices Get-SPServiceInstance
Enumsites Get-SPSiteAdministration (для выполнения этого командлета необходимо быть членом группы администраторов фермы).) Get-SPSite (Для выполнения этого командлета необходимо быть локальным администратором на компьютере, на котором установлен SharePoint Server.)
Enumsolutions Get-SPSolution
Enumsubwebs Get-SPWeb
Enumtemplates Get-SPWebTemplate
Enumusers Get-SPUser
Enumwppacks Get-SPWebPartPack
Enumzoneurls Get-SPAlternateURL
Execadmsvcjobs Start-SPAdminJob
Export Export-SPWeb
Extendvs New-SPWebApplication
Extendvsinwebfarm New-SPWebApplicationExtension
Forcedeletelist Нет
Getadminport Get-SPWebApplication Используйте следующий синтаксис: Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true}
Getdataconnectionfileproperty property Get-SPDataConnectionFile Используйте следующий синтаксис: Get-SPDataConnectionFile | where {$_.Name -eq "dataConFileName"} | format-list
Getformtemplateproperty property Get-SPInfoPathFormTemplate Используйте следующий синтаксис: Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq "formTemplateName"} | format-list
Getosearchsetting Нет
Getproperty Get-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
Getsitelock Get-SPSiteAdministration
Getsiteuseraccountdirectorypath Нет
Geturlzone Get-SPAlternateURL
Import Import-SPWeb
Installfeature Install-SPFeature
Listlogginglevels Get-SPLogLevel
Listqueryprocessoroptions Нет
Listregisteredsecuritytrimmers Get-SPEnterpriseSearchSecurityTrimmer
Localupgradestatus Нет
Managepermissionpolicylevel Нет
Mergecontentdbs Move-SPSite
Migrateuser Move-SPUser
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 , если замените имя поставщика общих служб (SSP) именем приложения службы (SA): stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries
Provisionservice Start-SPServiceInstance
Quiescefarm Нет
Quiescefarmstatus Нет
Quiesceformtemplate Stop-SPInfoPathFormTemplate
Reconvertallformtemplates Update-SPInfoPathFormTemplate
Refreshdms Нет
Refreshsitedms Нет
Registersecuritytrimmer New-SPEnterpriseSearchSecurityTrimmer
Registerwsswriter Нет
Removedataconnectionfile Uninstall-SPDataConnectionFile
Removedrservice Нет
Removeexemptuseragent Remove-SPInfoPathUserAgent
Removeformtemplate Uninstall-SPInfoPathFormTemplate
Removesolutiondeploymentlock Нет
Renameserver Rename-SPServer
Renamesite Set-SPSite Используйте параметр URL-адреса .
Renameweb Set-SPWeb Используйте параметр RelativeUrl .
Восстановление Restore-SPFarmRestore-SPSite
Retractsolution Uninstall-SPSolution
Retractwppack Нет
Runcontentdeploymentjob Start-SPContentDeploymentJob
Scanforfeatures Install-SPFeature Используйте параметр Scanforfeatures .
Setadminport Set-SPCentralAdministration
Setapppassword Set-SPApplicationCredentialKeyRemove-SPApplicationCredentialKey
Setconfigdb Connect-SPConfigurationDatabase
Setcontentdeploymentjobschedule Set-SPContentDeploymentJob
Setdataconnectionfileproperty Set-SPDataConnectionFile
Setformtemplateproperty Set-SPInfoPathFormTemplate
Setlogginglevel Set-SPLogLevel
Setosearchsetting Нет
Setproperty Set-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
Setqueryprocessoroptions Нет
Setsitelock Set-SPSiteAdministration Используйте параметр LockState .
Setsiteuseraccountdirectorypath Get-SPSiteSubscriptionNew-SPSiteSubscriptionRemove-SPSiteSubscription
Setworkflowconfig Set-SPWorkflowConfig
Siteowner Set-SPSiteAdministration
Синхронизация Update-SPProfileSyncClear-SPContentDatabaseSyncDataGet-SPContentDatabase (с параметром -DaysSinceLastProfileSync)
Syncsolution Install-SPSolution Используйте параметр Synchronize .
Unextendvs Remove-SPWebApplication
Uninstallfeature Uninstall-SPFeature
Unquiescefarm Нет
Unquiesceformtemplate Start-SPInfoPathFormTemplate
Unregistersecuritytrimmer Remove-SPEnterpriseSearchSecurityTrimmer
Unregisterwsswriter Нет
Updateaccountpassword Set-SPManagedAccount
Updatealerttemplates Нет
Updatefarmcredentials Нет
Upgrade Нет
Upgradeformtemplate Install-SPInfoPathFormTemplate
Upgradesolution Update-SPSolution
Upgradetargetwebapplication Нет
Uploadformtemplate Install-SPInfoPathFormTemplate
Userrole Get-SPUserMove-SPUserNew-SPUserRemove-SPUserSet-SPUser
Verifyformtemplate Test-SPInfoPathFormTemplate

См. также

Другие ресурсы

Index of Microsoft PowerShell cmdlets for SharePoint Server