SharePoint 2010 – van Stsadm naar Powershell

Met de komst van SPS2010, zal Powershell veel gebruikt worden door SharePoint administrators om bepaalde beheertaken makkelijker/beter uit te voeren.

Hieronder een lijst met STSADM opdrachten vertaald naar PowerShell-opdrachten, ook wel cmdlets genoemd.

 

Stsadm

Windows PowerShell

Activatefeature

Enable-SPFeature

Activateformtemplate

Enable-SPInfoPathFormTemplate

Addalternatedomain

New-SPAlternateUrl

Addcontentdb

Mount-SPContentDatabase

New-SPContentDatabase

Adddataconnectionfile

Install-SPDataConnectionFile

Add-ecsfiletrustedlocation

New-SPExcelFileLocation

Add-ecssafedataprovider

New-SPExcelDataProvider

Add-ecstrusteddataconnectionlibrary

New-SPExcelDataConnectionLibrary

Add-ecsuserdefinedfunction

New-SPExcelUserDefinedFunction

Addexemptuseragent

Add-SPInfoPathUserAgent

Addpath

New-SPManagedPath

Addpermissionpolicy

Niet beschikbaar

Addsolution

Add-SPSolution

Addtemplate

Install-SPWebTemplate

Adduser

New-SPUser

Addwppack

Install-SPWebPartPack

Addzoneurl

New-SPAlternateUrl

Allowuserformwebserviceproxy

Set-SPInfoPathWebServiceProxy

Gebruik de AllowForUserForms & Identity parameters.

Allowwebserviceproxy

Set-SPInfoPathWebServiceProxy

Gebruik de AllowWebServiceProxy & Identity parameters.

Authentication

Set-SPWebApplication

Gebruik de  AuthenticationMethod of AuthenticationProvider parameters.

Backup

Backup-SPConfigurationDatabase

Backup-SPFarm

Backup-SPSite

Backuphistory

Get-SPBackupHistory

Binddrservice

Niet beschikbaar

Blockedfilelist

Niet beschikbaar

Canceldeployment

Niet beschikbaar

Changepermissionpolicy

Niet beschikbaar

Copyappbincontent

Niet beschikbaar

Createadminvs

New-SPCentralAdministration

Creategroup

Niet beschikbaar

Createsite

New-SPSite

Createsiteinnewdb

New-SPSite Gebruik de ContentDatabase parameter.

New-SPContentDatabase

Createweb

New-SPWeb

Databaserepair

Niet beschikbaar

Deactivatefeature

Disable-SPFeature

Deactivateformtemplate

Disable-SPInfoPathFormTemplate

Deleteadminvs

Niet beschikbaar

Deletealternatedomain

Remove-SPAlternateUrl

Deleteconfigdb

Remove-SPConfigurationDatabase

Deletecontentdb

Dismount-SPContentDatabase

Deletegroup

Niet beschikbaar

Deletepath

Remove-SPManagedPath

Deletepermissionpolicy

Niet beschikbaar

Deletesite

Remove-SPSite

Deletesolution

Remove-SPSolution

Deletetemplate

Uninstall-SPWebTemplate

Deleteuser

Remove-SPUser

Deleteweb

Remove-SPWeb

Deletewppack

Uninstall-SPWebPartPack

Deletezoneurl

Remove-SPAlternateUrl

Deploysolution

Install-SPSolution

Deploywppack

Install-SPWebPartPack

Disablessc

Niet beschikbaar

Displaysolution

Get-SPSolution

Editcontentdeploymentpath

Set-SPContentDeploymentPath

Email

Niet beschikbaar

Enablessc

Niet beschikbaar

Enumalternatedomains

Get-SPAlternateURL

Enumcontentdbs

Get-SPContentDatabase

Enumdataconnectionfiledependants

Get-SPDataConnectionFileDependent

Enumdataconnectionfiles

Get-SPDataConnectionFile

Enumdeployments

Niet beschikbaar

Enumexemptuseragents

Get-SPInfoPathUserAgent

Enumformtemplates

Get-SPInfoPathFormTemplate

Enumgroups

Niet beschikbaar

Enumroles

Niet beschikbaar

Enumservices

Get-SPServiceInstance

Enumsites

Get-SPSiteAdministration (Farm admin rechten vereist)

Get-SPSite (local admin rechten vereist)

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

Niet beschikbaar

Getadminport

Get-SPWebApplication

Gebruik de volgende syntax:

  • Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true}

Getdataconnectionfileproperty property

Get-SPDataConnectionFile

Gebruik de volgende syntax:

  • Get-SPDataConnectionFile | where {$_.Name -eq "dataConFileName"} | format-list

Getformtemplateproperty property

Get-SPInfoPathFormTemplate

Gebruik de volgende syntax:

  • Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq "formTemplateName"} | format-list

Getosearchsetting

Niet beschikbaar

Getproperty

Get-SPFarmConfig

Get-SPTimerJob

Disable-SPTimerJob

Enable-SPTimerJob

Set-SPTimerJob

Start-SPTimerJob

Getsitelock

Get-SPSiteAdministration

Getsiteuseraccountdirectorypath

Niet beschikbaar

Geturlzone

Get-SPAlternateURL

Import

Import-SPWeb

Installfeature

Install-SPFeature

Listlogginglevels

Get-SPLogLevel

Listqueryprocessoroptions

Niet beschikbaar

Listregisteredsecuritytrimmers

Get-SPEnterpriseSearchSecurityTrimmer

Localupgradestatus

Niet beschikbaar

