Skip Ribbon Commands
Skip to main content
Welcome to the SharePoint Foxhole > SPFoxhole Blog > Posts > Holy PowerShell SharePoint Boy….
Holy PowerShell SharePoint Boy….

 

Did you know you can do pretty much everything in 2010 in PowerShell?   In fact there are certain things that you can only do in PowerShell…  I have been preaching to folks for a while now that PowerShell is the new dude in town and someone you need to meet up with and get to know… don't believe me?  Have a look at the investment Microsoft put into PowerShell for SharePoint 2010. 

Name Verb Noun
Add-SPClaimMapping Add SPClaimMapping
Add-SPFeatureSetMember Add SPFeatureSetMember
Add-SPServiceApplicationProxyGroupMember Add SPServiceApplicationProxyGroupMember
Add-SPSolution Add SPSolution
Add-SPUserSolution Add SPUserSolution
Backup-SPConfigurationDatabase Backup SPConfigurationDatabase
Backup-SPFarm Backup SPFarm
Backup-SPSite Backup SPSite
Check-SPContentDatabase Check SPContentDatabase
Clear-SPBusinessDataCatalogPartitionData Clear SPBusinessDataCatalogPartitionData
Clear-SPLogLevel Clear SPLogLevel
Clear-SPMetadataWebServicePartitionData Clear SPMetadataWebServicePartitionData
Connect-SPConfigurationDatabase Connect SPConfigurationDatabase
Copy-SPBusinessDataCatalogAclToChildren Copy SPBusinessDataCatalogAclToChildren
Disable-SPBusinessDataCatalogEntity Disable SPBusinessDataCatalogEntity
Disable-SPFeature Disable SPFeature
Disable-SPTimerJob Disable SPTimerJob
Disable-SPWebApplicationHttpThrottling Disable SPWebApplicationHttpThrottling
Disconnect-SPConfigurationDatabase Disconnect SPConfigurationDatabase
Dismount-SPContentDatabase Dismount SPContentDatabase
Enable-SPBusinessDataCatalogEntity Enable SPBusinessDataCatalogEntity
Enable-SPFeature Enable SPFeature
Enable-SPTimerJob Enable SPTimerJob
Enable-SPWebApplicationHttpThrottling Enable SPWebApplicationHttpThrottling
Export-SPBusinessDataCatalogModel Export SPBusinessDataCatalogModel
Export-SPBusinessDataCatalogPartitionData Export SPBusinessDataCatalogPartitionData
Export-SPMetadataWebServicePartitionData Export SPMetadataWebServicePartitionData
Export-SPSiteSubscriptionSettings Export SPSiteSubscriptionSettings
Export-SPWeb Export SPWeb
Get-SPAlternateURL Get SPAlternateURL
Get-SPBackupHistory Get SPBackupHistory
Get-SPBrowserCustomerExperienceImprovementProgram Get SPBrowserCustomerExperienceImprovementProgram
Get-SPBusinessDataCatalogMetadataObject Get SPBusinessDataCatalogMetadataObject
Get-SPBusinessDataCatalogThrottleConfig Get SPBusinessDataCatalogThrottleConfig
Get-SPCertificate Get SPCertificate
Get-SPCertificateStore Get SPCertificateStore
Get-SPClaimProviderManager Get SPClaimProviderManager
Get-SPContentDatabase Get SPContentDatabase
Get-SPContentDeploymentJob Get SPContentDeploymentJob
Get-SPContentDeploymentPath Get SPContentDeploymentPath
Get-SPCustomLayoutsPage Get SPCustomLayoutsPage
Get-SPDatabase Get SPDatabase
Get-SPDesignerSettings Get SPDesignerSettings
Get-SPDiagnosticConfig Get SPDiagnosticConfig
Get-SPDiagnosticsProvider Get SPDiagnosticsProvider
Get-SPEdiscoveryHubSearchScope Get SPEdiscoveryHubSearchScope
Get-SPediscoveryHubSite Get SPediscoveryHubSite
Get-SPFarm Get SPFarm
Get-SPFarmConfig Get SPFarmConfig
Get-SPFeature Get SPFeature
Get-SPFeatureSet Get SPFeatureSet
Get-SPHelpCollection Get SPHelpCollection
Get-SPIdentityProvider Get SPIdentityProvider
Get-SPIisWebServiceApplicationPool Get SPIisWebServiceApplicationPool
Get-SPIisWebServiceSettings Get SPIisWebServiceSettings
Get-SPLogEvent Get SPLogEvent
Get-SPLogLevel Get SPLogLevel
Get-SPManagedAccount Get SPManagedAccount
Get-SPManagedPath Get SPManagedPath
Get-SPMetadataServiceApplication Get SPMetadataServiceApplication
Get-SPMetadataServiceApplicationProxy Get SPMetadataServiceApplicationProxy
Get-SPMobileMessagingAccount Get SPMobileMessagingAccount
Get-SPObjectSecurity Get SPObjectSecurity
Get-SPParentFarmTrust Get SPParentFarmTrust
Get-SPProcessAccount Get SPProcessAccount
Get-SPProduct Get SPProduct
Get-SPSearchService Get SPSearchService
Get-SPSearchServiceInstance Get SPSearchServiceInstance
Get-SPSecurityTokenService Get SPSecurityTokenService
Get-SPServer Get SPServer
Get-SPServiceApplication Get SPServiceApplication
Get-SPServiceApplicationProxy Get SPServiceApplicationProxy
Get-SPServiceApplicationProxyGroup Get SPServiceApplicationProxyGroup
Get-SPServiceContext Get SPServiceContext
Get-SPServiceEndpoint Get SPServiceEndpoint
Get-SPServiceInstance Get SPServiceInstance
Get-SPSite Get SPSite
Get-SPSiteAdministration Get SPSiteAdministration
Get-SPSiteSubscription Get SPSiteSubscription
Get-SPSiteSubscriptionConfig Get SPSiteSubscriptionConfig
Get-SPSiteSubscriptionMetadataConfig Get SPSiteSubscriptionMetadataConfig
Get-SPSolution Get SPSolution
Get-SPTaxonomySession Get SPTaxonomySession
Get-SPTimerJob Get SPTimerJob
Get-SPTopologyWebServiceApplication Get SPTopologyWebServiceApplication
Get-SPTopologyWebServiceProxy Get SPTopologyWebServiceProxy
Get-SPUsageApplication Get SPUsageApplication
Get-SPUsageDefinition Get SPUsageDefinition
Get-SPUsageService Get SPUsageService
Get-SPUser Get SPUser
Get-SPUserSolution Get SPUserSolution
Get-SPWeb Get SPWeb
Get-SPWebApplication Get SPWebApplication
Get-SPWebApplicationHttpThrottlingMonitors Get SPWebApplicationHttpThrottlingMonitors
Get-SPWebPartPack Get SPWebPartPack
Get-SPWebTemplate Get SPWebTemplate
Get-SPWorkflowConfig Get SPWorkflowConfig
Grant-SPBusinessDataCatalogMetadataObject Grant SPBusinessDataCatalogMetadataObject
Grant-SPServiceApplication Grant SPServiceApplication
Import-SPBusinessDataCatalogModel Import SPBusinessDataCatalogModel
Import-SPBusinessDataCatalogPartitionData Import SPBusinessDataCatalogPartitionData
Import-SPMetadataWebServicePartitionData Import SPMetadataWebServicePartitionData
Import-SPSiteSubscriptionSettings Import SPSiteSubscriptionSettings
Import-SPWeb Import SPWeb
Initialize-SPResourceSecurity Initialize SPResourceSecurity
Install-SPApplicationContent Install SPApplicationContent
Install-SPFeature Install SPFeature
Install-SPHelpCollection Install SPHelpCollection
Install-SPSolution Install SPSolution
Install-SPUserSolution Install SPUserSolution
Install-SPWebPartPack Install SPWebPartPack
Install-SPWebTemplate Install SPWebTemplate
Merge-SPLogFile Merge SPLogFile
Mount-SPContentDatabase Mount SPContentDatabase
Move-SPBlobStorageLocation Move SPBlobStorageLocation
Move-SPUser Move SPUser
New-SPAlternateURL New SPAlternateURL
New-SPBusinessDataCatalogServiceApplication New SPBusinessDataCatalogServiceApplication
New-SPBusinessDataCatalogServiceApplicationProxy New SPBusinessDataCatalogServiceApplicationProxy
New-SPCentralAdministration New SPCentralAdministration
New-SPCertificate New SPCertificate
New-SPClaimMapping New SPClaimMapping
New-SPClaimsObject New SPClaimsObject
New-SPClaimsPrincipal New SPClaimsPrincipal
New-SPConfigurationDatabase New SPConfigurationDatabase
New-SPContentDatabase New SPContentDatabase
New-SPContentDeploymentJob New SPContentDeploymentJob
New-SPContentDeploymentPath New SPContentDeploymentPath
New-SPFeatureSet New SPFeatureSet
New-SPIdentityProvider New SPIdentityProvider
New-SPIisWebServiceApplicationPool New SPIisWebServiceApplicationPool
New-SPLogFile New SPLogFile
New-SPManagedAccount New SPManagedAccount
New-SPManagedPath New SPManagedPath
New-SPMetadataServiceApplication New SPMetadataServiceApplication
New-SPMetadataServiceApplicationProxy New SPMetadataServiceApplicationProxy
New-SPObaSolutionPackage New SPObaSolutionPackage
New-SPParentFarmTrust New SPParentFarmTrust
New-SPServiceApplicationProxyGroup New SPServiceApplicationProxyGroup
New-SPSite New SPSite
New-SPSiteSubscription New SPSiteSubscription
New-SPSubscriptionSettingsServiceApplication New SPSubscriptionSettingsServiceApplication
New-SPSubscriptionSettingsServiceApplicationProxy New SPSubscriptionSettingsServiceApplicationProxy
New-SPUsageApplication New SPUsageApplication
New-SPUsageLogFile New SPUsageLogFile
New-SPUser New SPUser
New-SPWeb New SPWeb
New-SPWebApplication New SPWebApplication
New-SPWebApplicationExtension New SPWebApplicationExtension
Publish-SPServiceApplication Publish SPServiceApplication
Receive-SPSharedServiceApplicationInfo Receive SPSharedServiceApplicationInfo
Remove-SPAlternateURL Remove SPAlternateURL
Remove-SPBusinessDataCatalogModel Remove SPBusinessDataCatalogModel
Remove-SPBusinessDataCatalogPartition Remove SPBusinessDataCatalogPartition
Remove-SPBusinessDataCatalogThrottleConfig Remove SPBusinessDataCatalogThrottleConfig
Remove-SPCertificate Remove SPCertificate
Remove-SPClaimMapping Remove SPClaimMapping
Remove-SPConfigurationDatabase Remove SPConfigurationDatabase
Remove-SPContentDatabase Remove SPContentDatabase
Remove-SPContentDeploymentJob Remove SPContentDeploymentJob
Remove-SPContentDeploymentPath Remove SPContentDeploymentPath
Remove-SPFeatureSet Remove SPFeatureSet
Remove-SPFeatureSetMember Remove SPFeatureSetMember
Remove-SPIdentityProvider Remove SPIdentityProvider
Remove-SPIisWebServiceApplicationPool Remove SPIisWebServiceApplicationPool
Remove-SPManagedAccount Remove SPManagedAccount
Remove-SPManagedPath Remove SPManagedPath
Remove-SPParentFarmTrust Remove SPParentFarmTrust
Remove-SPServiceApplication Remove SPServiceApplication
Remove-SPServiceApplicationProxy Remove SPServiceApplicationProxy
Remove-SPServiceApplicationProxyGroup Remove SPServiceApplicationProxyGroup
Remove-SPServiceApplicationProxyGroupMember Remove SPServiceApplicationProxyGroupMember
Remove-SPSite Remove SPSite
Remove-SPSiteSubscription Remove SPSiteSubscription
Remove-SPSiteSubscriptionMetadataConfig Remove SPSiteSubscriptionMetadataConfig
Remove-SPSiteSubscriptionSettings Remove SPSiteSubscriptionSettings
Remove-SPSolution Remove SPSolution
Remove-SPSolutionDeploymentLock Remove SPSolutionDeploymentLock
Remove-SPUsageApplication Remove SPUsageApplication
Remove-SPUser Remove SPUser
Remove-SPUserSolution Remove SPUserSolution
Remove-SPWeb Remove SPWeb
Remove-SPWebApplication Remove SPWebApplication
Rename-SPServer Rename SPServer
Restore-SPFarm Restore SPFarm
Restore-SPSite Restore SPSite
Revoke-SPBusinessDataCatalogMetadataObject Revoke SPBusinessDataCatalogMetadataObject
Revoke-SPServiceApplication Revoke SPServiceApplication
Set-SPAlternateURL Set SPAlternateURL
Set-SPBrowserCustomerExperienceImprovementProgram Set SPBrowserCustomerExperienceImprovementProgram
Set-SPBusinessDataCatalogMetadataObject Set SPBusinessDataCatalogMetadataObject
Set-SPBusinessDataCatalogServiceApplication Set SPBusinessDataCatalogServiceApplication
Set-SPBusinessDataCatalogThrottleConfig Set SPBusinessDataCatalogThrottleConfig
Set-SPCentralAdministration Set SPCentralAdministration
Set-SPContentDatabase Set SPContentDatabase
Set-SPContentDeploymentJob Set SPContentDeploymentJob
Set-SPContentDeploymentPath Set SPContentDeploymentPath
Set-SPCustomLayoutsPage Set SPCustomLayoutsPage
Set-SPDesignerSettings Set SPDesignerSettings
Set-SPDiagnosticConfig Set SPDiagnosticConfig
Set-SPDiagnosticsProvider Set SPDiagnosticsProvider
Set-SPediscoveryHub Set SPediscoveryHub
Set-SPFarmConfig Set SPFarmConfig
Set-SPIdentityProvider Set SPIdentityProvider
Set-SPIisWebServiceApplicationPool Set SPIisWebServiceApplicationPool
Set-SPIisWebServiceSettings Set SPIisWebServiceSettings
Set-SPLogLevel Set SPLogLevel
Set-SPManagedAccount Set SPManagedAccount
Set-SPMetadataServiceApplication Set SPMetadataServiceApplication
Set-SPMetadataServiceApplicationProxy Set SPMetadataServiceApplicationProxy
Set-SPMobileMessagingAccount Set SPMobileMessagingAccount
Set-SPParentFarmTrust Set SPParentFarmTrust
Set-SPPassPhrase Set SPPassPhrase
Set-SPSearchService Set SPSearchService
Set-SPSearchServiceInstance Set SPSearchServiceInstance
Set-SPServiceApplication Set SPServiceApplication
Set-SPServiceEndpoint Set SPServiceEndpoint
Set-SPSite Set SPSite
Set-SPSiteAdministration Set SPSiteAdministration
Set-SPSiteSubscriptionConfig Set SPSiteSubscriptionConfig
Set-SPSiteSubscriptionMetadataConfig Set SPSiteSubscriptionMetadataConfig
Set-SPSubscriptionSettingsServiceApplication Set SPSubscriptionSettingsServiceApplication
Set-SPTimerJob Set SPTimerJob
Set-SPTopologyWebServiceApplication Set SPTopologyWebServiceApplication
Set-SPTopologyWebServiceProxy Set SPTopologyWebServiceProxy
Set-SPUsageApplication Set SPUsageApplication
Set-SPUsageDefinition Set SPUsageDefinition
Set-SPUsageService Set SPUsageService
Set-SPUser Set SPUser
Set-SPWeb Set SPWeb
Set-SPWebApplication Set SPWebApplication
Set-SPWebApplicationHttpThrottlingMonitor Set SPWebApplicationHttpThrottlingMonitor
Set-SPWebApplicationSiginRedirectUrl Set SPWebApplicationSiginRedirectUrl
Set-SPWebTemplate Set SPWebTemplate
Set-SPWorkflowConfig Set SPWorkflowConfig
Start-SPAdminJob Start SPAdminJob
Start-SPAssignment Start SPAssignment
Start-SPContentDeploymentJob Start SPContentDeploymentJob
Start-SPServiceInstance Start SPServiceInstance
Start-SPTimerJob Start SPTimerJob
Stop-SPAssignment Stop SPAssignment
Stop-SPServiceInstance Stop SPServiceInstance
Uninstall-SPFeature Uninstall SPFeature
Uninstall-SPHelpCollection Uninstall SPHelpCollection
Uninstall-SPSolution Uninstall SPSolution
Uninstall-SPUserSolution Uninstall SPUserSolution
Uninstall-SPWebPartPack Uninstall SPWebPartPack
Uninstall-SPWebTemplate Uninstall SPWebTemplate
Unpublish-SPServiceApplication Unpublish SPServiceApplication
Update-SPFarmEncryptionKey Update SPFarmEncryptionKey
Update-SPSolution Update SPSolution
Update-SPUserProfilePhotoStore Update SPUserProfilePhotoStore
Update-SPUserSolution Update SPUserSolution
Upgrade-SPContentDatabase Upgrade SPContentDatabase
   

 

Curious as to how to run these?   Simple… open the new SharePoint 2010 Management Console (PowerShell)

Startup

and enter a command to get help for one of the commands such as get-spsite

get-help get-spsite

One key thing I want to bring out here is that in the past (This Current Version MOSS 2007) in order to do a lot of what these scripts do we would have to instantiate the SP Object Model to invoke the ability to call areas of the application that in the past were only available via a developed solution.  

Take the time now and if your not familiar with PowerShell…. GET FAMILIAR WITH IT.  Its morphing and SharePoint 2010 has been assimilated :)   (wow that sounded awful Typical IT Dude like huh)

Enjoy folks.

Comments

There are no comments yet for this post.

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Your Name *


E-Mail


Comment *


Todays Date *

Select a date from the calendar.

Attachments