Stsadm au mappage de Microsoft PowerShell dans SharePoint Server

S’APPLIQUE À :  yes-img-13 2013  yes-img-16 2016  yes-img-19 2019  yes-img-se Subscription Edition  no-img-sop SharePoint in Microsoft 365

Lorsqu’il n’existe aucun mappage un-à-un entre les opérations et les cmdlets, le tableau répertorie les paramètres PowerShell spécifiques que vous devez utiliser pour obtenir les mêmes fonctionnalités.

   
Opération Stsadm Applet de commande Windows PowerShell
Activatefeature Enable-SPFeature
Activateformtemplate Enable-SPInfoPathFormTemplate
Addalternatedomain New-SPAlternateUrl
Addcontentdb Mount-SPContentDatabase New-SPContentDatabase
Addexemptuseragent Add-SPInfoPathUserAgent
Addpath New-SPManagedPath
Addpermissionpolicy Aucune
Addsolution Add-SPSolution
Addtemplate Aucune
Adduser New-SPUser
Addwppack Install-SPWebPartPack
Addzoneurl New-SPAlternateUrl
Allowuserformwebserviceproxy Set-SPInfoPathWebServiceProxy Utilisez les paramètres AllowForUserForms et Identity.
Allowwebserviceproxy Set-SPInfoPathWebServiceProxy Utilisez les paramètres AllowWebServiceProxy et Identity.
Authentification Set-SPWebApplication Utilisez les paramètres AuthenticationMethod ou AuthenticationProvider.
Sauvegarde Backup-SPConfigurationDatabase Backup-SPFarm Backup-SPSite
Backuphistory Get-SPBackupHistory
Binddrservice Aucune
Blockedfilelist Aucune
Canceldeployment Aucune
Changepermissionpolicy Aucune
Copyappbincontent Install-SPApplicationContent
Createadminvs New-SPCentralAdministration
Creategroup Aucune
Createsite New-SPSite
Createsiteinnewdb New-SPSite Utilisez le paramètre ContentDatabase. New-SPContentDatabase
Createweb New-SPWeb
Databaserepair Utilisez Get-SPContentDatabaseOrphanedData pour détecter les données orphelines, mais notez qu’il ne répare pas les données orphelines.
Deactivatefeature Disable-SPFeature
Deactivateformtemplate Disable-SPInfoPathFormTemplate
Deleteadminvs Remove-SPCentralAdministration
Deletealternatedomain Remove-SPAlternateUrl
Deleteconfigdb Disconnect-SPConfigurationDatabase
Deletecontentdb Dismount-SPContentDatabase
Deletegroup Aucune
Deletepath Remove-SPManagedPath
Deletepermissionpolicy Aucune
Deletesite Remove-SPSite
Deletesolution Remove-SPSolution
Deletetemplate Aucune
Deleteuser Remove-SPUser
Deleteweb Remove-SPWeb
Deletewppack Uninstall-SPWebPartPack
Deletezoneurl Remove-SPAlternateUrl
Deploysolution Install-SPSolution
Deploywppack Install-SPWebPartPack
Disablessc Aucune
Displaysolution Get-SPSolution
Editcontentdeploymentpath Set-SPContentDeploymentPath
Email Utilisez Set-SPWebApplication avec le jeu de paramètres -SMTPServer.
Enablessc Aucune
Enumallwebs Get-SPContentDatabaseOrphanedData
Enumalternatedomains Get-SPAlternateURL
Enumcontentdbs Get-SPContentDatabase
Enumdataconnectionfiledependants Get-SPDataConnectionFileDependent
Enumdataconnectionfiles Get-SPDataConnectionFile
Enumdeployments Aucune
Enumexemptuseragents Get-SPInfoPathUserAgent
Enumformtemplates Get-SPInfoPathFormTemplate
Enumgroups Aucune
Enumroles Aucune
Enumservices Get-SPServiceInstance
Enumsites Get-SPSiteAdministration (Pour exécuter cette cmdlet, vous devez être membre du groupe Administrateurs de batterie.) Get-SPSite (Pour exécuter cette cmdlet, vous devez être administrateur local sur l’ordinateur sur lequel SharePoint Server est installé.)
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 Aucune
Getadminport Get-SPWebApplication Utilisez la syntaxe suivante : Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true}
Getdataconnectionfileproperty propriété Get-SPDataConnectionFile Utilisez la syntaxe suivante : Get-SPDataConnectionFile | where {$_.Name -eq "dataConFileName"} | format-list
Getformtemplateproperty propriété Get-SPInfoPathFormTemplate Utilisez la syntaxe suivante : Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq "formTemplateName"} | format-list
Getosearchsetting Aucune
Getproperty Get-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Set-SPTimerJob Start-SPTimerJob
Getsitelock Get-SPSiteAdministration
Getsiteuseraccountdirectorypath Aucune
Geturlzone Get-SPAlternateURL
Import Import-SPWeb
Installfeature Install-SPFeature
Listlogginglevels Get-SPLogLevel
Listqueryprocessoroptions Aucune
Listregisteredsecuritytrimmers Get-SPEnterpriseSearchSecurityTrimmer
Localupgradestatus Aucune
Managepermissionpolicylevel Aucune
Mergecontentdbs Move-SPSite
Migrateuser Move-SPUser
Osearch Pour les paramètres Osearch farmcontactemail, farmperformancelevel, farmserviceaccount et farmservicepassword, utilisez les cmdlets Get-SPEnterpriseSearchService et Set-SPEnterpriseSearchService. Pour le démarrage et l’arrêt des paramètres Osearch, utilisez respectivement les cmdlets Start-SPEnterpriseSearchServiceInstance et Stop-SPEnterpriseSearchServiceInstance. Pour le paramètre Osearch defaultindexlocation, utilisez l’cmdlet Get-SPEnterpriseSearchServiceInstance.
Osearchdiacriticsensitive Utilisez l’cmdlet Get-SPEnterpriseSearchServiceApplication pour récupérer l’application de service de recherche spécifique, puis utilisez le paramètre DiacriticSensitive à partir de l’cmdlet Set-SPEnterpriseSearchServiceApplication.
Profilechangelog Aucune Toutefois, vous pouvez utiliser l’opération Stsadm profilechangelog si vous remplacez le nom du fournisseur de services partagés (SSP) par le nom de l’application de service ( SA) : stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries
Provisionservice Start-SPServiceInstance
Quiescefarm Aucune
Quiescefarmstatus Aucune
Quiesceformtemplate Stop-SPInfoPathFormTemplate
Reconvertallformtemplates Update-SPInfoPathFormTemplate
Refreshdms Aucune
Refreshsitedms Aucune
Registersecuritytrimmer New-SPEnterpriseSearchSecurityTrimmer
Registerwsswriter Aucune
Removedataconnectionfile Uninstall-SPDataConnectionFile
Removedrservice Aucune
Removeexemptuseragent Remove-SPInfoPathUserAgent
Removeformtemplate Uninstall-SPInfoPathFormTemplate
Removesolutiondeploymentlock Aucune
Renameserver Rename-SPServer
Renamesite Set-SPSite Utilisez le paramètre Url.
Renameweb Set-SPWeb Utilisez le paramètre RelativeUrl.
Restaurer Restore-SPFarm Restore-SPSite
Retractsolution Uninstall-SPSolution
Retractwppack Aucune
Runcontentdeploymentjob Start-SPContentDeploymentJob
Scanforfeatures Install-SPFeature Utilisez le paramètre Scanforfeatures.
Setadminport Set-SPCentralAdministration
Setapppassword Set-SPApplicationCredentialKey Remove-SPApplicationCredentialKey
Setconfigdb Connecter-SPConfigurationDatabase
Setcontentdeploymentjobschedule Set-SPContentDeploymentJob
Setdataconnectionfileproperty Set-SPDataConnectionFile
Setformtemplateproperty Set-SPInfoPathFormTemplate
Setlogginglevel Set-SPLogLevel
Setosearchsetting Aucune
Setproperty Set-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Set-SPTimerJob Start-SPTimerJob
Setqueryprocessoroptions Aucune
Setsitelock Set-SPSiteAdministration Utilisez le paramètre LockState.
Setsiteuseraccountdirectorypath Get-SPSiteSubscription New-SPSiteSubscription Remove-SPSiteSubscription
Setworkflowconfig Set-SPWorkflowConfig
Siteowner Set-SPSiteAdministration
Sync Update-SPProfileSync Clear-SPContentDatabaseSyncData Get-SPContentDatabase (avec le paramètre -DaysSinceLastProfileSync)
Syncsolution Install-SPSolution Utilisez le paramètre Synchronize.
Unextendvs Remove-SPWebApplication
Uninstallfeature Uninstall-SPFeature
Unquiescefarm Aucune
Unquiesceformtemplate Start-SPInfoPathFormTemplate
Unregistersecuritytrimmer Remove-SPEnterpriseSearchSecurityTrimmer
Unregisterwsswriter Aucune
Updateaccountpassword Set-SPManagedAccount
Updatealerttemplates Aucune
Updatefarmcredentials Aucune
Upgrade Aucune
Upgradeformtemplate Install-SPInfoPathFormTemplate
Upgradesolution Update-SPSolution
Upgradetargetwebapplication Aucune
Uploadformtemplate Install-SPInfoPathFormTemplate
Userrole Get-SPUser Move-SPUser New-SPUser Remove-SPUser Set-SPUser
Verifyformtemplate Test-SPInfoPathFormTemplate

Voir aussi

Autres ressources

Index of Microsoft PowerShell cmdlets for SharePoint Server