Managepermissionpolicylevel

Niet beschikbaar

Mergecontentdbs

Move-SPSite

Migrateuser

Move-SPUser

Osearch

Voor Osearch parameters farmcontactemail, farmperformancelevel, farmserviceaccount, en farmservicepassword, gebruik de Get-SPEnterpriseSearchService en Set-SPEnterpriseSearchService.

Voor Osearch parameters start en stop, gebruik Start-SPEnterpriseSearchServiceInstance en Stop-SPEnterpriseSearchServiceInstance

Voor Osearch parameter defaultindexlocation, gebruik Get-SPEnterpriseSearchServiceInstance en Set-SPEnterpriseSearchServiceInstance.

Osearchdiacriticsensitive

Get-SPEnterpriseSearchServiceApplication

Provisionservice

Start-SPServiceInstance

Quiescefarm

Niet beschikbaar

Quiescefarmstatus

Niet beschikbaar

Quiesceformtemplate

Stop-SPInfoPathFormTemplate

Reconvertallformtemplates

Update-SPInfoPathFormTemplate

Refreshdms

Niet beschikbaar

Refreshsitedms

Niet beschikbaar

Registersecuritytrimmer

New-SPEnterpriseSearchSecurityTrimmer

Registerwsswriter

Niet beschikbaar

Removedataconnectionfile

Uninstall-SPDataConnectionFile

Remove-ecsfiletrustedlocation

Remove-SPExcelFileLocation

Remove-ecssafedataprovider

Remove-SPExcelDataProvider

Remove-ecstrusteddataconnectionlibrary

Remove-SPExcelDataConnectionLibrary

Remove-ecsuserdefinedfunction

Remove-SPExcelFileLocation

Removedrservice

Niet beschikbaar

Removeexemptuseragent

Remove-SPInfoPathUserAgent

Removeformtemplate

Uninstall-SPInfoPathFormTemplate

Removesolutiondeploymentlock

Niet beschikbaar

Renameserver

Rename-SPServer

Renamesite

Set-SPSite

Gebruik de Url parameter.

Renameweb

Set-SPWeb

Gebruik de RelativeUrl parameter.

Restore

Restore-SPFarm

Restore-SPSite

Retractsolution

Uninstall-SPSolution

Retractwppack

Niet beschikbaar

Runcontentdeploymentjob

Start-SPContentDeploymentJob

Scanforfeatures

Install-SPFeature

Gebruik de Scanforfeatures parameter.

Setadminport

Set-SPCentralAdministration

Setapppassword

Niet beschikbaar

Setconfigdb

Connect-SPConfigurationDatabase

Setcontentdeploymentjobschedule

Set-SPContentDeploymentJob

Setdataconnectionfileproperty

Set-SPDataConnectionFile

Set-ecsexternaldata

Set-SPExcelFileLocation

Set-ecsloadbalancing

Set-SPExcelServiceApplication

Gebruik de LoadBalancingScheme parameter.

Set-ecsmemoryutilization

Set-SPExcelServiceApplication

Gebruik de MemoryCacheThreshold en PrivateBytesMax parameters.

Set-ecssecurity

Set-SPExcelServiceApplication

Gebruik de CrossDomainAccessAllowed, EncryptedUserConnectionRequired, en FileAccessMethod parameters.

Set-ecssessionmanagement

Set-SPExcelServiceApplication

Gebruik de SessionsPerUserMax en SiteCollectionAnonymousSessionsMax parameters.

Set-ecsworkbookcache

Set-SPExcelServiceApplication

Gebruik de Workbookcache en WorkbookCacheSizeMax parameters.

Setformtemplateproperty

Set-SPInfoPathFormTemplate

Setlogginglevel

Set-SPLogLevel

Setosearchsetting

Niet beschikbaar

Setproperty

Set-SPFarmConfig

Get-SPTimerJob

Disable-SPTimerJob

Enable-SPTimerJob

Set-SPTimerJob

Start-SPTimerJob

Setqueryprocessoroptions

Niet beschikbaar

Setsitelock

Set-SPSiteAdministration

Gebruik de LockState parameter.

Setsiteuseraccountdirectorypath

Get-SPSiteSubscription

New-SPSiteSubscription

Remove-SPSiteSubscription

Setworkflowconfig

Set-SPWorkflowConfig

Siteowner

Set-SPSiteAdministration

Syncsolution

Install-SPSolution

Gebruik de Synchronize parameter.

Unextendvs

Remove-SPWebApplication

Uninstallfeature

Uninstall-SPFeature

Unquiescefarm

Niet beschikbaar

Unquiesceformtemplate

Start-SPInfoPathFormTemplate

Unregistersecuritytrimmer

Remove-SPEnterpriseSearchSecurityTrimmer

Unregisterwsswriter

Niet beschikbaar

Updateaccountpassword

Set-SPManagedAccount

Updatealerttemplates

Niet beschikbaar

Updatefarmcredentials

Niet beschikbaar

Upgrade

Niet beschikbaar

Upgradeformtemplate

Install-SPInfoPathFormTemplate

Upgradesolution

Update-SPSolution

Upgradetargetwebapplication

Niet beschikbaar

Uploadformtemplate

Install-SPInfoPathFormTemplate

Userrole

Get-SPUser

Move-SPUser

New-SPUser

Remove-SPUser

Set-SPUser

Verifyformtemplate

Test-SPInfoPathFormTemplate

 

Voor meer informatie over Windows PowerShell, zie:
https://technet.microsoft.com/nl-nl/library/cc731851(WS.10).aspx