STSADM para mapeamento do Microsoft PowerShell no SharePoint Server

APLICA-SE A:yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint no Microsoft 365

Onde não há mapeamento um-para-um entre as operações Stsadm e os cmdlets do PowerShell, a tabela lista os parâmetros específicos do PowerShell que você deve usar para obter funcionalidade semelhante.

   
Operação Stsadm Cmdlet do Windows PowerShell
Activatefeature Enable-SPFeature
ActivateFormTemplate Enable-SPInfoPathFormTemplate
Addalternatedomain New-SPAlternateUrl
Addcontentdb Mount-SPContentDatabaseNew-SPContentDatabase
Addexemptuseragent Add-SPInfoPathUserAgent
Addpath New-SPManagedPath
Addpermissionpolicy Nenhum
Addsolution Add-SPSolution
Addtemplate Nenhum
Usuário Adicionado New-SPUser
Addwppack Install-SPWebPartPack
Addzoneurl New-SPAlternateUrl
Allowuserformwebserviceproxy Set-SPInfoPathWebServiceProxy Use os parâmetros AllowForUserForms e Identity .
Allowwebserviceproxy Set-SPInfoPathWebServiceProxy Use os parâmetros AllowWebServiceProxy e Identity .
Autenticação Set-SPWebApplication Use os parâmetros AuthenticationMethod ou AuthenticationProvider .
Backup Backup-SPConfigurationDatabaseBackup-SPFarmBackup-SPSite
Histórico de backup Get-SPBackupHistory
Serviço de associação Nenhum
Blockedfilelist Nenhum
Cancelarmação Nenhum
Changepermissionpolicy Nenhum
Copyappbincontent Install-SPApplicationContent
Createadminvs New-SPCentralAdministration
Criar grupo Nenhum
Criar site New-SPSite
Createsiteinnewdb New-SPSite Use o parâmetro ContentDatabase. New-SPContentDatabase
Createweb New-SPWeb
Reparo do banco de dados Use Get-SPContentDatabaseOrphanedData para detectar dados órfãos, mas observe que ele não repara dados órfãos.
Desativar recurso Disable-SPFeature
Desativar formuláriomodelo Disable-SPInfoPathFormTemplate
Deleteadminvs Remove-SPCentralAdministration
Excluirdomínio alternativo Remove-SPAlternateUrl
Deleteconfigdb Disconnect-SPConfigurationDatabase
Deletecontentdb Dismount-SPContentDatabase
Excluirgrupo Nenhum
Deletepath Remove-SPManagedPath
Deletepermissionpolicy Nenhum
Excluir site Remove-SPSite
Excluirsolução Remove-SPSolution
Deletetemplate Nenhum
Excluirusuário Remove-SPUser
Excluirweb Remove-SPWeb
Excluirwppack Uninstall-SPWebPartPack
Deletezoneurl Remove-SPAlternateUrl
Deploysolution Install-SPSolution
Deploywppack Install-SPWebPartPack
Disablessc Nenhum
Solução de exibição Get-SPSolution
Editcontentdeploymentpath Set-SPContentDeploymentPath
Email Use Set-SPWebApplication com o conjunto de parâmetros -SMTPServer.
Enablessc Nenhum
Enumallwebs Get-SPContentDatabaseOrphanedData
Enumalternatedomains Get-SPAlternateURL
Enumcontentdbs Get-SPContentDatabase
Enumdataconnectionfiledependants Get-SPDataConnectionFileDependent
Enumdataconnectionfiles Get-SPDataConnectionFile
Enumdeployments Nenhum
Enumexemptuseragents Get-SPInfoPathUserAgent
Enumformtemplates Get-SPInfoPathFormTemplate
Grupos de enumerações Nenhum
Enumerações Nenhum
Serviços de enumeração Get-SPServiceInstance
Enumerações Get-SPSiteAdministration (Para executar este cmdlet, você deve ser membro do grupo Administradores de Farm.) Get-SPSite (Para executar este cmdlet, você deve ser um administrador local no computador em que o SharePoint Server está instalado.)
Soluções de Enumeração Get-SPSolution
Enumsubwebs Get-SPWeb
Modelos de enumeração Get-SPWebTemplate
Enumeradores Get-SPUser
Enumwppacks Get-SPWebPartPack
Enumzoneurls Get-SPAlternateURL
execadmsvcjobs Start-SPAdminJob
Export Export-SPWeb
Extensões New-SPWebApplication
Extendvsinwebfarm New-SPWebApplicationExtension
Forcedeletelist Nenhum
Getadminport Get-SPWebApplication Use a seguinte sintaxe: Get-SPWebApplication -IncludeCentralAdministration| ? {$_.IsAdministrationWebApplication -eq $true}
Propriedade Getdataconnectionfileproperty Get-SPDataConnectionFile Use a seguinte sintaxe: Get-SPDataConnectionFile| where {$_.Name -eq "dataConFileName"}| format-list
Propriedade Getformtemplateproperty Get-SPInfoPathFormTemplate Use a seguinte sintaxe: Get-SPInfoPathFormTemplate| where {$_.DisplayName -eq "formTemplateName"}| format-list
Getosearchsetting Nenhum
Getproperty Get-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
GetSitelock Get-SPSiteAdministration
Getsiteuseraccountdirectorypath Use Get-SPSite para obter o objeto do site e, em seguida, gere a propriedade UserAccountDirectoryPath.
Zona de geturl Get-SPAlternateURL
Importação Import-SPWeb
Installfeature Install-SPFeature
Listlogginglevels Get-SPLogLevel
Listqueryprocessoroptions Nenhum
ListregisteredSecurityTrimmers Get-SPEnterpriseSearchSecurityTrimmer
Localupgradestatus Nenhuma. No entanto, Get-SPPendingUpgradeActions fornece informações semelhantes.
Managepermissionpolicylevel Nenhum
Mergecontentdbs Move-SPSite
Migrateuser Move-SPUser
Opesquisar Para os parâmetros Osearchfarmcontactemail, farmperformancelevel, farmserviceaccount e farmservicepassword, use os cmdlets Get-SPEnterpriseSearchService e Set-SPEnterpriseSearchService. Para os parâmetros Osearchstart e stop, use os cmdlets Start-SPEnterpriseSearchServiceInstance e Stop-SPEnterpriseSearchServiceInstance, respectivamente. Para o parâmetro Osearchdefaultindexlocation, use o cmdlet Get-SPEnterpriseSearchServiceInstance.
Osearchdiacriticsensitive Use o cmdlet Get-SPEnterpriseSearchServiceApplication para recuperar o aplicativo de serviço de Pesquisa específico e use o parâmetro DiacriticSensitive do cmdlet Set-SPEnterpriseSearchServiceApplication.
Profilechangelog Nenhuma. No entanto, você poderá usar a operação profilechangelog Stsadm se substituir o nome SSP (Provedor de Serviços Compartilhados) pelo nome SA (aplicativo de serviço): stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries
Serviço de provisionamento Start-SPServiceInstance
Parar de fazer farm Nenhum
Quiescefarmstatus Nenhum
Quiesceformtemplate Stop-SPInfoPathFormTemplate
Reconverterallformtemplates Update-SPInfoPathFormTemplate
Refreshdms Nenhum
Refreshsitedms Nenhum
Registersecuritytrimmer New-SPEnterpriseSearchSecurityTrimmer
Registerwsswriter Nenhum
Removedataconnectionfile Uninstall-SPDataConnectionFile
Removedrservice Nenhum
Removeexemptuseragent Remove-SPInfoPathUserAgent
Removeformtemplate Uninstall-SPInfoPathFormTemplate
Removesolutiondeploymentlock Nenhum
Renameserver Rename-SPServer
Renomesite Set-SPSite Use o parâmetro Url .
Renameweb Set-SPWeb Use o parâmetro RelativeUrl .
Restaurar Restore-SPFarmRestore-SPSite
Retraçãosolução Uninstall-SPSolution
Retractwppack Nenhum
Runcontentdeploymentjob Start-SPContentDeploymentJob
Scanforfeatures Install-SPFeature Use o parâmetro Scanforfeatures .
Setadminport Set-SPCentralAdministration
Setapppassword Set-SPApplicationCredentialKeyRemove-SPApplicationCredentialKey
Setconfigdb Connect-SPConfigurationDatabase
Setcontentdeploymentjobschedule Set-SPContentDeploymentJob
Setdataconnectionfileproperty Set-SPDataConnectionFile
Setformtemplateproperty Set-SPInfoPathFormTemplate
Setlogginglevel Set-SPLogLevel
setosearchsetting Nenhum
Setproperty Set-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
Setqueryprocessoroptions Nenhum
Setsitelock Set-SPSiteAdministration Use o parâmetro LockState .
Setsiteuseraccountdirectorypath Set-SPSite Use o parâmetro UserAccountDirectoryPath .
Setworkflowconfig Set-SPWorkflowConfig
Proprietário do site Set-SPSiteAdministration
Sincronizar Update-SPProfileSyncClear-SPContentDatabaseSyncDataGet-SPContentDatabase (com o parâmetro -DaysSinceLastProfileSync)
Solução de sincronização Install-SPSolution Use o parâmetro Synchronize .
Não estendidos Remove-SPWebApplication
Uninstallfeature Uninstall-SPFeature
Unquiescefarm Nenhum
Unquiesceformtemplate Start-SPInfoPathFormTemplate
Cancelar registrosegurançaaparar Remove-SPEnterpriseSearchSecurityTrimmer
Unregisterwsswriter Nenhum
Updateaccountpassword Set-SPManagedAccount
updatealerttemplates Nenhum
Updatefarmcredentials Nenhum
Atualizar Nenhum
Upgradeformtemplate Install-SPInfoPathFormTemplate
Upgradesolution Update-SPSolution
Upgradetargetwebapplication Nenhum
Uploadformtemplate Install-SPInfoPathFormTemplate
Função de usuário Get-SPUserMove-SPUserNew-SPUserRemove-SPUserSet-SPUser
Verifyformtemplate Test-SPInfoPathFormTemplate

Confira também

Outros recursos

Index of Microsoft PowerShell cmdlets for SharePoint Server