Stsadm au mappage de Microsoft PowerShell dans SharePoint Server

 

**Sapplique à :**SharePoint Foundation 2013, SharePoint Server 2013 Enterprise, SharePoint Server 2013 Standard, SharePoint Server 2016

**Dernière rubrique modifiée :**2017-08-24

Résumé : Répertorie les opérations Stsadm et des applets de commande de leurs équivalents PowerShell.

En l’absence de correspondance entre une opération et une applet de commande, le tableau indique 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.

Authentication

Set-SPWebApplication

Utilisez les paramètres AuthenticationMethod ou AuthenticationProvider.

Backup

Backup-SPConfigurationDatabase

Backup-SPFarm

Backup-SPSite

Backuphistory

Get-SPBackupHistory

Binddrservice

Aucune

Blockedfilelist

Aucune

Canceldeployment

Aucune

Changepermissionpolicy

Aucune

Copyappbincontent

Aucune

Createadminvs

New-SPCentralAdministration

Creategroup

Aucune

Createsite

New-SPSite

Createsiteinnewdb

New-SPSite Utilisez le paramètre ContentDatabase.

New-SPContentDatabase

Createweb

New-SPWeb

Databaserepair

Aucune

Deactivatefeature

Disable-SPFeature

Deactivateformtemplate

Disable-SPInfoPathFormTemplate

Deleteadminvs

Aucune

Deletealternatedomain

Remove-SPAlternateUrl

Deleteconfigdb

Remove-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

Aucune

Enablessc

Aucune

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.)

Get-SPSite (Pour exécuter cette applet de commande, vous devez être un administrateur local sur l’ordinateur où est installé le 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

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 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 de service de recherche spécifique, puis utilisez le paramètre DiacriticSensitive de l’applet de commande Set-SPEnterpriseSearchServiceApplication.

Profilechangelog

Aucune

Toutefois, vous pouvez utiliser l’opération Stsadm profilechangelog si vous remplacez le nom du fournisseur de services partagés par le nom de l’application de service :

stsadm -o profilechangelog
-title <SA name>
-daysofhistory <number of days>
-generateanniversaries

Pour plus d’informations sur les applications de service, voir À propos des applications de service et des services dans SharePoint Server.

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.

Restore

Restore-SPFarm

Restore-SPSite

Retractsolution

Uninstall-SPSolution

Retractwppack

Aucune

Runcontentdeploymentjob

Start-SPContentDeploymentJob

Scanforfeatures

Install-SPFeature

Utilisez le paramètre Scanforfeatures.

Setadminport

Set-SPCentralAdministration

Setapppassword

Aucune

Setconfigdb

Connect-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

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

See also

Applets de commande PowerShell de index de Microsoft SharePoint Server