Archive for the 'SharePoint' Category

Extensible free SharePoint 2010 admin tool

This PowerPack by DJ Grijalva gives you UI for the functionality missing (or really hard to find) in native SharePoint Central Admin, including diagnostics and management for search, applications, accounts, sites and subscriptions.

You no longer have to go to command-line to perform these management tasks, but that is not it – because it is a PowerPack:

  • Bulk update: All actions support multiselect – so you can update multiple sites or other objects – you just select them all and click the action,
  • Learn to automate: You can see the PowerShell script behind everything the the tool does – just see properties for any UI element or go to View / PowerShell Script menu item,
  • Extend: Add your own nodes and actions using the PowerShell cmdlets shipped with SharePoint 2010.

Managing SharePoint 2010 – download DJ’s powerpack and let him know what you think!

DJ’s powerpack is participating in the PowerGUI Challenge 2010. Got a great powerpack idea? Take part in the contest!

SharePoint 2010 PowerShell Cheat Sheet Updated

SharePoint 2010 PowerShell Quick Start GuideI’ve just posted version 2.0 of our quick reference for PowerShell in SharePoint 2010.

The changes include a much improved layout (kudos to Ekaterina Burmistrova and Andrey Tsarkov!), one fixed code sample, and a whole new section on SharePoint backup (contributed by Ravi.

Download the updated guide here and add your suggestions as comments on the cheat sheet page.

SharePoint PowerShell Forum

Now that SharePoint 2010 is available for download you are probably getting started with all the PowerShell goodness shipped with it, and I bet once you go beyond the first few commands you can easily get stuck with something not so obvious.

To help you get the most out of your SharePoint Server, we have set up a new discussison forum at specifically around PowerShell and SharePoint. Get all you SharePoint PowerShell questions answered here!

SharePoint 2010 PowerShell Cheat Sheet

I’ve just posted a quick reference card / getting started manual on PowerShell for SharePoint 2010.

If you are managing SharePoint 2010 and want to quickly get started with PowerShell – this should be a good document to print out and pin to the wall of your office / cubicle.

It covers all the major topic from installation and required permissions, to setting up remote connections to the SharePoint servers, managing site collections, sites, lists, documents, jobs, workflows, Recycle Bin, and so on. We have even included troubleshooting tips for the main gotchas you can experience!

Huge thanks to Konstantin Vlasenko, Mike Plavsky, and Ravikanth Chaganti for contributing to the manual.

Download the SharePoint 2010 PowerShell Cheat Sheet and post your feedback so we can make it even better!

The Experts Conference 2010

TEC is one of the most advanced (400 level sessions are norm!) conferences you can find out there. This is probably the only event with so much technical information, amazing speakers (Microsoft product teams and real-world practitioners), and great audience (MVPs, chief IT architects, and so on.)

The topics range from Active Directory and Forefront Identity Manager (FIM) to Exchange and SharePoint technologies (follow the links to read the abstracts of the sessions which have been announced).

There will obviously be a fair bit of PowerShell on the way – e.g. Brandon Shell will be amazing everyone by totally scripting read-only domain controllers deployments.

TEC 2010 takes place April 25-28, 2010, at the brand new JW Marriott LA Live Hotel in the heart of Los Angeles. Learn more at, register today and ask for the early bird discount! 😉

SharePoint 2010 PowerShell Cmdlets Reference

[UPDATE] Below is basically a list of cmdlets. For actual examples of their use see this getting started guide.

Now that the NDA on SharePoint 2010 is finally lifted at Microsoft SharePoint Conference in Las Vegas I cannot help publishing this quick reference of all the 492(!) cmdlets available in the current beta release. I am including quick help information for the cmdlets which already have help.

[UPDATE: Oct 20: updated the reference to include 25 cmdlets I missed yesterday.]

These are listed by the names of objects they manage and sorted alphabetically – so scroll down for SPFarm, SPSite, SPUser, and so on.


  • Get-SPAccessServiceApplication – Gets an {Access Service} application object.
  • New-SPAccessServiceApplication
  • Set-SPAccessServiceApplication – Sets a global property for an {Access Services} application.


  • Start-SPAdminJob – Immediately starts any waiting administrative job on the local computer.


  • Get-SPAlternateURL – Return all alternate URLs that match a given criteria.
  • New-SPAlternateUrl – Creates a new public or internal URL for the specified Web application zone or resource.
  • Remove-SPAlternateUrl – Completely deletes the specified alternate URL.
  • Set-SPAlternateUrl – Configures the specified alternate URL.


  • Install-SPApplicationContent


  • Start-SPAssignment – Initiates a new assignment store.
  • Stop-SPAssignment – Disposes of objects in the provided Assignment Collection.


  • Get-SPBackupHistory


  • Move-SPBlobStorageLocation


  • Get-SPBrowserCustomerExperienceImprovementProgram
  • Set-SPBrowserCustomerExperienceImprovementProgram


  • Copy-SPBusinessDataCatalogAclToChildren


  • Disable-SPBusinessDataCatalogEntity
  • Enable-SPBusinessDataCatalogEntity


  • Get-SPBusinessDataCatalogMetadataObject
  • Grant-SPBusinessDataCatalogMetadataObject
  • Revoke-SPBusinessDataCatalogMetadataObject
  • Set-SPBusinessDataCatalogMetadataObject


  • Export-SPBusinessDataCatalogModel
  • Import-SPBusinessDataCatalogModel
  • Remove-SPBusinessDataCatalogModel


  • Remove-SPBusinessDataCatalogPartition


  • Clear-SPBusinessDataCatalogPartitionData
  • Export-SPBusinessDataCatalogPartitionData
  • Import-SPBusinessDataCatalogPartitionData


  • New-SPBusinessDataCatalogServiceApplication
  • Set-SPBusinessDataCatalogServiceApplication


  • New-SPBusinessDataCatalogServiceApplicationProxy


  • Get-SPBusinessDataCatalogThrottleConfig
  • Remove-SPBusinessDataCatalogThrottleConfig
  • Set-SPBusinessDataCatalogThrottleConfig


  • New-SPCentralAdministration – Creates a new Central Administration Web application.
  • Set-SPCentralAdministration


  • Get-SPCertificate
  • New-SPCertificate
  • Remove-SPCertificate


  • Get-SPCertificateStore


  • Add-SPClaimMapping
  • New-SPClaimMapping
  • Remove-SPClaimMapping


  • Get-SPClaimProviderManager


  • New-SPClaimsObject


  • New-SPClaimsPrincipal


  • Backup-SPConfigurationDatabase – Performs a configuration only backup.
  • Connect-SPConfigurationDatabase – Connects the computer to an existing configuration database.
  • Disconnect-SPConfigurationDatabase
  • New-SPConfigurationDatabase – Creates a new configuration database.
  • Remove-SPConfigurationDatabase – Permanently removes the specified configuration database.


  • Check-SPContentDatabase
  • Dismount-SPContentDatabase
  • Get-SPContentDatabase
  • Initialize-SPContentDatabase
  • Mount-SPContentDatabase
  • New-SPContentDatabase
  • Remove-SPContentDatabase
  • Set-SPContentDatabase
  • Upgrade-SPContentDatabase


  • Get-SPContentDeploymentJob
  • New-SPContentDeploymentJob
  • Remove-SPContentDeploymentJob
  • Set-SPContentDeploymentJob
  • Start-SPContentDeploymentJob


  • Get-SPContentDeploymentPath
  • New-SPContentDeploymentPath
  • Remove-SPContentDeploymentPath
  • Set-SPContentDeploymentPath


  • Get-SPCustomLayoutsPage
  • Set-SPCustomLayoutsPage


  • Get-SPDatabase – Retrieves all properties of a database.


  • Get-SPDataConnectionFile – Returns a data connection file or a collection of data connection files.
  • Install-SPDataConnectionFile – Installs the provided data connection file.
  • Set-SPDataConnectionFile – Sets properties of a data connection file.
  • Uninstall-SPDataConnectionFile – Removes a data connection file.


  • Get-SPDataConnectionFileDependent – Returns administrator deployed form templates on the server dependent on a Universal Data Connection (UDC).


  • Get-SPDesignerSettings
  • Set-SPDesignerSettings


  • Get-SPDiagnosticConfig
  • Set-SPDiagnosticConfig


  • Get-SPDiagnosticsProvider
  • Set-SPDiagnosticsProvider


  • Set-SPediscoveryHub


  • Get-SPEdiscoveryHubSearchScope


  • Get-SPediscoveryHubSite


  • Get-SPEnterpriseSearchAdministrationComponent – Returns the administration component for a shared search application.
  • Set-SPEnterpriseSearchAdministrationComponent – Sets properties of an administration component for a shared search application.


  • Get-SPEnterpriseSearchCrawlComponent – Returns a crawl component for a shared search application.
  • New-SPEnterpriseSearchCrawlComponent – Creates a crawl component for a shared search application.
  • Remove-SPEnterpriseSearchCrawlComponent – Deletes a crawl component from a shared search application.


  • Get-SPEnterpriseSearchCrawlContentSource – Returns a crawl content source.
  • New-SPEnterpriseSearchCrawlContentSource – Creates a new crawl content source for a shared search application.
  • Remove-SPEnterpriseSearchCrawlContentSource – Deletes a specified crawl content source from a search application.
  • Set-SPEnterpriseSearchCrawlContentSource – Sets the properties of a crawl content source for a shared search application.


  • Get-SPEnterpriseSearchCrawlCustomConnector
  • New-SPEnterpriseSearchCrawlCustomConnector
  • Remove-SPEnterpriseSearchCrawlCustomConnector


  • Get-SPEnterpriseSearchCrawlDatabase – Returns a crawl store.
  • New-SPEnterpriseSearchCrawlDatabase – Adds a crawl store to a shared search application.
  • Remove-SPEnterpriseSearchCrawlDatabase – Deletes a content crawl store.
  • Set-SPEnterpriseSearchCrawlDatabase


  • Get-SPEnterpriseSearchCrawlExtension – Returns the extension rule for the extension collection.
  • New-SPEnterpriseSearchCrawlExtension – Adds an extension rule to a shared search application.
  • Remove-SPEnterpriseSearchCrawlExtension – Removes a file name extension from the list of files that can be crawled.


  • Get-SPEnterpriseSearchCrawlMapping – Returns a crawl mapping for the search application.
  • New-SPEnterpriseSearchCrawlMapping – Creates a crawl mapping rule for a shared search application.
  • Remove-SPEnterpriseSearchCrawlMapping – Deletes a crawl mapping.


  • Get-SPEnterpriseSearchCrawlRule – Output an CrawlRule Object.
  • New-SPEnterpriseSearchCrawlRule – Output an CrawlRule Object.
  • Remove-SPEnterpriseSearchCrawlRule – Output an CrawlRule Object.
  • Set-SPEnterpriseSearchCrawlRule – Output an CrawlRule Object.


  • Get-SPEnterpriseSearchCrawlTopology – Returns a crawl topology.
  • New-SPEnterpriseSearchCrawlTopology – Adds a crawl topology to a shared search application.
  • Remove-SPEnterpriseSearchCrawlTopology – Deletes a crawl topology.
  • Set-SPEnterpriseSearchCrawlTopology – Sets the properties of a crawl topology on a shared search application.


  • Get-SPEnterpriseSearchExtendedClickThroughExtractorJobDefinition


  • Get-SPEnterpriseSearchExtendedConnectorProperty
  • Set-SPEnterpriseSearchExtendedConnectorProperty


  • Get-SPEnterpriseSearchExtendedQueryProperty
  • Set-SPEnterpriseSearchExtendedQueryProperty


  • Get-SPEnterpriseSearchIndexPartition – Returns an index partition for a query topology.
  • Set-SPEnterpriseSearchIndexPartition – Sets properties of an index partition for a query topology.


  • Get-SPEnterpriseSearchLanguageResourcePhrase – Returns a language resource phrase.
  • New-SPEnterpriseSearchLanguageResourcePhrase – Adds a language resource phrase to a shared search application.
  • Remove-SPEnterpriseSearchLanguageResourcePhrase – Deletes a language resource phrase from a shared search application.


  • Get-SPEnterpriseSearchManagerService – Returns the search manager service.


  • Get-SPEnterpriseSearchManagerServiceInstance – Returns the service manager service instance.
  • Start-SPEnterpriseSearchManagerServiceInstance – Starts an instance of a search manager service.
  • Stop-SPEnterpriseSearchManagerServiceInstance – Stops an instance of a search manager service.


  • Get-SPEnterpriseSearchManagerServiceProxy – Returns the search manager service proxy.


  • Get-SPEnterpriseSearchMetadataCategory – Returns a crawled property category.
  • New-SPEnterpriseSearchMetadataCategory – Adds a crawled property category to a shared search application.
  • Remove-SPEnterpriseSearchMetadataCategory – Deletes a crawled property category.
  • Set-SPEnterpriseSearchMetadataCategory – Sets properties of a crawled property category for a shared search application.


  • Get-SPEnterpriseSearchMetadataCrawledProperty – Returns a crawled property.
  • New-SPEnterpriseSearchMetadataCrawledProperty – Adds a crawled property category to a shared search application.
  • Set-SPEnterpriseSearchMetadataCrawledProperty – Sets the properties of a metadata crawled property for a shared search application.


  • Get-SPEnterpriseSearchMetadataManagedProperty – Returns a managed property.
  • New-SPEnterpriseSearchMetadataManagedProperty – Adds a managed property to a shared search application.
  • Remove-SPEnterpriseSearchMetadataManagedProperty – Deletes a metadata managed property.
  • Set-SPEnterpriseSearchMetadataManagedProperty – Sets the properties of a metadata managed property.


  • Get-SPEnterpriseSearchMetadataMapping – Returns the current state of a managed property mapping.
  • New-SPEnterpriseSearchMetadataMapping – Adds a managed property mapping to a shared search application.
  • Remove-SPEnterpriseSearchMetadataMapping – Deletes a metadata mapping from a managed property.
  • Set-SPEnterpriseSearchMetadataMapping – Sets the properties of a managed property mapping for a shared search application.


  • Get-SPEnterpriseSearchPropertyDatabase – Returns a property store.
  • New-SPEnterpriseSearchPropertyDatabase – Adds a new property store to a shared search application.
  • Remove-SPEnterpriseSearchPropertyDatabase – Deletes a property store.
  • Set-SPEnterpriseSearchPropertyDatabase


  • Get-SPEnterpriseSearchQueryAuthority – Returns an authoritative page.
  • New-SPEnterpriseSearchQueryAuthority – Adds an authoritative page to a shared search application.
  • Remove-SPEnterpriseSearchQueryAuthority – Deletes an authoritative page.
  • Set-SPEnterpriseSearchQueryAuthority – Sets the properties of an authoritative page for a shared search application.


  • Get-SPEnterpriseSearchQueryComponent – Returns a query component.
  • New-SPEnterpriseSearchQueryComponent – Adds a query component to a query topology.
  • Remove-SPEnterpriseSearchQueryComponent – Deletes a query component.
  • Restart-SPEnterpriseSearchQueryComponent
  • Set-SPEnterpriseSearchQueryComponent


  • Get-SPEnterpriseSearchQueryDemoted – Returns a demoted site rule.
  • New-SPEnterpriseSearchQueryDemoted – Adds a demoted site rule to a shared search application.
  • Remove-SPEnterpriseSearchQueryDemoted – Deletes a demoted site rule.


  • Get-SPEnterpriseSearchQueryKeyword – Returns a keyword term.
  • New-SPEnterpriseSearchQueryKeyword – Adds a keyword term to a shared search application.
  • Remove-SPEnterpriseSearchQueryKeyword – Deletes a query keyword.
  • Set-SPEnterpriseSearchQueryKeyword – Sets the properties of a keyword term for a shared search application.


  • Get-SPEnterpriseSearchQueryScope – Returns a query results scope.
  • New-SPEnterpriseSearchQueryScope – Adds a query results scope to a shared search application.
  • Remove-SPEnterpriseSearchQueryScope – Deletes a query scope.
  • Set-SPEnterpriseSearchQueryScope – Sets the properties of a query results scope for a shared search application.


  • Get-SPEnterpriseSearchQueryScopeRule – Returns a shared scope rule.
  • New-SPEnterpriseSearchQueryScopeRule – Adds a shared scope rule to a query scope.
  • Remove-SPEnterpriseSearchQueryScopeRule – Deletes query results scope rules.
  • Set-SPEnterpriseSearchQueryScopeRule – Sets the properties of a shared scope rule for a query scope.


  • Get-SPEnterpriseSearchQuerySuggestionCandidates


  • Get-SPEnterpriseSearchQueryTopology – Returns a query topology.
  • New-SPEnterpriseSearchQueryTopology – Adds a query topology to a shared search application.
  • Remove-SPEnterpriseSearchQueryTopology – Deletes a query topology.
  • Set-SPEnterpriseSearchQueryTopology – Sets the properties of a query topology for a shared search application.


  • Get-SPEnterpriseSearchRankingModel – Returns a ranking model.
  • New-SPEnterpriseSearchRankingModel – Adds a ranking model to a shared search application.
  • Remove-SPEnterpriseSearchRankingModel – Deletes a ranking model.
  • Set-SPEnterpriseSearchRankingModel – Sets the properties of a ranking model for a shared search application.


  • Get-SPEnterpriseSearchSecurityTrimmer – Returns a custom security trimmer.
  • New-SPEnterpriseSearchSecurityTrimmer – Adds a custom security trimmer to a shared search application.
  • Remove-SPEnterpriseSearchSecurityTrimmer – Deletes a custom security trimmer.


  • Get-SPEnterpriseSearchService – Returns the search service for the farm.
  • Set-SPEnterpriseSearchService – Sets the properties of a search service for a farm.


  • Get-SPEnterpriseSearchServiceApplication – Returns the search service application for a farm.
  • New-SPEnterpriseSearchServiceApplication – Adds a search service application to a farm.
  • Remove-SPEnterpriseSearchServiceApplication – Deletes a search service application.
  • Restore-SPEnterpriseSearchServiceApplication
  • Set-SPEnterpriseSearchServiceApplication – Sets the properties of a search service application for a farm.
  • Upgrade-SPEnterpriseSearchServiceApplication


  • Get-SPEnterpriseSearchServiceApplicationProxy – Returns the search service application proxy.
  • New-SPEnterpriseSearchServiceApplicationProxy – Adds a site hit rule for a search application.
  • Remove-SPEnterpriseSearchServiceApplicationProxy – Deletes a search service application proxy.
  • Set-SPEnterpriseSearchServiceApplicationProxy – Sets properties of a search service application proxy.


  • Get-SPEnterpriseSearchServiceInstance – Returns the search service instance for a farm.
  • Set-SPEnterpriseSearchServiceInstance – Sets the properties of a search service instance.
  • Start-SPEnterpriseSearchServiceInstance – Starts an instance of a search service.
  • Stop-SPEnterpriseSearchServiceInstance – Stops an instance of a search service.


  • Get-SPEnterpriseSearchSiteHitRule – Returns shared site hit rule.
  • New-SPEnterpriseSearchSiteHitRule – Output an SiteHitRule Object.
  • Remove-SPEnterpriseSearchSiteHitRule – Output an SiteHitRule Object.


  • Export-SPEnterpriseSearchTopology – Saves an existing search topology.
  • Import-SPEnterpriseSearchTopology – Imports and activates a topology from an XML file.


  • Get-SPExcelBlockedFileType
  • New-SPExcelBlockedFileType
  • Remove-SPExcelBlockedFileType


  • Get-SPExcelDataConnectionLibrary
  • New-SPExcelDataConnectionLibrary
  • Remove-SPExcelDataConnectionLibrary
  • Set-SPExcelDataConnectionLibrary


  • Get-SPExcelDataProvider
  • New-SPExcelDataProvider
  • Remove-SPExcelDataProvider
  • Set-SPExcelDataProvider


  • Get-SPExcelFileLocation
  • New-SPExcelFileLocation
  • Remove-SPExcelFileLocation
  • Set-SPExcelFileLocation


  • Get-SPExcelServiceApplication – Gets an {Excel Service} application object.
  • New-SPExcelServiceApplication
  • Set-SPExcelServiceApplication – Sets a global property for an {Excel Services} application.


  • Get-SPExcelUserDefinedFunction
  • New-SPExcelUserDefinedFunction
  • Remove-SPExcelUserDefinedFunction
  • Set-SPExcelUserDefinedFunction


  • Backup-SPFarm – Creates a backup of an individual database, Web application, or the entire farm.
  • Get-SPFarm – Returns the local SharePoint farm.
  • Restore-SPFarm


  • Get-SPFarmConfig
  • Set-SPFarmConfig


  • Update-SPFarmEncryptionKey – Changes the farm encryption key to a new value and re-encrypts all data currently encrypted with the current farm encryption key with the new one.


  • Disable-SPFeature – Disables an installed feature at a given scope.
  • Enable-SPFeature – Enables an installed feature at the given scope.
  • Get-SPFeature – Returns the features based on a give scope.
  • Install-SPFeature – Install a feature using the Feature.xml file.
  • Uninstall-SPFeature – Uninstalls an installed feature definition.


  • Get-SPFeatureSet
  • New-SPFeatureSet
  • Remove-SPFeatureSet


  • Add-SPFeatureSetMember
  • Remove-SPFeatureSetMember


  • Get-SPHelpCollection
  • Install-SPHelpCollection – Install the provided help collection files.
  • Uninstall-SPHelpCollection


  • Get-SPIdentityProvider
  • New-SPIdentityProvider
  • Remove-SPIdentityProvider
  • Set-SPIdentityProvider


  • Get-SPIisWebServiceApplicationPool – Returns the specified Internet Information Services (IIS) Application pool.
  • New-SPIisWebServiceApplicationPool – Creates a new Web service application pool.
  • Remove-SPIisWebServiceApplicationPool – Completely deletes the specified Web service application pool.
  • Set-SPIisWebServiceApplicationPool – Changes the account used for the Identity of the specified application pool.


  • Get-SPIisWebServiceSettings – Returns the common Web Service settings.
  • Set-SPIisWebServiceSettings – Configures one or more common settings for all Web services.


  • Export-SPInfoPathAdministrationFiles – Saves form templates on the SharePoint Central Administration Web site and UDCX files to a CAB file.
  • Import-SPInfoPathAdministrationFiles – Imports form templates and UDCX files located on the SharePoint Central Administration Web site.


  • Get-SPInfoPathFormsService – Returns the forms service settings in the farm.
  • Set-SPInfoPathFormsService – Sets paramaters for the InfoPath Forms Services.


  • Disable-SPInfoPathFormTemplate – Deactivate a form template from the specified site collection.
  • Enable-SPInfoPathFormTemplate – Activates a form template in the specified site collection.
  • Get-SPInfoPathFormTemplate – Returns an InfoPath form template.
  • Install-SPInfoPathFormTemplate – Installs an InfoPath form template on a farm.
  • Set-SPInfoPathFormTemplate – Sets properties of an InfoPath form template.
  • Start-SPInfoPathFormTemplate – Unquieces an InfoPath form template on a farm after an upgrade.
  • Stop-SPInfoPathFormTemplate – Disables an InfoPath form template on a farm before an upgrade.
  • Test-SPInfoPathFormTemplate – Validates that a form template can be browser-enabled.
  • Uninstall-SPInfoPathFormTemplate – Removes a form template from a farm.
  • Update-SPInfoPathFormTemplate – Upgrades all forms templates on the farm.


  • Update-SPInfoPathUrl – Executes InfoPath XSN/UDC fix-up on SharePoint Services.


  • Add-SPInfoPathUserAgent – Adds a user agent to a farm.
  • Get-SPInfoPathUserAgent – Returns a user agent or all the currently defined user agents for the farm.
  • Remove-SPInfoPathUserAgent – Removes a user agent.


  • Get-SPInfoPathWebServiceProxy – Returns the Web proxy settings for the Web application.
  • Set-SPInfoPathWebServiceProxy – Sets parameters for an existing SharePoint Web service application.


  • Get-SPLogEvent


  • Merge-SPLogFile
  • New-SPLogFile


  • Clear-SPLogLevel
  • Get-SPLogLevel
  • Set-SPLogLevel


  • Get-SPManagedAccount – Retrieves accounts registered in configuration database.
  • New-SPManagedAccount – Registers a new managed account.
  • Remove-SPManagedAccount – Removes a managed account from the farm.
  • Set-SPManagedAccount – Configures the managed account.


  • Get-SPManagedPath – Returns all managed paths that match the given criteria.
  • New-SPManagedPath – Creates a new managed path for the given Web application for all host header site collections.
  • Remove-SPManagedPath – Deletes the specified managed path from the specified host header or Web application.


  • Get-SPMetadataServiceApplication – Get a MetadataWebServiceApplication instance
  • New-SPMetadataServiceApplication – Create a Metadata Shared Service Application
  • Set-SPMetadataServiceApplication – Set properties on a Metadata Shared Service Application


  • Get-SPMetadataServiceApplicationProxy – Get a MetadataWebServiceApplicationProxy instance
  • New-SPMetadataServiceApplicationProxy – Create proxy for remote or local Metadata shared service application
  • Set-SPMetadataServiceApplicationProxy – Update metadata proxy settings


  • Clear-SPMetadataWebServicePartitionData
  • Export-SPMetadataWebServicePartitionData
  • Import-SPMetadataWebServicePartitionData


  • Get-SPMobileMessagingAccount – Retrieves mobile messaging accounts for the specified Web application.
  • Set-SPMobileMessagingAccount – Configures the specified mobile messaging account.


  • New-SPObaSolutionPackage


  • Get-SPObjectSecurity – Returns the security information for the specified service application.


  • Get-SPParentFarmTrust
  • New-SPParentFarmTrust
  • Remove-SPParentFarmTrust
  • Set-SPParentFarmTrust


  • Set-SPPassPhrase – Sets the Passphrase to a new value.


  • Get-SPProcessAccount


  • Get-SPProduct – Returns a list of the SharePoint related products installed in the farm and the versions of all updates installed for each of them.


  • New-SPProfileServiceApplication
  • Set-SPProfileServiceApplication


  • New-SPProfileServiceApplicationProxy
  • Set-SPProfileServiceApplicationProxy


  • Add-SPProfileServiceApplicationTenant
  • Export-SPProfileServiceApplicationTenant
  • Import-SPProfileServiceApplicationTenant
  • Remove-SPProfileServiceApplicationTenant
  • Set-SPProfileServiceApplicationTenant


  • Initialize-SPResourceSecurity


  • Get-SPSearchService – Returns a search service.
  • Set-SPSearchService – Sets properties of a search service.


  • Get-SPSearchServiceInstance – Returns an instance of a search service.
  • Set-SPSearchServiceInstance – Sets properties of a search service instance.


  • Get-SPSecureStoreApplication
  • New-SPSecureStoreApplication
  • Remove-SPSecureStoreApplication
  • Set-SPSecureStoreApplication


  • New-SPSecureStoreApplicationField


  • Update-SPSecureStoreApplicationServerKey


  • Clear-SPSecureStoreCredentialMapping
  • Update-SPSecureStoreCredentialMapping


  • Update-SPSecureStoreGroupCredentialMapping


  • Update-SPSecureStoreMasterKey


  • New-SPSecureStoreServiceApplication
  • Set-SPSecureStoreServiceApplication


  • New-SPSecureStoreServiceApplicationProxy


  • New-SPSecureStoreTargetApplication


  • Get-SPSecurityTokenService


  • Get-SPServer – Returns the server(s) in the farm that match the given identity.
  • Rename-SPServer – Renames a server that is currently connected to the farm.


  • Get-SPServiceApplication – Return the specified service application.
  • Grant-SPServiceApplication – Grants a user account access to the Service Application.
  • Publish-SPServiceApplication – Share the specified local Service Application outside the farm.
  • Remove-SPServiceApplication – Deletes the specified service application on the local server.
  • Revoke-SPServiceApplication – Revokes a user’s access to a service application.
  • Set-SPServiceApplication
  • Unpublish-SPServiceApplication – Stop sharing the specified service application outside the farm.


  • Get-SPServiceApplicationProxy – Returns an instance of the specified Service Application Proxy.
  • Remove-SPServiceApplicationProxy – Delete the specified service application proxy.


  • Get-SPServiceApplicationProxyGroup – Returns the proxy group for the specified service application.
  • New-SPServiceApplicationProxyGroup – Creates a new service application proxy group.
  • Remove-SPServiceApplicationProxyGroup – Completely deletes the specified service application proxy group.


  • Add-SPServiceApplicationProxyGroupMember – Adds a member to the service application proxy group.
  • Remove-SPServiceApplicationProxyGroupMember – Removes one or more proxies from the specified service application proxy group.


  • Get-SPServiceContext


  • Get-SPServiceEndpoint
  • Set-SPServiceEndpoint


  • Get-SPServiceInstance – Returns the services instance for a specific server or the farm.
  • Start-SPServiceInstance – Starts the Service Instance for a Service on a specific server or the farm.
  • Stop-SPServiceInstance – Stops the Service Instance for a Service.


  • Disable-SPSessionStateService
  • Enable-SPSessionStateService
  • Get-SPSessionStateService
  • Set-SPSessionStateService


  • Receive-SPSharedServiceApplicationInfo


  • Disable-SPSingleSignOn – Disables the SharePoint Single Sign On service


  • Upgrade-SPSingleSignOnDatabase – Upgrades the SSO 12 data to a Secure Store database


  • Backup-SPSite – Performs a backup of a site collection.
  • Get-SPSite – Returns all site collections that match the given criteria.
  • New-SPSite – Creates a new site collection at the specified URL.
  • Remove-SPSite – Completely deletes an existing site collection and all sub-sites.
  • Restore-SPSite – Restores a site collection.
  • Set-SPSite – Configures the specified sites.


  • Get-SPSiteAdministration – Returns a site administration object which allows a farm administrator to view certain information about site collections they may not have access to.
  • Set-SPSiteAdministration – Allows farm administrators to configure any site collection.


  • Get-SPSiteSubscription – Returns the site subscription for the given URL or all site subscriptions in the local farm.
  • New-SPSiteSubscription – Creates a new site subscription.
  • Remove-SPSiteSubscription – Removes a site subscription along with all contained site collections and settings.


  • Get-SPSiteSubscriptionConfig
  • Set-SPSiteSubscriptionConfig


  • Get-SPSiteSubscriptionMetadataConfig
  • Remove-SPSiteSubscriptionMetadataConfig
  • Set-SPSiteSubscriptionMetadataConfig


  • Export-SPSiteSubscriptionSettings
  • Import-SPSiteSubscriptionSettings
  • Remove-SPSiteSubscriptionSettings


  • Add-SPSolution
  • Get-SPSolution
  • Install-SPSolution
  • Remove-SPSolution
  • Uninstall-SPSolution
  • Update-SPSolution


  • Remove-SPSolutionDeploymentLock


  • Get-SPStateServiceApplication
  • New-SPStateServiceApplication
  • Set-SPStateServiceApplication


  • Get-SPStateServiceApplicationProxy
  • New-SPStateServiceApplicationProxy
  • Set-SPStateServiceApplicationProxy


  • Dismount-SPStateServiceDatabase
  • Get-SPStateServiceDatabase
  • Initialize-SPStateServiceDatabase
  • Mount-SPStateServiceDatabase
  • New-SPStateServiceDatabase
  • Remove-SPStateServiceDatabase
  • Resume-SPStateServiceDatabase
  • Set-SPStateServiceDatabase
  • Suspend-SPStateServiceDatabase


  • New-SPSubscriptionSettingsServiceApplication
  • Set-SPSubscriptionSettingsServiceApplication


  • New-SPSubscriptionSettingsServiceApplicationProxy


  • Get-SPTaxonomySession – Get a TaxonomySession instance


  • Disable-SPTimerJob
  • Enable-SPTimerJob
  • Get-SPTimerJob
  • Set-SPTimerJob
  • Start-SPTimerJob


  • Get-SPTopologyWebServiceApplication
  • Set-SPTopologyWebServiceApplication


  • Get-SPTopologyWebServiceProxy
  • Set-SPTopologyWebServiceProxy


  • Get-SPUsageApplication
  • New-SPUsageApplication
  • Remove-SPUsageApplication
  • Set-SPUsageApplication


  • Get-SPUsageDefinition
  • Set-SPUsageDefinition


  • New-SPUsageLogFile


  • Get-SPUsageService
  • Set-SPUsageService


  • Get-SPUser – Returns the user(s) that match a given search criteria.
  • Move-SPUser – Migrates a user account in .
  • New-SPUser – Adds an existing user to a site with the designated permissions.
  • Remove-SPUser – Removes a user from a web site.
  • Set-SPUser – Configures properties on an existing user.


  • Update-SPUserProfilePhotoStore


  • Add-SPUserSolution
  • Get-SPUserSolution
  • Install-SPUserSolution
  • Remove-SPUserSolution
  • Uninstall-SPUserSolution
  • Update-SPUserSolution


  • Get-SPVisioExternalData – Returns the settings for external data connections for a Visio Service application.
  • Set-SPVisioExternalData


  • Get-SPVisioPerformance – Returns the Visio Graphics Services settings for the performance of a Visio Service application.
  • Set-SPVisioPerformance – Sets performance properties for a Visio Services application.


  • Get-SPVisioSafeDataProvider – Returns the settings of a safe data provider for a Visio Services application.
  • New-SPVisioSafeDataProvider – Adds a new data provider to a Visio Services application.
  • Remove-SPVisioSafeDataProvider – Removes a data provider from a Visio Services application.
  • Set-SPVisioSafeDataProvider – Specifies a description of a safe data provider for a Visio Services application.


  • Get-SPVisioServiceApplication – Returns properties of a Visio Services application or a collection of Visio Services applications.
  • New-SPVisioServiceApplication – Adds a new Visio Services application to a farm.
  • Remove-SPVisioServiceApplication – Removes a Visio Services application from a farm.
  • Set-SPVisioServiceApplication – Sets the ServiceApplicationPool property of a Visio Services application.


  • Get-SPVisioServiceApplicationProxy – Returns properties of a Visio Services application proxy or a collection of Visio Services application proxies.
  • New-SPVisioServiceApplicationProxy – Adds a new Visio Services application proxy to a farm.
  • Remove-SPVisioServiceApplicationProxy – Removes a Visio Services application proxy from a farm.


  • Export-SPWeb – Exports a site collection, Web application, list, or library.
  • Get-SPWeb – Returns all sub-sites that match the given criteria.
  • Import-SPWeb – Imports a site collection, Web application, list, or library.
  • New-SPWeb – Creates a new sub-site under any existing site collection.
  • Remove-SPWeb – Completely deletes the specified Web.
  • Set-SPWeb – Configures the specified sub-site.


  • Get-SPWebAnalyticsServiceApplication – Returns the settings for a Web Analytics Service application.
  • New-SPWebAnalyticsServiceApplication – Adds a new Web Analytics Service application to the farm.
  • Set-SPWebAnalyticsServiceApplication – Sets properties of a Web Analytics Service application.


  • New-SPWebAnalyticsServiceApplicationProxy – Adds a new Web Analytics Service application proxy to the farm.


  • Get-SPWebApplication – Returns all Web applications that match the given criteria.
  • New-SPWebApplication – Creates a new Web application within the local farm.
  • Remove-SPWebApplication – Deletes the specified Web application.
  • Set-SPWebApplication – Configure the specified Web application.


  • New-SPWebApplicationExtension – Creates a new zone instance for the Web application.


  • Disable-SPWebApplicationHttpThrottling
  • Enable-SPWebApplicationHttpThrottling


  • Set-SPWebApplicationHttpThrottlingMonitor


  • Get-SPWebApplicationHttpThrottlingMonitors


  • Set-SPWebApplicationSiginRedirectUrl


  • Get-SPWebPartPack – Return the Web part packages installed for the specified scope.
  • Install-SPWebPartPack – Installs the specified Web part package to the specified location.
  • Uninstall-SPWebPartPack – Uninstall the specified Web part package.


  • Get-SPWebTemplate – Displays all globally installed site templates that match the given identity.
  • Install-SPWebTemplate – Installs the given site template.
  • Set-SPWebTemplate – Changes the title and description of an installed site template.
  • Uninstall-SPWebTemplate – Uninstall the given site template.


  • New-SPWordConversionServiceApplication – Creates a new service application.
  • Set-SPWordConversionServiceApplication – Sets parameters on a service application.


  • New-SPWordConversionServiceApplicationProxy – Creates a new service application proxy.


  • Get-SPWorkflowConfig – Returns workflow settings for the specified Web application.
  • Set-SPWorkflowConfig – Configures the workflow settings for the specified Web application.

PowerShell cmdlets in SharePoint 2010

[UPDATE] See this blog post for up to date SharePoint 2010 PowerShell Reference.

SharePoint has for a long time been a notable absentee at the PowerShell party – but it looks like the wait is now almost over. Technical Preview of the product shared by Microsoft just a few days ago has at least a few cmdlets shipped with it.

If you download “Customizing the Ribbon in Windows® SharePoint® Services “14”” documentation publicly available here (found this via Frank Migacz) you can find these instructions in the PDF file:

To deploy a Feature by using Windows PowerShell, you install it and then enable it by using the following commands.
Install-SPFeature FeatureId
Enable-SPFeature FeatureId -Url http://server/site/subsite

Judging by these examples, nouns in cmdlets are pre-fixed with “SP” to avoid possible naming conflicts.

I’ll keep you posted on any new developments and public information on PowerShell in SharePoint 2010.

For now, it looks like this is a huge step forward by the SharePoint team making the new version much more manageable. Awesome news and great work!

Tags: , ,

SharePoint Policies in PowerShell

Often times you want to specify some kind policy/rule to be executed when something is changed in SharePoint. For example, check for name uniqueness when an item is added to a list, or make sure that certain properties of the item adhere to your rules, or update some other item in SharePoint – the list can go on and on. Now, thanks to the SharePoint PowerEventReceivers library you can write any of these policies as a PowerShell script!

What makes it even more cool is that this SharePoint extension is integrated with PowerGUI. So you can edit your SharePoint policies in the PowerGUI Script Editor with Intellisense, F1 help and other functionality of this IDE, and then simply save the script from PowerGUI and have it automatically updated in SharePoint.

SharePoint PowerEventReceivers Demo

Check out Christian’s video and other details in his blog post.

Tags: , ,

Taming SharePoint

As we all know SharePoint does not have a native set of PowerShell cmdlets – which does not mean that PowerShell crowd does not want to manage it with PowerShell. 😉 If you check out PowerGUI library you will find 4 (!) powerpacks (as usual with all PowerShell code behind!) for SharePoint management:

  • SharePoint powerpack which list the SharePoint Webs, folders, and List, you can also monitor the SharePoint usage.
  • SharePoint farm PowerPack allows you to display the properties of the local farm, get a list of servers running in your farm, list SharePoint services and monitor the status and which services needs upgrade, and list the web services and web applications.
  • SharePoint Navigator PowerPack comes with full site navigation through the sites, webs, going down to folders and browsing through the files, viewing document properties and versions.
  • SharePoint remote access powerpack (browsing lists, document libraries, users, groups, roles, and supporting file and folder deletion, allows remote access to a Sharepoint machine.

The first three were submitted by Ayman Wassif (and are using .NET API) and the last one by Jamie Redman (and illustrates remote management via web services!). Check them out – you will learn quite a few tricks and will get a nice extensible SharePoint management tool for your day-to-day administration.

And please rate them and add your comments to the library entries. I know that these are very important to anyone posting their packs to the library!

Tags: , , ,

File Migrator for SharePoint got a PowerGUI pack

This is something I wanted to see for a long time – a commercial application shipping with PowerShell support and a PowerGUI pack on top of it!

Quest File Migrator for SharePoint seems to be one of the first products that did that. The product is basically a solution to migrate your existing file servers to SharePoint (WSS or MOSS) sites. As your migration project grows in scale you might want to get a solution to bulk-manage your migration agents and jobs.

PowerGUI pack for file server to SharePoint migration

Ayman’s SharePoint File Migration PowerPack allows you to do that: deploy, remove, manage migration agents; start, stop, create, remove, schedule migration jobs, and so on. All that obviously uses PowerGUI sorting, filtering and reporting capabilities and shows you the PowerShell code behind.

The pack is freely available from PowerGUI library. The core file to SharePoint migration tool (with a free trial download) can be found here.

Full disclosure: this is obviously a product by Quest Software – the company for which I work and in which I am doing my best to PowerShell- and PowerGUI-enable all products. However, PowerGUI and are open to any other software company in the world, and you can freely use it to make your product better. Anyone can post any PowerPack to the PowerGUI library.

Tags: , , , ,

My Recent Tweets


The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

August 2021

%d bloggers like this: