Stsadm au mappage de Microsoft PowerShell dans SharePoint Server

S’APPLIQUE À :oui-img-132013 oui-img-162016 oui-img-192019 oui-img-seÉdition d’abonnement no-img-sopSharePoint dans Microsoft 365

Lorsqu’il n’existe aucun mappage un-à-un entre les opérations et les applets de commande, 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-SPContentDatabaseNew-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-SPConfigurationDatabaseBackup-SPFarmBackup-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’elle 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
Courrier électronique Utilisez Set-SPWebApplication avec le paramètre -SMTPServer défini.
Enablessc Aucun
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 applet de commande, vous devez être membre du groupe Administrateurs de batterie de serveurs.) Get-SPSite (Pour exécuter cette applet de commande, vous devez être un 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-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-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 Osearchfarmcontactemail, farmperformancelevel, farmserviceaccount et farmservicepassword, utilisez les applets de commande Get-SPEnterpriseSearchService et Set-SPEnterpriseSearchService . Pour les paramètres Osearchstart et stop, utilisez les applets de commande Start-SPEnterpriseSearchServiceInstance et Stop-SPEnterpriseSearchServiceInstance , respectivement. Pour le paramètre Osearchdefaultindexlocation, utilisez l’applet de commande Get-SPEnterpriseSearchServiceInstance .
Osearchdiacriticsensitive Utilisez l’applet de commande Get-SPEnterpriseSearchServiceApplication pour récupérer l’application service Search spécifique, puis utilisez le paramètre DiacriticSensitive à partir de l’applet de commande Set-SPEnterpriseSearchServiceApplication.
Profilechangelog Aucun. 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-SPFarmRestore-SPSite
Retractsolution Uninstall-SPSolution
Retractwppack Aucune
Runcontentdeploymentjob Start-SPContentDeploymentJob
Scanforfeatures Install-SPFeature Utilisez le paramètre Scanforfeatures .
Setadminport Set-SPCentralAdministration
Setapppassword Set-SPApplicationCredentialKeyRemove-SPApplicationCredentialKey
Setconfigdb Connect-SPConfigurationDatabase
Setcontentdeploymentjobschedule Set-SPContentDeploymentJob
Setdataconnectionfileproperty Set-SPDataConnectionFile
Setformtemplateproperty Set-SPInfoPathFormTemplate
Setlogginglevel Set-SPLogLevel
Setosearchsetting Aucune
Setproperty Set-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob
Setqueryprocessoroptions Aucune
Setsitelock Set-SPSiteAdministration Utilisez le paramètre LockState .
Setsiteuseraccountdirectorypath Get-SPSiteSubscriptionNew-SPSiteSubscriptionRemove-SPSiteSubscription
Setworkflowconfig Set-SPWorkflowConfig
Siteowner Set-SPSiteAdministration
Sync Update-SPProfileSyncClear-SPContentDatabaseSyncDataGet-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-SPUserMove-SPUserNew-SPUserRemove-SPUserSet-SPUser
Verifyformtemplate Test-SPInfoPathFormTemplate

Voir aussi

Autres ressources

Index of Microsoft PowerShell cmdlets for SharePoint Server