"Stsadm" zu Microsoft PowerShell Mapping in SharePoint ServerStsadm to Microsoft PowerShell mapping in SharePoint Server

gilt für: ja2013 ja2016 ja2019 NeinSharePoint OnlineAPPLIES TO: yes2013 yes2016 yes2019 noSharePoint Online

Wenn keine 1:1-Zuordnung zwischen den Vorgängen und Cmdlets vorliegt, werden in der Tabelle die spezifischen PowerShell-Parameter aufgelistet, die Sie zum Abrufen der gleichen Funktionalität verwenden müssen.Where there is no one-to-one mapping between the operations and cmdlets, the table lists the specific PowerShell parameters you must use to get the same functionality.

Stsadm operationStsadm operation Windows PowerShell cmdletWindows PowerShell cmdlet
ActivatefeatureActivatefeature Enable-SPFeatureEnable-SPFeature
ActivateformtemplateActivateformtemplate Enable-SPInfoPathFormTemplateEnable-SPInfoPathFormTemplate
AddalternatedomainAddalternatedomain New-SPAlternateUrlNew-SPAlternateUrl
AddcontentdbAddcontentdb Mount-SPContentDatabase New-SPContentDatabase Mount-SPContentDatabase New-SPContentDatabase
AddexemptuseragentAddexemptuseragent Add-SPInfoPathUserAgentAdd-SPInfoPathUserAgent
AddpathAddpath New-SPManagedPathNew-SPManagedPath
AddpermissionpolicyAddpermissionpolicy KeineNone
AddsolutionAddsolution Add-SPSolutionAdd-SPSolution
AddtemplateAddtemplate KeineNone
AdduserAdduser New-SPUserNew-SPUser
AddwppackAddwppack Install-SPWebPartPackInstall-SPWebPartPack
AddzoneurlAddzoneurl New-SPAlternateUrlNew-SPAlternateUrl
AllowuserformwebserviceproxyAllowuserformwebserviceproxy Gruppe-SPInfoPathWebServiceProxy Verwenden Sie die Parameter AllowForUserForms und Identity .Set-SPInfoPathWebServiceProxy Use the AllowForUserForms and Identity parameters.
AllowwebserviceproxyAllowwebserviceproxy Gruppe-SPInfoPathWebServiceProxy Verwenden Sie die Parameter AllowWebServiceProxy und Identity .Set-SPInfoPathWebServiceProxy Use the AllowWebServiceProxy and Identity parameters.
AuthentifizierungAuthentication Gruppe-SPWebApplication Verwenden Sie die Parameter AuthenticationMethod oder AuthenticationProvider .Set-SPWebApplication Use the AuthenticationMethod or AuthenticationProvider parameters.
SicherungBackup Sicherung-SPConfigurationDatabase Sicherung-Aufzucht Sicherung-SPSite Backup-SPConfigurationDatabase Backup-SPFarm Backup-SPSite
BackuphistoryBackuphistory Get-SPBackupHistoryGet-SPBackupHistory
BinddrserviceBinddrservice KeineNone
BlockedfilelistBlockedfilelist KeineNone
CanceldeploymentCanceldeployment KeineNone
ChangepermissionpolicyChangepermissionpolicy KeineNone
CopyappbincontentCopyappbincontent Install-SPApplicationContentInstall-SPApplicationContent
CreateadminvsCreateadminvs New-SPCentralAdministrationNew-SPCentralAdministration
CreategroupCreategroup KeineNone
CreatesiteCreatesite New-SPSiteNew-SPSite
CreatesiteinnewdbCreatesiteinnewdb New-SPSite Verwenden Sie den ContentDatabase -Parameter.New-SPSite Use the ContentDatabase parameter. New-SPContentDatabaseNew-SPContentDatabase
CreatewebCreateweb New-SPWebNew-SPWeb
DatabaserepairDatabaserepair Verwenden Sie Get-SPContentDatabaseOrphanedData , um verwaiste Daten zu erkennen, aber beachten Sie, dass verwaiste Daten nicht repariert werden.Use Get-SPContentDatabaseOrphanedData to detect orphaned data, but note that it does not repair orphaned data.
DeactivatefeatureDeactivatefeature Disable-SPFeatureDisable-SPFeature
DeactivateformtemplateDeactivateformtemplate Disable-SPInfoPathFormTemplateDisable-SPInfoPathFormTemplate
DeleteadminvsDeleteadminvs Remove-SPCentralAdministrationRemove-SPCentralAdministration
DeletealternatedomainDeletealternatedomain Remove-SPAlternateUrlRemove-SPAlternateUrl
DeleteconfigdbDeleteconfigdb Disconnect-SPConfigurationDatabaseDisconnect-SPConfigurationDatabase
DeletecontentdbDeletecontentdb Dismount-SPContentDatabaseDismount-SPContentDatabase
DeletegroupDeletegroup KeineNone
DeletepathDeletepath Remove-SPManagedPathRemove-SPManagedPath
DeletepermissionpolicyDeletepermissionpolicy KeineNone
DeletesiteDeletesite Remove-SPSiteRemove-SPSite
DeletesolutionDeletesolution Remove-SPSolutionRemove-SPSolution
DeletetemplateDeletetemplate KeineNone
DeleteuserDeleteuser Remove-SPUserRemove-SPUser
DeletewebDeleteweb Remove-SPWebRemove-SPWeb
DeletewppackDeletewppack Deinstallieren-SPWebPartPackUninstall-SPWebPartPack
DeletezoneurlDeletezoneurl Remove-SPAlternateUrlRemove-SPAlternateUrl
DeploysolutionDeploysolution Install-SPSolutionInstall-SPSolution
DeploywppackDeploywppack Install-SPWebPartPackInstall-SPWebPartPack
DisablesscDisablessc KeineNone
DisplaysolutionDisplaysolution Get-SPSolutionGet-SPSolution
EditcontentdeploymentpathEditcontentdeploymentpath Gruppe-SPContentDeploymentPathSet-SPContentDeploymentPath
EmailEmail Verwenden Sie SPWebApplication mit dem-SmtpServer-Parametersatzes.Use Set-SPWebApplication with the -SMTPServer parameter set.
EnablesscEnablessc KeineNone
EnumallwebsEnumallwebs Get-SPContentDatabaseOrphanedDataGet-SPContentDatabaseOrphanedData
EnumalternatedomainsEnumalternatedomains Get-SPAlternateURLGet-SPAlternateURL
EnumcontentdbsEnumcontentdbs Get-SPContentDatabaseGet-SPContentDatabase
EnumdataconnectionfiledependantsEnumdataconnectionfiledependants Get-SPDataConnectionFileDependentGet-SPDataConnectionFileDependent
EnumdataconnectionfilesEnumdataconnectionfiles Get-SPDataConnectionFileGet-SPDataConnectionFile
EnumdeploymentsEnumdeployments KeineNone
EnumexemptuseragentsEnumexemptuseragents Get-SPInfoPathUserAgentGet-SPInfoPathUserAgent
EnumformtemplatesEnumformtemplates Get-SPInfoPathFormTemplateGet-SPInfoPathFormTemplate
EnumgroupsEnumgroups KeineNone
EnumrolesEnumroles KeineNone
EnumservicesEnumservices Get-SPServiceInstanceGet-SPServiceInstance
EnumsitesEnumsites Get-SPSiteAdministration (Zum Ausführen dieses Cmdlets müssen Sie Mitglied der Gruppe der Farm Administratoren sein.) Get-SPSite (Zum Ausführen dieses Cmdlets müssen Sie ein lokaler Administrator auf dem Computer sein, auf dem SharePoint Server installiert ist.)Get-SPSiteAdministration (To run this cmdlet, you must be a member of the Farm Administrators group.) Get-SPSite (To run this cmdlet, you must be a local administrator on the computer where SharePoint Server is installed.)
EnumsolutionsEnumsolutions Get-SPSolutionGet-SPSolution
EnumsubwebsEnumsubwebs Get-SPWebGet-SPWeb
EnumtemplatesEnumtemplates Get-SPWebTemplateGet-SPWebTemplate
EnumusersEnumusers Get-SPUserGet-SPUser
EnumwppacksEnumwppacks Get-SPWebPartPackGet-SPWebPartPack
EnumzoneurlsEnumzoneurls Get-SPAlternateURLGet-SPAlternateURL
ExecadmsvcjobsExecadmsvcjobs Start-SPAdminJobStart-SPAdminJob
ExportExport Export-SPWebExport-SPWeb
ExtendvsExtendvs New-SPWebApplicationNew-SPWebApplication
ExtendvsinwebfarmExtendvsinwebfarm New-SPWebApplicationExtensionNew-SPWebApplicationExtension
ForcedeletelistForcedeletelist KeineNone
GetadminportGetadminport Get-SPWebApplication Verwenden Sie die folgende Syntax:Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true}Get-SPWebApplication Use the following syntax: Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true}
Getdataconnectionfileproperty propertyGetdataconnectionfileproperty property Get-SPDataConnectionFile Verwenden Sie die folgende Syntax:Get-SPDataConnectionFile | where {$_.Name -eq "dataConFileName"} | format-listGet-SPDataConnectionFile Use the following syntax: Get-SPDataConnectionFile | where {$_.Name -eq "dataConFileName"} | format-list
Getformtemplateproperty -EigenschaftGetformtemplateproperty property Get-SPInfoPathFormTemplate Verwenden Sie die folgende Syntax:Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq "formTemplateName"} | format-listGet-SPInfoPathFormTemplate Use the following syntax: Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq "formTemplateName"} | format-list
GetosearchsettingGetosearchsetting KeineNone
GetpropertyGetproperty Get-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Gruppe-SPTimerJob Start-SPTimerJob Get-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Set-SPTimerJob Start-SPTimerJob
GetsitelockGetsitelock Get-SPSiteAdministrationGet-SPSiteAdministration
GetsiteuseraccountdirectorypathGetsiteuseraccountdirectorypath KeineNone
GeturlzoneGeturlzone Get-SPAlternateURLGet-SPAlternateURL
ImportImport Import-SPWebImport-SPWeb
InstallfeatureInstallfeature Install-SPFeatureInstall-SPFeature
ListlogginglevelsListlogginglevels Get-SPLogLevelGet-SPLogLevel
ListqueryprocessoroptionsListqueryprocessoroptions KeineNone
ListregisteredsecuritytrimmersListregisteredsecuritytrimmers Get-SPEnterpriseSearchSecurityTrimmerGet-SPEnterpriseSearchSecurityTrimmer
LocalupgradestatusLocalupgradestatus KeineNone
ManagepermissionpolicylevelManagepermissionpolicylevel KeineNone
MergecontentdbsMergecontentdbs Move-SPSiteMove-SPSite
MigrateuserMigrateuser Move-SPUserMove-SPUser
OsearchOsearch Für die Osearch-Parameter farmcontactemail, farmperformancelevel, farmserviceaccount und farmservicepassword verwenden Sie das Get-SPEnterpriseSearchService- und das Set-SPEnterpriseSearchService-Cmdlet.For the Osearch parameters farmcontactemail, farmperformancelevel, farmserviceaccount, and farmservicepassword, use the Get-SPEnterpriseSearchService and Set-SPEnterpriseSearchService cmdlets. Für die Osearch-Parameter start und stop verwenden Sie das Start-SPEnterpriseSearchServiceInstance-Cmdlet bzw. das Stop-SPEnterpriseSearchServiceInstance-Cmdlet.For the Osearch parameters start and stop, use the Start-SPEnterpriseSearchServiceInstance and Stop-SPEnterpriseSearchServiceInstance cmdlets, respectively. Für den Osearch-Parameter defaultindexlocation verwenden Sie das Get-SPEnterpriseSearchServiceInstance-Cmdlet.For the Osearch parameter defaultindexlocation, use the Get-SPEnterpriseSearchServiceInstance cmdlet.
OsearchdiacriticsensitiveOsearchdiacriticsensitive Verwenden Sie das Get-SPEnterpriseSearchServiceApplication-Cmdlet, um die jeweilige Suchdienstanwendung abzurufen, und verwenden Sie dann den DiacriticSensitive-Parameter aus dem Set-SPEnterpriseSearchServiceApplication-Cmdlet.Use the Get-SPEnterpriseSearchServiceApplication cmdlet to retrieve the specific Search service application, and then use DiacriticSensitive parameter from the Set-SPEnterpriseSearchServiceApplication cmdlet.
ProfilechangelogProfilechangelog Keine.None. Sie können den Stsadm- Profilechangelog -Vorgang jedoch verwenden, wenn Sie den SSP-Namen (Shared Services Provider, Anbieter für gemeinsame Dienste) durch den Namen der Dienstanwendung (SA) ersetzen:stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversariesHowever, you can use the Stsadm profilechangelog operation if you replace the Shared Services Provider (SSP) name with the service application (SA) name: stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries
ProvisionserviceProvisionservice Start-SPServiceInstanceStart-SPServiceInstance
QuiescefarmQuiescefarm KeineNone
QuiescefarmstatusQuiescefarmstatus KeineNone
QuiesceformtemplateQuiesceformtemplate Stop-SPInfoPathFormTemplateStop-SPInfoPathFormTemplate
ReconvertallformtemplatesReconvertallformtemplates Update-SPInfoPathFormTemplateUpdate-SPInfoPathFormTemplate
RefreshdmsRefreshdms KeineNone
RefreshsitedmsRefreshsitedms KeineNone
RegistersecuritytrimmerRegistersecuritytrimmer New-SPEnterpriseSearchSecurityTrimmerNew-SPEnterpriseSearchSecurityTrimmer
RegisterwsswriterRegisterwsswriter KeineNone
RemovedataconnectionfileRemovedataconnectionfile Deinstallieren-SPDataConnectionFileUninstall-SPDataConnectionFile
RemovedrserviceRemovedrservice KeineNone
RemoveexemptuseragentRemoveexemptuseragent Remove-SPInfoPathUserAgentRemove-SPInfoPathUserAgent
RemoveformtemplateRemoveformtemplate Deinstallieren-SPInfoPathFormTemplateUninstall-SPInfoPathFormTemplate
RemovesolutiondeploymentlockRemovesolutiondeploymentlock KeineNone
RenameserverRenameserver Rename-SPServerRename-SPServer
RenamesiteRenamesite Gruppe-SPSite Verwenden Sie den URL -Parameter.Set-SPSite Use the Url parameter.
RenamewebRenameweb Gruppe-SPWeb Verwenden Sie den RelativeUrl -Parameter.Set-SPWeb Use the RelativeUrl parameter.
WiederherstellenRestore Wiederherstellung-Aufzucht Restore-SPSite Restore-SPFarm Restore-SPSite
RetractsolutionRetractsolution Uninstall-SPSolutionUninstall-SPSolution
RetractwppackRetractwppack KeineNone
RuncontentdeploymentjobRuncontentdeploymentjob Start-SPContentDeploymentJobStart-SPContentDeploymentJob
ScanforfeaturesScanforfeatures Install-Feature Verwenden Sie den Scanforfeatures -Parameter.Install-SPFeature Use the Scanforfeatures parameter.
SetadminportSetadminport Gruppe-SPCentralAdministrationSet-SPCentralAdministration
SetapppasswordSetapppassword Gruppe-SPApplicationCredentialKey Remove-SPApplicationCredentialKeySet-SPApplicationCredentialKey Remove-SPApplicationCredentialKey
SetconfigdbSetconfigdb Connect-SPConfigurationDatabaseConnect-SPConfigurationDatabase
SetcontentdeploymentjobscheduleSetcontentdeploymentjobschedule Gruppe-SPContentDeploymentJobSet-SPContentDeploymentJob
SetdataconnectionfilepropertySetdataconnectionfileproperty Gruppe-SPDataConnectionFileSet-SPDataConnectionFile
SetformtemplatepropertySetformtemplateproperty Gruppe-SPInfoPathFormTemplateSet-SPInfoPathFormTemplate
SetlogginglevelSetlogginglevel Gruppe-SPLogLevelSet-SPLogLevel
SetosearchsettingSetosearchsetting KeineNone
SetpropertySetproperty Gruppe-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Gruppe-SPTimerJob Start-SPTimerJob Set-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Set-SPTimerJob Start-SPTimerJob
SetqueryprocessoroptionsSetqueryprocessoroptions KeineNone
SetsitelockSetsitelock Gruppe-SPSiteAdministration Verwenden Sie den LockState -Parameter.Set-SPSiteAdministration Use the LockState parameter.
SetsiteuseraccountdirectorypathSetsiteuseraccountdirectorypath Get-SPSiteSubscription New-SPSiteSubscription Remove-SPSiteSubscription Get-SPSiteSubscription New-SPSiteSubscription Remove-SPSiteSubscription
SetworkflowconfigSetworkflowconfig Gruppe-SPWorkflowConfigSet-SPWorkflowConfig
SiteownerSiteowner Gruppe-SPSiteAdministrationSet-SPSiteAdministration
SyncSync Update-SPProfileSync Clear-SPContentDatabaseSyncData Get-SPContentDatabase (mit dem Parameter "-DaysSinceLastProfileSync")Update-SPProfileSync Clear-SPContentDatabaseSyncData Get-SPContentDatabase (with the -DaysSinceLastProfileSync parameter)
SyncsolutionSyncsolution Install- Auflösungen Verwenden Sie den Synchronize -Parameter.Install-SPSolution Use the Synchronize parameter.
UnextendvsUnextendvs Remove-SPWebApplicationRemove-SPWebApplication
UninstallfeatureUninstallfeature Uninstall-SPFeatureUninstall-SPFeature
UnquiescefarmUnquiescefarm KeineNone
UnquiesceformtemplateUnquiesceformtemplate Start-SPInfoPathFormTemplateStart-SPInfoPathFormTemplate
UnregistersecuritytrimmerUnregistersecuritytrimmer Remove-SPEnterpriseSearchSecurityTrimmerRemove-SPEnterpriseSearchSecurityTrimmer
UnregisterwsswriterUnregisterwsswriter KeineNone
UpdateaccountpasswordUpdateaccountpassword Gruppe-SPManagedAccountSet-SPManagedAccount
UpdatealerttemplatesUpdatealerttemplates KeineNone
UpdatefarmcredentialsUpdatefarmcredentials KeineNone
UpgradeUpgrade KeineNone
UpgradeformtemplateUpgradeformtemplate Install-SPInfoPathFormTemplateInstall-SPInfoPathFormTemplate
UpgradesolutionUpgradesolution Update-SPSolutionUpdate-SPSolution
UpgradetargetwebapplicationUpgradetargetwebapplication KeineNone
UploadformtemplateUploadformtemplate Install-SPInfoPathFormTemplateInstall-SPInfoPathFormTemplate
UserroleUserrole Get-Benutzer Verschiebe-Benutzer New-Benutzer Remove-Benutzer Gruppe-Benutzer Get-SPUser Move-SPUser New-SPUser Remove-SPUser Set-SPUser
VerifyformtemplateVerifyformtemplate Test-SPInfoPathFormTemplateTest-SPInfoPathFormTemplate

Siehe auchSee also

Weitere RessourcenOther Resources

Index of Microsoft PowerShell cmdlets for SharePoint ServerIndex of Microsoft PowerShell cmdlets for SharePoint Server