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

Zusammenfassung: Listen Stsadm-Vorgänge und der entsprechenden PowerShell-Cmdlets.Summary: Lists Stsadm operations and their equivalent PowerShell cmdlets.

Keine 1: 1-Zuordnung zwischen den Cmdlets und Vorgänge vorhanden ist, finden Sie in die Tabelle spezifische PowerShell-Parameter, den, die Sie verwenden müssen, um die gleiche Funktionalität zu erhalten.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-SPContentDatabaseMount-SPContentDatabase
New-SPContentDatabaseNew-SPContentDatabase
AddexemptuseragentAddexemptuseragent
Hinzufügen von SPInfoPathUserAgentAdd-SPInfoPathUserAgent
AddpathAddpath
New-SPManagedPathNew-SPManagedPath
AddpermissionpolicyAddpermissionpolicy
KeineNone
AddsolutionAddsolution
Add-SPSolutionAdd-SPSolution
AddtemplateAddtemplate
KeineNone
AdduserAdduser
New-SPUserNew-SPUser
AddwppackAddwppack
Install-spwebpartpack wirdInstall-SPWebPartPack
AddzoneurlAddzoneurl
New-SPAlternateUrlNew-SPAlternateUrl
AllowuserformwebserviceproxyAllowuserformwebserviceproxy
Set-SPInfoPathWebServiceProxySet-SPInfoPathWebServiceProxy
Verwenden Sie den AllowForUserForms - und den Identity -Parameter.Use the AllowForUserForms and Identity parameters.
AllowwebserviceproxyAllowwebserviceproxy
Set-SPInfoPathWebServiceProxySet-SPInfoPathWebServiceProxy
Verwenden Sie den AllowWebServiceProxy - und den Identity -Parameter.Use the AllowWebServiceProxy and Identity parameters.
AuthenticationAuthentication
Set-SPWebApplicationSet-SPWebApplication
Verwenden Sie den AuthenticationMethod - oder den AuthenticationProvider -Parameter.Use the AuthenticationMethod or AuthenticationProvider parameters.
BackupBackup
Backup-SPConfigurationDatabaseBackup-SPConfigurationDatabase
Backup-SPFarmBackup-SPFarm
Backup-SPSiteBackup-SPSite
BackuphistoryBackuphistory
Get-SPBackupHistoryGet-SPBackupHistory
BinddrserviceBinddrservice
KeineNone
BlockedfilelistBlockedfilelist
KeineNone
CanceldeploymentCanceldeployment
KeineNone
ChangepermissionpolicyChangepermissionpolicy
KeineNone
CopyappbincontentCopyappbincontent
KeineNone
CreateadminvsCreateadminvs
Neue 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
KeineNone
DeactivatefeatureDeactivatefeature
Disable-SPFeatureDisable-SPFeature
DeactivateformtemplateDeactivateformtemplate
Disable-SPInfoPathFormTemplateDisable-SPInfoPathFormTemplate
DeleteadminvsDeleteadminvs
KeineNone
DeletealternatedomainDeletealternatedomain
Remove-SPAlternateUrlRemove-SPAlternateUrl
DeleteconfigdbDeleteconfigdb
Remove-SPConfigurationDatabaseRemove-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
Uninstall-spwebpartpack wirdUninstall-SPWebPartPack
DeletezoneurlDeletezoneurl
Remove-SPAlternateUrlRemove-SPAlternateUrl
DeploysolutionDeploysolution
Install-SPSolutionInstall-SPSolution
DeploywppackDeploywppack
Install-spwebpartpack wirdInstall-SPWebPartPack
DisablesscDisablessc
KeineNone
DisplaysolutionDisplaysolution
Get-SPSolutionGet-SPSolution
EditcontentdeploymentpathEditcontentdeploymentpath
Set-SPContentDeploymentPathSet-SPContentDeploymentPath
EmailEmail
KeineNone
EnablesscEnablessc
KeineNone
EnumalternatedomainsEnumalternatedomains
Get-SPAlternateURLGet-SPAlternateURL
EnumcontentdbsEnumcontentdbs
Get-SPContentDatabaseGet-SPContentDatabase
EnumdataconnectionfiledependantsEnumdataconnectionfiledependants
Get-spdataconnectionfiledependent:Get-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 ein Mitglied der Gruppe Farmadministratoren sein.)Get-SPSiteAdministration (To run this cmdlet, you must be a member of the Farm Administrators group.)
Get-SPSite (Zum Ausführen dieses Cmdlets müssen Sie auf dem Computer, auf dem SharePoint-Server installiert ist, ein lokaler Administrator sein.)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-spwebpartpack wirdGet-SPWebPartPack
EnumzoneurlsEnumzoneurls
Get-SPAlternateURLGet-SPAlternateURL
ExecadmsvcjobsExecadmsvcjobs
Start-spadminjob ausStart-SPAdminJob
ExportExport
Export-SPWebExport-SPWeb
ExtendvsExtendvs
New-SPWebApplicationNew-SPWebApplication
ExtendvsinwebfarmExtendvsinwebfarm
Neue SPWebApplicationExtensionNew-SPWebApplicationExtension
ForcedeletelistForcedeletelist
KeineNone
GetadminportGetadminport
Get-SPWebApplicationGet-SPWebApplication
Verwenden Sie folgende Syntax:Use the following syntax:
Get-SPWebApplication - IncludeCentralAdministrationGet-SPWebApplication -IncludeCentralAdministration
? {$.IsAdministrationWebApplication -eq $true}? {$.IsAdministrationWebApplication -eq $true}
Getdataconnectionfileproperty propertyGetdataconnectionfileproperty property
Get-SPDataConnectionFileGet-SPDataConnectionFile
Verwenden Sie folgende Syntax:Use the following syntax:
Get-SPDataConnectionFileGet-SPDataConnectionFile
where {$.Name -eq "dataConFileName"}where {$.Name -eq "dataConFileName"} format-listformat-list
Getformtemplateproperty -EigenschaftGetformtemplateproperty property
Get-SPInfoPathFormTemplateGet-SPInfoPathFormTemplate
Verwenden Sie folgende Syntax:Use the following syntax:
Get-SPInfoPathFormTemplateGet-SPInfoPathFormTemplate
where {$.DisplayName -eq "formTemplateName"}where {$.DisplayName -eq "formTemplateName"} format-listformat-list
GetosearchsettingGetosearchsetting
KeineNone
GetpropertyGetproperty
Get-SPFarmConfigGet-SPFarmConfig
Get-SPTimerJobGet-SPTimerJob
Disable-SPTimerJobDisable-SPTimerJob
Enable-SPTimerJobEnable-SPTimerJob
Set-SPTimerJobSet-SPTimerJob
Start-SPTimerJobStart-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
Verwenden Sie für die Osearch -Parameter Farmcontactemail, Farmperformancelevel, Farmserviceaccountund Farmservicepassworddas Get-SPEnterpriseSearchService - und Set-SPEnterpriseSearchService Cmdlets.For the Osearch parameters farmcontactemail, farmperformancelevel, farmserviceaccount, and farmservicepassword, use the Get-SPEnterpriseSearchService and Set-SPEnterpriseSearchService cmdlets.
Verwenden Sie die Start-SPEnterpriseSearchServiceInstance und Stop-SPEnterpriseSearchServiceInstance -Cmdlets für die Osearch -Parameter Starten und Beenden.For the Osearch parameters start and stop, use the Start-SPEnterpriseSearchServiceInstance and Stop-SPEnterpriseSearchServiceInstance cmdlets, respectively.
Verwenden Sie für die Osearch -Parameter Defaultindexlocationdas Cmdlet Get-SPEnterpriseSearchServiceInstance .For the Osearch parameter defaultindexlocation, use the Get-SPEnterpriseSearchServiceInstance cmdlet.
OsearchdiacriticsensitiveOsearchdiacriticsensitive
Verwenden Sie das Cmdlet Get-SPEnterpriseSearchServiceApplication , um die jeweilige Suchdienstanwendung abzurufen, und klicken Sie dann verwenden Sie den DiacriticSensitive -Parameter des Set-SPEnterpriseSearchServiceApplication -Cmdlets.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 jedoch den Stsadm-Vorgang profilechangelog verwenden, wenn Sie den Namen für gemeinsame Dienste (Shared Services Provider, SSP) durch den Namen der Dienstanwendung (Shared Service, SA) ersetzen:However, 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
Neue SPEnterpriseSearchSecurityTrimmerNew-SPEnterpriseSearchSecurityTrimmer
RegisterwsswriterRegisterwsswriter
KeineNone
RemovedataconnectionfileRemovedataconnectionfile
Uninstall-SPDataConnectionFileUninstall-SPDataConnectionFile
RemovedrserviceRemovedrservice
KeineNone
RemoveexemptuseragentRemoveexemptuseragent
Remove-SPInfoPathUserAgentRemove-SPInfoPathUserAgent
RemoveformtemplateRemoveformtemplate
Uninstall-SPInfoPathFormTemplateUninstall-SPInfoPathFormTemplate
RemovesolutiondeploymentlockRemovesolutiondeploymentlock
KeineNone
RenameserverRenameserver
Rename-SPServerRename-SPServer
RenamesiteRenamesite
Set-SPSiteSet-SPSite
Verwenden Sie den Url -Parameter.Use the Url parameter.
RenamewebRenameweb
Set-SPWebSet-SPWeb
Verwenden Sie den RelativeUrl -Parameter.Use the RelativeUrl parameter.
RestoreRestore
Restore-SPFarmRestore-SPFarm
Restore-SPSiteRestore-SPSite
RetractsolutionRetractsolution
Uninstall-SPSolutionUninstall-SPSolution
RetractwppackRetractwppack
KeineNone
RuncontentdeploymentjobRuncontentdeploymentjob
Start-SPContentDeploymentJobStart-SPContentDeploymentJob
ScanforfeaturesScanforfeatures
Install-SPFeatureInstall-SPFeature
Verwenden Sie den Scanforfeatures -Parameter.Use the Scanforfeatures parameter.
SetadminportSetadminport
Set-SPCentralAdministrationSet-SPCentralAdministration
SetapppasswordSetapppassword
KeineNone
SetconfigdbSetconfigdb
Verbinden-SPConfigurationDatabaseConnect-SPConfigurationDatabase
SetcontentdeploymentjobscheduleSetcontentdeploymentjobschedule
Set-SPContentDeploymentJobSet-SPContentDeploymentJob
SetdataconnectionfilepropertySetdataconnectionfileproperty
Set-SPDataConnectionFileSet-SPDataConnectionFile
SetformtemplatepropertySetformtemplateproperty
Set-SPInfoPathFormTemplateSet-SPInfoPathFormTemplate
SetlogginglevelSetlogginglevel
Set-SPLogLevelSet-SPLogLevel
SetosearchsettingSetosearchsetting
KeineNone
SetpropertySetproperty
Set-SPFarmConfigSet-SPFarmConfig
Get-SPTimerJobGet-SPTimerJob
Disable-SPTimerJobDisable-SPTimerJob
Enable-SPTimerJobEnable-SPTimerJob
Set-SPTimerJobSet-SPTimerJob
Start-SPTimerJobStart-SPTimerJob
SetqueryprocessoroptionsSetqueryprocessoroptions
KeineNone
SetsitelockSetsitelock
Set-SPSiteAdministrationSet-SPSiteAdministration
Verwenden Sie den LockState -Parameter.Use the LockState parameter.
SetsiteuseraccountdirectorypathSetsiteuseraccountdirectorypath
Get-SPSiteSubscriptionGet-SPSiteSubscription
Neue SPSiteSubscriptionNew-SPSiteSubscription
Remove-SPSiteSubscriptionRemove-SPSiteSubscription
SetworkflowconfigSetworkflowconfig
Set-SPWorkflowConfigSet-SPWorkflowConfig
SiteownerSiteowner
Set-SPSiteAdministrationSet-SPSiteAdministration
SyncsolutionSyncsolution
Install-SPSolutionInstall-SPSolution
Verwenden Sie den Synchronize -Parameter.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
Set-SPManagedAccountSet-SPManagedAccount
UpdatealerttemplatesUpdatealerttemplates
KeineNone
UpdatefarmcredentialsUpdatefarmcredentials
KeineNone
UpgradeUpgrade
KeineNone
UpgradeformtemplateUpgradeformtemplate
Install-SPInfoPathFormTemplateInstall-SPInfoPathFormTemplate
UpgradesolutionUpgradesolution
Update-SPSolutionUpdate-SPSolution
UpgradetargetwebapplicationUpgradetargetwebapplication
KeineNone
UploadformtemplateUploadformtemplate
Install-SPInfoPathFormTemplateInstall-SPInfoPathFormTemplate
UserroleUserrole
Get-SPUserGet-SPUser
Move-SPUserMove-SPUser
New-SPUserNew-SPUser
Remove-SPUserRemove-SPUser
Set-SPUserSet-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