Compartilhar via


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

Quando não existe um mapeamento um-para-um entre as operações e os cmdlets, a tabela lista os parâmetros específicos do PowerShell que tem de utilizar para obter a mesma funcionalidade.

   
Operação Stsadm Cmdlet do Windows PowerShell
Ativarfeature Enable-SPFeature
Ativarformtemplate Enable-SPInfoPathFormTemplate
Addalternatedomain New-SPAlternateUrl
Addcontentdb Mount-SPContentDatabaseNew-SPContentDatabase
Addexemptuseragent Add-SPInfoPathUserAgent
Addpath New-SPManagedPath
Addpermissionpolicy Nenhum
Addsolution Add-SPSolution
Addtemplate Nenhum
Adduser New-SPUser
Addwppack Install-SPWebPartPack
Addzoneurl New-SPAlternateUrl
Allowuserformwebserviceproxy Set-SPInfoPathWebServiceProxy Utilize os parâmetros AllowForUserForms e Identity .
Allowwebserviceproxy Set-SPInfoPathWebServiceProxy Utilize os parâmetros AllowWebServiceProxy e Identity .
Autenticação Set-SPWebApplication Utilize os parâmetros AuthenticationMethod ou AuthenticationProvider .
Backup Backup-SPConfigurationDatabaseBackup-SPFarmBackup-SPSite
Cópia de segurançahistory Get-SPBackupHistory
Binddrservice Nenhum
Lista de ficheiros bloqueados Nenhum
Canceldeployment Nenhum
Changepermissionpolicy Nenhum
Copyappbincontent Install-SPApplicationContent
Createadminvs New-SPCentralAdministration
Criar grupo Nenhum
Createsite New-SPSite
Createsiteinnewdb New-SPSite Use o parâmetro ContentDatabase. New-SPContentDatabase
Criarweb New-SPWeb
Databaserepair Utilize Get-SPContentDatabaseOrphanedData para detetar dados órfãos, mas tenha em atenção que não repara dados órfãos.
Desativarfeatura Disable-SPFeature
Desativarformtemplate Disable-SPInfoPathFormTemplate
Deleteadminvs Remove-SPCentralAdministration
Deletealternatedomain Remove-SPAlternateUrl
Eliminarconfigdb Disconnect-SPConfigurationDatabase
Deletecontentdb Dismount-SPContentDatabase
Eliminar grupo Nenhum
Deletepath Remove-SPManagedPath
Deletepermissionpolicy Nenhum
Eliminarite Remove-SPSite
Deletesolution Remove-SPSolution
Deletetemplate Nenhum
Deleteuser Remove-SPUser
Eliminarweb Remove-SPWeb
Deletewppack Uninstall-SPWebPartPack
Deletezoneurl Remove-SPAlternateUrl
Deploysolution Install-SPSolution
Deploywppack Install-SPWebPartPack
Desativarc Nenhum
Apresentação Get-SPSolution
Editcontentdeploymentpath Set-SPContentDeploymentPath
Email Utilize Set-SPWebApplication com o parâmetro -SMTPServer definido.
Enablessc Nenhum
Enumallwebs Get-SPContentDatabaseOrphanedData
Enumalternatedomains Get-SPAlternateURL
Enumcontentdbs Get-SPContentDatabase
Enumdataconnectionfiledependants Get-SPDataConnectionFileDependent
Enumdataconnectionfiles Get-SPDataConnectionFile
Enumerações Nenhum
Enumexemptuseragents Get-SPInfoPathUserAgent
Modelos de enumeração Get-SPInfoPathFormTemplate
Enumgroups Nenhum
Enumerações Nenhum
Enumservices Get-SPServiceInstance
Enumerações Get-SPSiteAdministration (para executar este cmdlet, tem de ser membro do grupo Administradores do Farm.) Get-SPSite (para executar este cmdlet, tem de ser um administrador local no computador onde o SharePoint Server está instalado.)
Enumerações 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
Extendvs New-SPWebApplication
Extendvsinwebfarm New-SPWebApplicationExtension
Forcedeletelist Nenhum
Getadminport Get-SPWebApplication Utilize a seguinte sintaxe: Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true}
Propriedade Getdataconnectionfileproperty Get-SPDataConnectionFile Utilize a seguinte sintaxe: Get-SPDataConnectionFile | where {$_.Name -eq "dataConFileName"} | format-list
Propriedade Getformtemplateproperty Get-SPInfoPathFormTemplate Utilize a seguinte sintaxe: Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq "formTemplateName"} | format-list
Getosearchsetting Nenhum
Obter propriedade Get-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
Getsitelock Get-SPSiteAdministration
Getsiteuseraccountdirectorypath Nenhum
Geturlzone Get-SPAlternateURL
Importação Import-SPWeb
Installfeature Install-SPFeature
Listlogginglevels Get-SPLogLevel
Listqueryprocessoroptions Nenhum
Listregisteredsecuritytrimmers Get-SPEnterpriseSearchSecurityTrimmer
Localupgradestatus Nenhum
Managepermissionpolicylevel Nenhum
Mergecontentdbs Move-SPSite
Migrador Move-SPUser
Osearch 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, pode utilizar a operação stsadm profilechangelog se substituir o nome do Fornecedor de Serviços Partilhados (SSP) pelo nome da aplicação de serviço (SA): stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries
Serviço de aprovisionamento Start-SPServiceInstance
Quiescefarm Nenhum
Quiescefarmstatus Nenhum
Quiesceformtemplate Stop-SPInfoPathFormTemplate
Reconvertallformtemplates Update-SPInfoPathFormTemplate
Refreshdms Nenhum
Refreshsitedms Nenhum
Registarsecuritytrimmer New-SPEnterpriseSearchSecurityTrimmer
Registerwsswriter Nenhum
Removedataconnectionfile Uninstall-SPDataConnectionFile
Removedrservice Nenhum
Removeexemptuseragent Remove-SPInfoPathUserAgent
Removerformtemplate Uninstall-SPInfoPathFormTemplate
Removesolutiondeploymentlock Nenhum
Renameserver Rename-SPServer
Mudar o nome do site Set-SPSite Utilize o parâmetro URL .
Mudar o nomeweb Set-SPWeb Utilize o parâmetro RelativeUrl .
Restaurar Restore-SPFarmRestore-SPSite
Retrairesolução Uninstall-SPSolution
Retrairwppack Nenhum
Runcontentdeploymentjob Start-SPContentDeploymentJob
Scanforfeatures Install-SPFeature Utilize o parâmetro Scanforfeatures .
Setadminport Set-SPCentralAdministration
Setapppassword Set-SPApplicationCredentialKeyRemove-SPApplicationCredentialKey
Setconfigdb Connect-SPConfigurationDatabase
Setcontentdeploymentjobschedule Set-SPContentDeploymentJob
Setdataconnectionfileproperty Set-SPDataConnectionFile
Setformtemplateproperty Set-SPInfoPathFormTemplate
Definir nível de registo Set-SPLogLevel
Setosearchsetting Nenhum
Definir propriedade Set-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
Setqueryprocessoroptions Nenhum
Setsitelock Set-SPSiteAdministration Utilize o parâmetro LockState .
Setsiteuseraccountdirectorypath Get-SPSiteSubscriptionNew-SPSiteSubscriptionRemove-SPSiteSubscription
Configuração do fluxo de trabalho Set-SPWorkflowConfig
Siteowner Set-SPSiteAdministration
Sincronizar Update-SPProfileSyncClear-SPContentDatabaseSyncDataGet-SPContentDatabase (com o parâmetro -DaysSinceLastProfileSync)
Sincronização Install-SPSolution Utilize o parâmetro Synchronize .
Unextendvs Remove-SPWebApplication
Desinstallfeature Uninstall-SPFeature
Unquiescefarm Nenhum
Unquiesceformtemplate Start-SPInfoPathFormTemplate
Unregistersecuritytrimmer Remove-SPEnterpriseSearchSecurityTrimmer
Unregisterwsswriter Nenhum
Updateaccountpassword Set-SPManagedAccount
Updatealerttemplates Nenhum
Updatefarmcredentials Nenhum
Atualizar Nenhum
Atualizarformtemplate Install-SPInfoPathFormTemplate
Atualizaçõesolução Update-SPSolution
Upgradetargetwebapplication Nenhum
Uploadformtemplate Install-SPInfoPathFormTemplate
Userrole Get-SPUserMove-SPUserNew-SPUserRemove-SPUserSet-SPUser
Verifyformtemplate Test-SPInfoPathFormTemplate

Confira também

Outros recursos

Index of Microsoft PowerShell cmdlets for SharePoint Server