STSADM para asignación de Microsoft PowerShell en SharePoint Server
SE APLICA A:2013 2016 2019 Subscription Edition SharePoint en Microsoft 365
Cuando no hay ninguna asignación uno a uno entre las operaciones de Stsadm y los cmdlets de PowerShell, en la tabla se enumeran los parámetros específicos de PowerShell que debe usar para obtener una funcionalidad similar.
Operación de Stsadm | Cmdlet de Windows PowerShell |
Activatefeature | Enable-SPFeature |
Activateformtemplate | Enable-SPInfoPathFormTemplate |
Addalternatedomain | New-SPAlternateUrl |
Addcontentdb | Mount-SPContentDatabaseNew-SPContentDatabase |
Addexemptuseragent | Add-SPInfoPathUserAgent |
Addpath | New-SPManagedPath |
Addpermissionpolicy | Ninguno |
Addsolution | Add-SPSolution |
Addtemplate | Ninguno |
Adduser | New-SPUser |
Addwppack | Install-SPWebPartPack |
Addzoneurl | New-SPAlternateUrl |
Allowuserformwebserviceproxy | Set-SPInfoPathWebServiceProxy Use los parámetros AllowForUserForms e Identity . |
Allowwebserviceproxy | Set-SPInfoPathWebServiceProxy Use los parámetros AllowWebServiceProxy e Identity . |
Autenticación | Set-SPWebApplication Use los parámetros AuthenticationMethod o AuthenticationProvider . |
Copia de seguridad | Backup-SPConfigurationDatabaseBackup-SPFarmBackup-SPSite |
Backuphistory | Get-SPBackupHistory |
Binddrservice | Ninguno |
Blockedfilelist | Ninguno |
Canceldeployment | Ninguno |
Changepermissionpolicy | Ninguno |
Copyappbincontent | Install-SPApplicationContent |
Createadminvs | New-SPCentralAdministration |
Creategroup | Ninguno |
Createsite | New-SPSite |
Createsiteinnewdb | New-SPSite Use el parámetro ContentDatabase. New-SPContentDatabase |
Createweb | New-SPWeb |
Databaserepair | Use Get-SPContentDatabaseOrphanedData para detectar datos huérfanos, pero tenga en cuenta que no repara los datos huérfanos. |
Deactivatefeature | Disable-SPFeature |
Deactivateformtemplate | Disable-SPInfoPathFormTemplate |
Deleteadminvs | Remove-SPCentralAdministration |
Deletealternatedomain | Remove-SPAlternateUrl |
Deleteconfigdb | Disconnect-SPConfigurationDatabase |
Deletecontentdb | Desmonte-SPContentDatabase |
Deletegroup | Ninguno |
Deletepath | Remove-SPManagedPath |
Deletepermissionpolicy | Ninguno |
Deletesite | Remove-SPSite |
Deletesolution | Remove-SPSolution |
Deletetemplate | Ninguno |
Deleteuser | Remove-SPUser |
Deleteweb | Remove-SPWeb |
Deletewppack | Uninstall-SPWebPartPack |
Deletezoneurl | Remove-SPAlternateUrl |
Deploysolution | Install-SPSolution |
Deploywppack | Install-SPWebPartPack |
Disablessc | Ninguno |
Displaysolution | Get-SPSolution |
Editcontentdeploymentpath | Set-SPContentDeploymentPath |
Correo electrónico | Use Set-SPWebApplication con el parámetro -SMTPServer establecido. |
Enablessc | Ninguno |
Enumallwebs | Get-SPContentDatabaseOrphanedData |
Enumalternatedomains | Get-SPAlternateURL |
Enumcontentdbs | Get-SPContentDatabase |
Enumdataconnectionfiledependants | Get-SPDataConnectionFileDependent |
Enumdataconnectionfiles | Get-SPDataConnectionFile |
Enumdeployments | Ninguno |
Enumexemptuseragents | Get-SPInfoPathUserAgent |
Enumformtemplates | Get-SPInfoPathFormTemplate |
Enumgroups | Ninguno |
Enumroles | Ninguno |
Enumservices | Get-SPServiceInstance |
Enumsites | Get-SPSiteAdministration (Para ejecutar este cmdlet, debe ser miembro del grupo Administradores de la granja de servidores). Get-SPSite (Para ejecutar este cmdlet, debe ser administrador local en el equipo donde está instalado 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 | Ninguno |
Getadminport |
Get-SPWebApplication Use la sintaxis siguiente: Get-SPWebApplication -IncludeCentralAdministration| ? {$_.IsAdministrationWebApplication -eq $true} |
Propiedad Getdataconnectionfileproperty |
Get-SPDataConnectionFile Use la sintaxis siguiente: Get-SPDataConnectionFile| where {$_.Name -eq "dataConFileName"}| format-list |
Propiedad Getformtemplateproperty |
Get-SPInfoPathFormTemplate Use la sintaxis siguiente: Get-SPInfoPathFormTemplate| where {$_.DisplayName -eq "formTemplateName"}| format-list |
Getosearchsetting | Ninguno |
Getproperty | Get-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob |
Getsitelock | Get-SPSiteAdministration |
Getsiteuseraccountdirectorypath | Use Get-SPSite para obtener el objeto de sitio y, a continuación, genere la propiedad UserAccountDirectoryPath. |
Geturlzone | Get-SPAlternateURL |
Import | Import-SPWeb |
Installfeature | Install-SPFeature |
Listlogginglevels | Get-SPLogLevel |
Listqueryprocessoroptions | Ninguno |
Listregisteredsecuritytrimmers | Get-SPEnterpriseSearchSecurityTrimmer |
Localupgradestatus | Ninguno. Sin embargo, Get-SPPendingUpgradeActions proporciona información similar. |
Managepermissionpolicylevel | Ninguno |
Mergecontentdbs | Move-SPSite |
Migrateuser | Move-SPUser |
Osearch | Para Osearch, parámetros farmcontactemail, farmperformancelevel, farmserviceaccount y farmservicepassword, use los cmdlets Get-SPEnterpriseSearchService y Set-SPEnterpriseSearchService. Para Osearch, parámetros start y stop, use los cmdlets Start-SPEnterpriseSearchServiceInstance y Stop-SPEnterpriseSearchServiceInstance respectivamente. Para el parámetro defaultindexlocation de Osearch, use el cmdlet de Get-SPEnterpriseSearchServiceInstance. |
Osearchdiacriticsensitive | Use el cmdlet Get-SPEnterpriseSearchServiceApplication para recuperar la aplicación de servicio de búsqueda específica y, a continuación, use el parámetro DiacriticSensitive del cmdlet Set-SPEnterpriseSearchServiceApplication. |
Profilechangelog | Ninguno. Sin embargo, puede usar la operación profilechangelog de Stsadm si reemplaza el nombre del proveedor de servicios compartidos (SSP) por el nombre de la aplicación de servicio (SA): stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries |
Provisionservice | Start-SPServiceInstance |
Quiescefarm | Ninguno |
Quiescefarmstatus | Ninguno |
Quiesceformtemplate | Stop-SPInfoPathFormTemplate |
Reconvertallformtemplates | Update-SPInfoPathFormTemplate |
Refreshdms | Ninguno |
Refreshsitedms | Ninguno |
Registersecuritytrimmer | New-SPEnterpriseSearchSecurityTrimmer |
Registerwsswriter | Ninguno |
Removedataconnectionfile | Uninstall-SPDataConnectionFile |
Removedrservice | Ninguno |
Removeexemptuseragent | Remove-SPInfoPathUserAgent |
Removeformtemplate | Uninstall-SPInfoPathFormTemplate |
Removesolutiondeploymentlock | Ninguno |
Renameserver | Rename-SPServer |
Renamesite | Set-SPSite Use el parámetro Url . |
Renameweb | Set-SPWeb Use el parámetro RelativeUrl . |
Restaurar | Restore-SPFarmRestore-SPSite |
Retractsolution | Uninstall-SPSolution |
Retractwppack | Ninguno |
Runcontentdeploymentjob | Start-SPContentDeploymentJob |
Scanforfeatures | Install-SPFeature Use el 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 | Ninguno |
Setproperty | Set-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob |
Setqueryprocessoroptions | Ninguno |
Setsitelock | Set-SPSiteAdministration Use el parámetro LockState . |
Setsiteuseraccountdirectorypath | Set-SPSite Use el parámetro UserAccountDirectoryPath . |
Setworkflowconfig | Set-SPWorkflowConfig |
Siteowner | Set-SPSiteAdministration |
Sync | Update-SPProfileSyncClear-SPContentDatabaseSyncDataGet-SPContentDatabase (con el parámetro -DaysSinceLastProfileSync) |
Syncsolution | Install-SPSolution Use el parámetro Synchronize . |
Unextendvs | Remove-SPWebApplication |
Uninstallfeature | Uninstall-SPFeature |
Unquiescefarm | Ninguno |
Unquiesceformtemplate | Start-SPInfoPathFormTemplate |
Unregistersecuritytrimmer | Remove-SPEnterpriseSearchSecurityTrimmer |
Unregisterwsswriter | Ninguno |
Updateaccountpassword | Set-SPManagedAccount |
Updatealerttemplates | Ninguno |
Updatefarmcredentials | Ninguno |
Actualización | Ninguno |
Upgradeformtemplate | Install-SPInfoPathFormTemplate |
Upgradesolution | Update-SPSolution |
Upgradetargetwebapplication | Ninguno |
Uploadformtemplate | Install-SPInfoPathFormTemplate |
Userrole | Get-SPUserMove-SPUserNew-SPUserRemove-SPUserSet-SPUser |
Verifyformtemplate | Test-SPInfoPathFormTemplate |