Stsadm SharePoint サーバーで Microsoft PowerShell へのマッピングから
適用対象:2016
2019
Subscription Edition
SharePoint in Microsoft 365
Stsadm 操作と PowerShell コマンドレットの間に 1 対 1 のマッピングがない場合は、同様の機能を取得するために使用する必要がある特定の PowerShell パラメーターが一覧表示されます。
Stsadm 操作 | Windows PowerShell コマンドレット |
Activatefeature | Enable-SPFeature |
Activateformtemplate | Enable-SPInfoPathFormTemplate |
Addalternatedomain | New-SPAlternateUrl |
Addcontentdb | Mount-SPContentDatabaseNew-SPContentDatabase |
Addexemptuseragent | Add-SPInfoPathUserAgent |
Addpath | New-SPManagedPath |
Addpermissionpolicy | なし |
Addsolution | Add-SPSolution |
Addtemplate | なし |
Adduser | New-SPUser |
Addwppack | Install-SPWebPartPack |
Addzoneurl | New-SPAlternateUrl |
Allowuserformwebserviceproxy | Set-SPInfoPathWebServiceProxyAllowForUserForms パラメーターと ID パラメーターを使用します。 |
Allowwebserviceproxy | Set-SPInfoPathWebServiceProxyAllowWebServiceProxy パラメーターと ID パラメーターを使用します。 |
認証 | Set-SPWebApplicationAuthenticationMethod パラメーターまたは AuthenticationProvider パラメーターを使用します。 |
バックアップ | Backup-SPConfigurationDatabaseBackup-SPFarmBackup-SPSite |
Backuphistory | Get-SPBackupHistory |
Binddrservice | なし |
Blockedfilelist | なし |
Canceldeployment | なし |
Changepermissionpolicy | なし |
Copyappbincontent | Install-SPApplicationContent |
Createadminvs | New-SPCentralAdministration |
Creategroup | なし |
Createsite | New-SPSite |
Createsiteinnewdb | New-SPSiteContentDatabase パラメーターを使用してください。 New-SPContentDatabase |
Createweb | New-SPWeb |
Databaserepair | Get-SPContentDatabaseOrphanedData を使用して孤立したデータを検出しますが、孤立したデータは修復されないことに注意してください。 |
Deactivatefeature | Disable-SPFeature |
Deactivateformtemplate | Disable-SPInfoPathFormTemplate |
Deleteadminvs | Remove-SPCentralAdministration |
Deletealternatedomain | Remove-SPAlternateUrl |
Deleteconfigdb | Disconnect-SPConfigurationDatabase |
Deletecontentdb | Dismount-SPContentDatabase |
Deletegroup | なし |
Deletepath | Remove-SPManagedPath |
Deletepermissionpolicy | なし |
Deletesite | Remove-SPSite |
Deletesolution | Remove-SPSolution |
Deletetemplate | なし |
Deleteuser | Remove-SPUser |
Deleteweb | Remove-SPWeb |
Deletewppack | Uninstall-SPWebPartPack |
Deletezoneurl | Remove-SPAlternateUrl |
Deploysolution | Install-SPSolution |
Deploywppack | Install-SPWebPartPack |
Disablessc | なし |
Displaysolution | Get-SPSolution |
Editcontentdeploymentpath | Set-SPContentDeploymentPath |
電子メール | -SMTPServer パラメーター セットで Set-SPWebApplication を使用します。 |
Enablessc | なし |
Enumallwebs | Get-SPContentDatabaseOrphanedData |
Enumalternatedomains | Get-SPAlternateURL |
Enumcontentdbs | Get-SPContentDatabase |
Enumdataconnectionfiledependants | Get-SPDataConnectionFileDependent |
Enumdataconnectionfiles | Get-SPDataConnectionFile |
Enumdeployments | なし |
Enumexemptuseragents | Get-SPInfoPathUserAgent |
Enumformtemplates | Get-SPInfoPathFormTemplate |
Enumgroups | なし |
Enumroles | なし |
Enumservices | Get-SPServiceInstance |
Enumsites | Get-SPSiteAdministration (このコマンドレットを実行するには、ファーム管理者グループのメンバーである必要があります)。 Get-SPSite (このコマンドレットを実行するには、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 | なし |
Getadminport |
Get-SPWebApplication 次の構文を使用します。 Get-SPWebApplication -IncludeCentralAdministration| ? {$_.IsAdministrationWebApplication -eq $true} |
Getdataconnectionfileproperty プロパティ |
Get-SPDataConnectionFile 次の構文を使用します。 Get-SPDataConnectionFile| where {$_.Name -eq "dataConFileName"}| format-list |
Getformtemplateproperty プロパティ |
Get-SPInfoPathFormTemplate 次の構文を使用します。 Get-SPInfoPathFormTemplate| where {$_.DisplayName -eq "formTemplateName"}| format-list |
Getosearchsetting | なし |
Getproperty | Get-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob |
Getsitelock | Get-SPSiteAdministration |
Getsiteuseraccountdirectorypath | Get-SPSite を使用してサイト オブジェクトを取得し、UserAccountDirectoryPath プロパティを出力します。 |
Geturlzone | Get-SPAlternateURL |
Import | Import-SPWeb |
Installfeature | Install-SPFeature |
Listlogginglevels | Get-SPLogLevel |
Listqueryprocessoroptions | なし |
Listregisteredsecuritytrimmers | Get-SPEnterpriseSearchSecurityTrimmer |
Localupgradestatus | なし。 ただし、 Get-SPPendingUpgradeActions でも同様の情報が提供されます 。 |
Managepermissionpolicylevel | なし |
Mergecontentdbs | Move-SPSite |
Migrateuser | Move-SPUser |
Osearch | Osearch パラメーター farmcontactemail、farmperformancelevel、farmserviceaccount、farmservicepassword の場合は、Get-SPEnterpriseSearchService コマンドレットと Set-SPEnterpriseSearchService コマンドレットを使用します。 Osearch パラメーターの開始と停止には、それぞれ Start-SPEnterpriseSearchServiceInstance コマンドレットと Stop-SPEnterpriseSearchServiceInstance コマンドレットを使用します。 Osearch パラメーター defaultindexlocation には、Get-SPEnterpriseSearchServiceInstance コマンドレットを使用します。 |
Osearchdiacriticsensitive | Get-SPEnterpriseSearchServiceApplication コマンドレットを使用して特定の Search サービス アプリケーションを取得し、Set-SPEnterpriseSearchServiceApplication コマンドレットから DiacriticSensitive パラメーターを使用します。 |
Profilechangelog | なし。 ただし、共有サービス プロバイダー (SSP) 名をサービス アプリケーション (SA) 名に置き換える場合は、Stsadm profilechangelog 操作を使用できます。 stsadm -o profilechangelog-title <SA name>-daysofhistory <number of days>-generateanniversaries |
Provisionservice | Start-SPServiceInstance |
Quiescefarm | なし |
Quiescefarmstatus | なし |
Quiesceformtemplate | Stop-SPInfoPathFormTemplate |
Reconvertallformtemplates | Update-SPInfoPathFormTemplate |
Refreshdms | なし |
Refreshsitedms | なし |
Registersecuritytrimmer | New-SPEnterpriseSearchSecurityTrimmer |
Registerwsswriter | なし |
Removedataconnectionfile | Uninstall-SPDataConnectionFile |
Removedrservice | なし |
Removeexemptuseragent | Remove-SPInfoPathUserAgent |
Removeformtemplate | Uninstall-SPInfoPathFormTemplate |
Removesolutiondeploymentlock | なし |
Renameserver | Rename-SPServer |
Renamesite | Set-SPSiteUrl パラメーターを使用します。 |
Renameweb | Set-SPWebRelativeUrl パラメーターを使用します。 |
復元 | Restore-SPFarmRestore-SPSite |
Retractsolution | Uninstall-SPSolution |
Retractwppack | なし |
Runcontentdeploymentjob | Start-SPContentDeploymentJob |
Scanforfeatures | Install-SPFeatureScanforfeatures パラメーターを使用します。 |
Setadminport | Set-SPCentralAdministration |
Setapppassword | Set-SPApplicationCredentialKeyRemove-SPApplicationCredentialKey |
Setconfigdb | Connect-SPConfigurationDatabase |
Setcontentdeploymentjobschedule | Set-SPContentDeploymentJob |
Setdataconnectionfileproperty | Set-SPDataConnectionFile |
Setformtemplateproperty | Set-SPInfoPathFormTemplate |
Setlogginglevel | Set-SPLogLevel |
Setosearchsetting | なし |
Setproperty | Set-SPFarmConfigGet-SPTimerJobDisable-SPTimerJobEnable-SPTimerJobSet-SPTimerJobStart-SPTimerJob |
Setqueryprocessoroptions | なし |
Setsitelock | Set-SPSiteAdministrationLockState パラメーターを使用します。 |
Setsiteuseraccountdirectorypath | Set-SPSiteUserAccountDirectoryPath パラメーターを使用します。 |
Setworkflowconfig | Set-SPWorkflowConfig |
Siteowner | Set-SPSiteAdministration |
Sync | Update-SPProfileSyncClear-SPContentDatabaseSyncDataGet-SPContentDatabase (-DaysSinceLastProfileSync パラメーターを使用) |
Syncsolution | Install-SPSolutionSynchronize パラメーターを使用します。 |
Unextendvs | Remove-SPWebApplication |
Uninstallfeature | Uninstall-SPFeature |
Unquiescefarm | なし |
Unquiesceformtemplate | Start-SPInfoPathFormTemplate |
Unregistersecuritytrimmer | Remove-SPEnterpriseSearchSecurityTrimmer |
Unregisterwsswriter | なし |
Updateaccountpassword | Set-SPManagedAccount |
Updatealerttemplates | なし |
Updatefarmcredentials | なし |
Upgrade | なし |
Upgradeformtemplate | Install-SPInfoPathFormTemplate |
Upgradesolution | Update-SPSolution |
Upgradetargetwebapplication | なし |
Uploadformtemplate | Install-SPInfoPathFormTemplate |
Userrole | Get-SPUserMove-SPUserNew-SPUserRemove-SPUserSet-SPUser |
Verifyformtemplate | Test-SPInfoPathFormTemplate |