Tag Archives: Windows PowerShell

List All SharePoint 2013 PowerShell Commands

PowerShell logoSharePoint-2013The preview has been released and with it comes many new features and capabilities. Microsoft continues to invest in PowerShell, as noted through their recent previews of Windows 8 and Windows Server 2012. SharePoint 2013 makes no exception. The preview includes 772 commands!

Get Count
(Get-Command -PSSnapin Microsoft.SharePoint.PowerShell).count

List All Commands
Get-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | select name, definition | fl > C:\SP2013_PowerShell_Commands.txt

Full List
Here are all the commands in the preview. I will highlight some of these individually over the coming weeks.

Add-SPAppDeniedEndpoint
Add-SPClaimTypeMapping
Add-SPDiagnosticsPerformanceCounter
Add-SPDistributedCacheServiceInstanceOnLocalServer
Add-SPEduClassMember
Add-SPEduUser
Add-SPInfoPathUserAgent
Add-SPPluggableSecurityTrimmer
Add-SPProfileLeader
Add-SPProfileSyncConnection
Add-SPRoutingMachineInfo
Add-SPRoutingMachinePool
Add-SPRoutingRule
Add-SPScaleOutDatabase
Add-SPServerScaleOutDatabase
Add-SPServiceApplicationProxyGroupMember
Add-SPShellAdmin
Add-SPSiteSubscriptionFeaturePackMember
Add-SPSiteSubscriptionProfileConfig
Add-SPSocialAppPermissions
Add-SPSolution
Add-SPThrottlingRule
Add-SPUserLicenseMapping
Add-SPUserSolution
Backup-SPConfigurationDatabase                                                
Backup-SPEnterpriseSearchServiceApplicationIndex                              
Backup-SPFarm                                                                 
Backup-SPSite                                                                 
Clear-SPAppDeniedEndpoints
Clear-SPBusinessDataCatalogEntityNotificationWeb
Clear-SPDistributedCacheItem
Clear-SPLogLevel
Clear-SPMetadataWebServicePartitionData
Clear-SPPerformancePointServiceApplicationTrustedLocation
Clear-SPScaleOutDatabaseDeletedDataSubRange
Clear-SPScaleOutDatabaseLog
Clear-SPScaleOutDatabaseTenantData
Clear-SPSecureStoreCredentialMapping
Clear-SPSecureStoreDefaultProvider
Clear-SPServerScaleOutDatabaseDeletedDataSubRange
Clear-SPServerScaleOutDatabaseLog
Clear-SPServerScaleOutDatabaseTenantData
Clear-SPSiteSubscriptionBusinessDataCatalogConfig
Connect-SPConfigurationDatabase
Convert-SPWebApplication
Copy-LocalActivitiesToWorkflowService
Copy-SPAccessServicesDatabase
Copy-SPBusinessDataCatalogAclToChildren
Copy-SPSite
Disable-SPAppAutoProvision
Disable-SPBusinessDataCatalogEntity
Disable-SPFeature
Disable-SPHealthAnalysisRule
Disable-SPInfoPathFormTemplate
Disable-SPSessionStateService
Disable-SPSingleSignOn
Disable-SPTimerJob
Disable-SPUserLicensing
Disable-SPWebApplicationHttpThrottling
Disconnect-SPConfigurationDatabase
Dismount-SPContentDatabase                                                    
Dismount-SPStateServiceDatabase                                               
Enable-SPAppAutoProvision
Enable-SPBusinessDataCatalogEntity
Enable-SPFeature
Enable-SPHealthAnalysisRule
Enable-SPInfoPathFormTemplate
Enable-SPSessionStateService
Enable-SPTimerJob
Enable-SPUserLicensing
Enable-SPWebApplicationHttpThrottling
Export-SPAppPackage
Export-SPBusinessDataCatalogModel
Export-SPEnterpriseSearchTopology
Export-SPInfoPathAdministrationFiles
Export-SPMetadataWebServicePartitionData
Export-SPPerformancePointContent
Export-SPScaleOutDatabaseTenantData
Export-SPServerScaleOutDatabaseTenantData
Export-SPSiteSubscriptionBusinessDataCatalogConfig
Export-SPSiteSubscriptionSettings
Export-SPWeb
Get-SPAccessServiceApplication
Get-SPAccessServicesApplication
Get-SPAccessServicesDatabase
Get-SPAccessServicesDatabaseServer
Get-SPAccessServicesDatabaseServerGroup
Get-SPAccessServicesDatabaseServerGroupMapping
Get-SPAlternateURL
Get-SPAppAcquisitionSettings
Get-SPAppAutoProvisionConnection
Get-SPAppDeniedEndpoints
Get-SPAppDisableSettings
Get-SPAppDomain
Get-SPAppHostingQuotas
Get-SPAppInstance
Get-SPAppMarketplaceSettings
Get-SPAppPrincipal
Get-SPAppScaleProfile
Get-SPAppSiteSubscriptionName
Get-SPAppStateSyncLastRunTime
Get-SPAppStateUpdateInterval
Get-SPAuthenticationProvider
Get-SPAuthenticationRealm
Get-SPBackupHistory
Get-SPBingMapsBlockInAllLocales
Get-SPBingMapsKey
Get-SPBrowserCustomerExperienceImprovementProgram
Get-SPBusinessDataCatalogEntityNotificationWeb
Get-SPBusinessDataCatalogMetadataObject
Get-SPBusinessDataCatalogThrottleConfig
Get-SPCertificateAuthority
Get-SPClaimProvider
Get-SPClaimProviderManager
Get-SPClaimTypeEncoding
Get-SPContentDatabase
Get-SPContentDeploymentJob
Get-SPContentDeploymentPath
Get-SPCustomLayoutsPage
Get-SPDatabase
Get-SPDataConnectionFile
Get-SPDataConnectionFileDependent
Get-SPDeletedSite
Get-SPDesignerSettings
Get-SPDiagnosticConfig
Get-SPDiagnosticsPerformanceCounter
Get-SPDiagnosticsProvider
Get-SPDistributedCacheClientSetting
Get-SPEduServiceSetting
Get-SPEnterpriseSearchAdministrationComponent
Get-SPEnterpriseSearchComponent
Get-SPEnterpriseSearchContentEnrichmentConfiguration
Get-SPEnterpriseSearchCrawlContentSource
Get-SPEnterpriseSearchCrawlCustomConnector
Get-SPEnterpriseSearchCrawlDatabase
Get-SPEnterpriseSearchCrawlExtension
Get-SPEnterpriseSearchCrawlLogReadPermission
Get-SPEnterpriseSearchCrawlMapping
Get-SPEnterpriseSearchCrawlRule
Get-SPEnterpriseSearchFileFormat
Get-SPEnterpriseSearchHostController
Get-SPEnterpriseSearchLanguageResourcePhrase
Get-SPEnterpriseSearchLinguisticComponentsStatus
Get-SPEnterpriseSearchLinksDatabase
Get-SPEnterpriseSearchMetadataCategory
Get-SPEnterpriseSearchMetadataCrawledProperty
Get-SPEnterpriseSearchMetadataManagedProperty
Get-SPEnterpriseSearchMetadataMapping
Get-SPEnterpriseSearchOwner
Get-SPEnterpriseSearchPropertyRule
Get-SPEnterpriseSearchPropertyRuleCollection
Get-SPEnterpriseSearchQueryAndSiteSettingsService
Get-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance
Get-SPEnterpriseSearchQueryAndSiteSettingsServiceProxy
Get-SPEnterpriseSearchQueryAuthority
Get-SPEnterpriseSearchQueryDemoted
Get-SPEnterpriseSearchQueryKeyword
Get-SPEnterpriseSearchQueryScope
Get-SPEnterpriseSearchQueryScopeRule
Get-SPEnterpriseSearchQuerySpellingCorrection
Get-SPEnterpriseSearchQuerySuggestionCandidates
Get-SPEnterpriseSearchRankingModel
Get-SPEnterpriseSearchResultItemType
Get-SPEnterpriseSearchSecurityTrimmer
Get-SPEnterpriseSearchService
Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchServiceApplicationBackupStore
Get-SPEnterpriseSearchServiceApplicationProxy
Get-SPEnterpriseSearchServiceInstance
Get-SPEnterpriseSearchSiteHitRule
Get-SPEnterpriseSearchStatus
Get-SPEnterpriseSearchTopology
Get-SPEnterpriseSearchVssDataPath
Get-SPExcelBIServer
Get-SPExcelBlockedFileType
Get-SPExcelDataConnectionLibrary
Get-SPExcelDataProvider
Get-SPExcelFileLocation
Get-SPExcelServiceApplication
Get-SPExcelUserDefinedFunction
Get-SPFarm
Get-SPFarmConfig
Get-SPFeature
Get-SPHealthAnalysisRule
Get-SPHelpCollection
Get-SPInfoPathFormsService
Get-SPInfoPathFormTemplate
Get-SPInfoPathUserAgent
Get-SPInfoPathWebServiceProxy
Get-SPInternalAppStateSyncLastRunTime
Get-SPInternalAppStateUpdateInterval
Get-SPIRMSettings
Get-SPLogEvent
Get-SPLogLevel
Get-SPManagedAccount
Get-SPManagedPath
Get-SPMetadataServiceApplication
Get-SPMetadataServiceApplicationProxy
Get-SPMobileMessagingAccount
Get-SPODataConnectionSetting
Get-SPODataConnectionSettingMetadata
Get-SPOfficeStoreAppsDefaultActivation
Get-SPPendingUpgradeActions
Get-SPPerformancePointServiceApplication
Get-SPPerformancePointServiceApplicationTrustedLocation
Get-SPPluggableSecurityTrimmer
Get-SPProcessAccount
Get-SPProduct
Get-SPProfileLeader
Get-SPProfileServiceApplicationSecurity
Get-SPRequestManagementSettings
Get-SPRoutingMachineInfo
Get-SPRoutingMachinePool
Get-SPRoutingRule
Get-SPScaleOutDatabase
Get-SPScaleOutDatabaseDataState
Get-SPScaleOutDatabaseInconsistency
Get-SPScaleOutDatabaseLogEntry
Get-SPSecureStoreApplication
Get-SPSecureStoreSystemAccounts
Get-SPSecurityTokenServiceConfig
Get-SPServer
Get-SPServerScaleOutDatabase
Get-SPServerScaleOutDatabaseDataState
Get-SPServerScaleOutDatabaseInconsistency
Get-SPServerScaleOutDatabaseLogEntry
Get-SPServiceApplication
Get-SPServiceApplicationEndpoint
Get-SPServiceApplicationPool
Get-SPServiceApplicationProxy
Get-SPServiceApplicationProxyGroup
Get-SPServiceApplicationSecurity
Get-SPServiceContext
Get-SPServiceHostConfig
Get-SPServiceInstance
Get-SPSessionStateService
Get-SPShellAdmin
Get-SPSite
Get-SPSiteAdministration
Get-SPSiteSubscription
Get-SPSiteSubscriptionConfig
Get-SPSiteSubscriptionEdiscoveryHub
Get-SPSiteSubscriptionEdiscoverySearchScope
Get-SPSiteSubscriptionFeaturePack
Get-SPSiteSubscriptionIRMConfig
Get-SPSiteSubscriptionMetadataConfig
Get-SPSiteUpgradeSessionInfo
Get-SPSiteURL
Get-SPSolution
Get-SPStateServiceApplication
Get-SPStateServiceApplicationProxy
Get-SPStateServiceDatabase
Get-SPTaxonomySession
Get-SPThrottlingRule
Get-SPTimerJob
Get-SPTopologyServiceApplication
Get-SPTopologyServiceApplicationProxy
Get-SPTrustedIdentityTokenIssuer
Get-SPTrustedRootAuthority
Get-SPTrustedSecurityTokenIssuer
Get-SPTrustedSecurityTokenService
Get-SPTrustedServiceTokenIssuer
Get-SPUpgradeActions
Get-SPUsageApplication
Get-SPUsageDefinition
Get-SPUsageService
Get-SPUser
Get-SPUserLicense
Get-SPUserLicenseMapping
Get-SPUserLicensing
Get-SPUserSettingsProvider
Get-SPUserSettingsProviderManager
Get-SPUserSolution
Get-SPVisioExternalData
Get-SPVisioPerformance
Get-SPVisioSafeDataProvider
Get-SPVisioServiceApplication
Get-SPVisioServiceApplicationProxy
Get-SPWeb
Get-SPWebApplication
Get-SPWebApplicationHttpThrottlingMonitor
Get-SPWebPartPack
Get-SPWebTemplate
Get-SPWOPIBinding
Get-SPWOPISuppressionSetting
Get-SPWOPIZone
Get-SPWorkflowConfig
Get-TranslationThrottlingSettings
Get-WorkflowServiceApplicationProxy
Grant-SPBusinessDataCatalogMetadataObject                                     
Grant-SPObjectSecurity                                                        
Import-SPAppPackage
Import-SPBusinessDataCatalogDotNetAssembly
Import-SPBusinessDataCatalogModel
Import-SPEnterpriseSearchCustomExtractionDictionary
Import-SPEnterpriseSearchPopularQueries
Import-SPEnterpriseSearchThesaurus
Import-SPEnterpriseSearchTopology
Import-SPInfoPathAdministrationFiles
Import-SPMetadataWebServicePartitionData
Import-SPPerformancePointContent
Import-SPScaleOutDatabaseTenantData
Import-SPServerScaleOutDatabaseTenantData
Import-SPSiteSubscriptionBusinessDataCatalogConfig
Import-SPSiteSubscriptionSettings
Import-SPWeb
Initialize-SPResourceSecurity                                                 
Initialize-SPStateServiceDatabase                                             
Install-SPApp                                                                 
Install-SPApplicationContent                                                  
Install-SPDataConnectionFile                                                  
Install-SPEduSites                                                            
Install-SPFeature                                                             
Install-SPHelpCollection                                                      
Install-SPInfoPathFormTemplate                                                
Install-SPService                                                             
Install-SPSolution                                                            
Install-SPUserSolution                                                        
Install-SPWebPartPack                                                         
Merge-SPLogFile                                                               
Mount-SPContentDatabase                                                       
Mount-SPStateServiceDatabase                                                  
Move-SPBlobStorageLocation
Move-SPDeletedSite
Move-SPProfileManagedMetadataProperty
Move-SPSite
Move-SPSocialComments
Move-SPUser
New-SPAccessServiceApplication
New-SPAccessServicesApplication
New-SPAccessServicesApplicationProxy
New-SPAccessServicesDatabaseServer
New-SPAlternateURL
New-SPAppManagementServiceApplication
New-SPAppManagementServiceApplicationProxy
New-SPAuthenticationProvider
New-SPAzureAccessControlServiceApplicationProxy
New-SPBECWebServiceApplicationProxy
New-SPBusinessDataCatalogServiceApplication
New-SPBusinessDataCatalogServiceApplicationProxy
New-SPCentralAdministration
New-SPClaimProvider
New-SPClaimsPrincipal
New-SPClaimTypeEncoding
New-SPClaimTypeMapping
New-SPConfigurationDatabase
New-SPContentDatabase
New-SPContentDeploymentJob
New-SPContentDeploymentPath
New-SPEduClass
New-SPEnterpriseSearchAdminComponent
New-SPEnterpriseSearchAnalyticsProcessingComponent
New-SPEnterpriseSearchContentEnrichmentConfiguration
New-SPEnterpriseSearchContentProcessingComponent
New-SPEnterpriseSearchCrawlComponent
New-SPEnterpriseSearchCrawlContentSource
New-SPEnterpriseSearchCrawlCustomConnector
New-SPEnterpriseSearchCrawlDatabase
New-SPEnterpriseSearchCrawlExtension
New-SPEnterpriseSearchCrawlMapping
New-SPEnterpriseSearchCrawlRule
New-SPEnterpriseSearchFileFormat
New-SPEnterpriseSearchIndexComponent
New-SPEnterpriseSearchLanguageResourcePhrase
New-SPEnterpriseSearchLinksDatabase
New-SPEnterpriseSearchMetadataCategory
New-SPEnterpriseSearchMetadataCrawledProperty
New-SPEnterpriseSearchMetadataManagedProperty
New-SPEnterpriseSearchMetadataMapping
New-SPEnterpriseSearchQueryAuthority
New-SPEnterpriseSearchQueryDemoted
New-SPEnterpriseSearchQueryKeyword
New-SPEnterpriseSearchQueryProcessingComponent
New-SPEnterpriseSearchQueryScope
New-SPEnterpriseSearchQueryScopeRule
New-SPEnterpriseSearchRankingModel
New-SPEnterpriseSearchResultItemType
New-SPEnterpriseSearchSecurityTrimmer
New-SPEnterpriseSearchServiceApplication
New-SPEnterpriseSearchServiceApplicationProxy
New-SPEnterpriseSearchSiteHitRule
New-SPEnterpriseSearchTopology
New-SPExcelBIServer
New-SPExcelBlockedFileType
New-SPExcelDataConnectionLibrary
New-SPExcelDataProvider
New-SPExcelFileLocation
New-SPExcelServiceApplication
New-SPExcelUserDefinedFunction
New-SPLogFile
New-SPManagedAccount
New-SPManagedPath
New-SPMarketplaceWebServiceApplicationProxy
New-SPMetadataServiceApplication
New-SPMetadataServiceApplicationProxy
New-SPODataConnectionSetting
New-SPPerformancePointServiceApplication
New-SPPerformancePointServiceApplicationProxy
New-SPPerformancePointServiceApplicationTrustedLocation
New-SPPowerPointConversionServiceApplication
New-SPPowerPointConversionServiceApplicationProxy
New-SPProfileServiceApplication
New-SPProfileServiceApplicationProxy
New-SPRequestManagementRuleCriteria
New-SPSecureStoreApplication
New-SPSecureStoreApplicationField
New-SPSecureStoreServiceApplication
New-SPSecureStoreServiceApplicationProxy
New-SPSecureStoreTargetApplication
New-SPServiceApplicationPool
New-SPServiceApplicationProxyGroup
New-SPSite
New-SPSiteSubscription
New-SPSiteSubscriptionFeaturePack
New-SPStateServiceApplication
New-SPStateServiceApplicationProxy
New-SPStateServiceDatabase
New-SPSubscriptionSettingsServiceApplication
New-SPSubscriptionSettingsServiceApplicationProxy
New-SPTranslationServiceApplication
New-SPTranslationServiceApplicationProxy
New-SPTrustedIdentityTokenIssuer
New-SPTrustedRootAuthority
New-SPTrustedSecurityTokenIssuer
New-SPTrustedSecurityTokenService
New-SPTrustedServiceTokenIssuer
New-SPUsageApplication
New-SPUsageLogFile
New-SPUser
New-SPUserLicenseMapping
New-SPUserSettingsProvider
New-SPVisioSafeDataProvider
New-SPVisioServiceApplication
New-SPVisioServiceApplicationProxy
New-SPWeb
New-SPWebApplication
New-SPWebApplicationExtension
New-SPWOPIBinding
New-SPWOPISuppressionSetting
New-SPWordConversionServiceApplication
New-SPWorkManagementServiceApplication
New-SPWorkManagementServiceApplicationProxy
New-WorkflowServiceApplicationProxy
Publish-SPServiceApplication                                                  
Receive-SPServiceApplicationConnectionInfo
Register-SPAppPrincipal
Register-SPWorkflowService
Remove-SPAccessServicesDatabaseServer
Remove-SPActivityFeedItems
Remove-SPAlternateURL
Remove-SPAppDeniedEndpoint
Remove-SPAppPrincipalPermission
Remove-SPBusinessDataCatalogModel
Remove-SPClaimProvider
Remove-SPClaimTypeMapping
Remove-SPConfigurationDatabase
Remove-SPContentDatabase
Remove-SPContentDeploymentJob
Remove-SPContentDeploymentPath
Remove-SPDeletedSite
Remove-SPDiagnosticsPerformanceCounter
Remove-SPDistributedCacheServiceInstanceOnLocalServer
Remove-SPEduClassMember
Remove-SPEnterpriseSearchComponent
Remove-SPEnterpriseSearchContentEnrichmentConfiguration
Remove-SPEnterpriseSearchCrawlContentSource
Remove-SPEnterpriseSearchCrawlCustomConnector
Remove-SPEnterpriseSearchCrawlDatabase
Remove-SPEnterpriseSearchCrawlExtension
Remove-SPEnterpriseSearchCrawlLogReadPermission
Remove-SPEnterpriseSearchCrawlMapping
Remove-SPEnterpriseSearchCrawlRule
Remove-SPEnterpriseSearchFileFormat
Remove-SPEnterpriseSearchLanguageResourcePhrase
Remove-SPEnterpriseSearchLinksDatabase
Remove-SPEnterpriseSearchMetadataCategory
Remove-SPEnterpriseSearchMetadataManagedProperty
Remove-SPEnterpriseSearchMetadataMapping
Remove-SPEnterpriseSearchQueryAuthority
Remove-SPEnterpriseSearchQueryDemoted
Remove-SPEnterpriseSearchQueryKeyword
Remove-SPEnterpriseSearchQueryScope
Remove-SPEnterpriseSearchQueryScopeRule
Remove-SPEnterpriseSearchRankingModel
Remove-SPEnterpriseSearchResultItemType
Remove-SPEnterpriseSearchSecurityTrimmer
Remove-SPEnterpriseSearchServiceApplication
Remove-SPEnterpriseSearchServiceApplicationProxy
Remove-SPEnterpriseSearchServiceApplicationSiteSettings
Remove-SPEnterpriseSearchSiteHitRule
Remove-SPEnterpriseSearchTenantConfiguration
Remove-SPEnterpriseSearchTenantSchema
Remove-SPEnterpriseSearchTopology
Remove-SPExcelBIServer
Remove-SPExcelBlockedFileType
Remove-SPExcelDataConnectionLibrary
Remove-SPExcelDataProvider
Remove-SPExcelFileLocation
Remove-SPExcelUserDefinedFunction
Remove-SPInfoPathUserAgent
Remove-SPManagedAccount
Remove-SPManagedPath
Remove-SPODataConnectionSetting
Remove-SPPerformancePointServiceApplication
Remove-SPPerformancePointServiceApplicationProxy
Remove-SPPerformancePointServiceApplicationTrustedLocation
Remove-SPPluggableSecurityTrimmer
Remove-SPProfileLeader
Remove-SPProfileSyncConnection
Remove-SPRoutingMachineInfo
Remove-SPRoutingMachinePool
Remove-SPRoutingRule
Remove-SPScaleOutDatabase
Remove-SPSecureStoreApplication
Remove-SPServerScaleOutDatabase
Remove-SPServiceApplication
Remove-SPServiceApplicationPool
Remove-SPServiceApplicationProxy
Remove-SPServiceApplicationProxyGroup
Remove-SPServiceApplicationProxyGroupMember
Remove-SPShellAdmin
Remove-SPSite
Remove-SPSiteSubscription
Remove-SPSiteSubscriptionBusinessDataCatalogConfig
Remove-SPSiteSubscriptionFeaturePack
Remove-SPSiteSubscriptionFeaturePackMember
Remove-SPSiteSubscriptionMetadataConfig
Remove-SPSiteSubscriptionProfileConfig
Remove-SPSiteSubscriptionSettings
Remove-SPSiteUpgradeSessionInfo
Remove-SPSiteURL
Remove-SPSocialAppPermissions
Remove-SPSocialItemByDate
Remove-SPSolution
Remove-SPSolutionDeploymentLock
Remove-SPStateServiceDatabase
Remove-SPThrottlingRule
Remove-SPTranslationServiceJobHistory
Remove-SPTrustedIdentityTokenIssuer
Remove-SPTrustedRootAuthority
Remove-SPTrustedSecurityTokenIssuer
Remove-SPTrustedSecurityTokenService
Remove-SPTrustedServiceTokenIssuer
Remove-SPUsageApplication
Remove-SPUser
Remove-SPUserLicenseMapping
Remove-SPUserSettingsProvider
Remove-SPUserSolution
Remove-SPVisioSafeDataProvider
Remove-SPWeb
Remove-SPWebApplication
Remove-SPWOPIBinding
Remove-SPWOPISuppressionSetting
Remove-SPWordConversionServiceJobHistory
Rename-SPServer
Repair-SPManagedAccountDeployment                                             
Repair-SPSite                                                                 
Repartition-SPEnterpriseSearchLinksDatabases                                  
Request-SPUpgradeEvaluationSite                                               
Reset-SPAccessServicesDatabasePassword
Restart-SPAppInstanceJobs
Restore-SPDeletedSite
Restore-SPEnterpriseSearchServiceApplication
Restore-SPEnterpriseSearchServiceApplicationIndex
Restore-SPFarm
Restore-SPSite
Resume-SPEnterpriseSearchServiceApplication
Resume-SPStateServiceDatabase
Revoke-SPBusinessDataCatalogMetadataObject                                    
Revoke-SPObjectSecurity                                                       
Set-SPAccessServiceApplication
Set-SPAccessServicesApplication
Set-SPAccessServicesDatabaseServer
Set-SPAccessServicesDatabaseServerGroupMapping
Set-SPAlternateURL
Set-SPAppAcquisitionSettings
Set-SPAppAutoProvisionConnection
Set-SPAppDisableSettings
Set-SPAppDomain
Set-SPAppHostingQuotas
Set-SPAppManagementDeploymentId
Set-SPAppMarketplaceSettings
Set-SPAppPrincipalPermission
Set-SPAppScaleProfile
Set-SPAppSiteSubscriptionName
Set-SPAppStateUpdateInterval
Set-SPAuthenticationRealm
Set-SPBingMapsBlockInAllLocales
Set-SPBingMapsKey
Set-SPBrowserCustomerExperienceImprovementProgram
Set-SPBusinessDataCatalogEntityNotificationWeb
Set-SPBusinessDataCatalogMetadataObject
Set-SPBusinessDataCatalogServiceApplication
Set-SPBusinessDataCatalogThrottleConfig
Set-SPCentralAdministration
Set-SPClaimProvider
Set-SPContentDatabase
Set-SPContentDeploymentJob
Set-SPContentDeploymentPath
Set-SPCustomLayoutsPage
Set-SPDataConnectionFile
Set-SPDesignerSettings
Set-SPDiagnosticConfig
Set-SPDiagnosticsProvider
Set-SPDistributedCacheClientSetting
Set-SPEduServiceSetting
Set-SPEnterpriseSearchAdministrationComponent
Set-SPEnterpriseSearchContentEnrichmentConfiguration
Set-SPEnterpriseSearchCrawlContentSource
Set-SPEnterpriseSearchCrawlDatabase
Set-SPEnterpriseSearchCrawlLogReadPermission
Set-SPEnterpriseSearchCrawlRule
Set-SPEnterpriseSearchLinguisticComponentsStatus
Set-SPEnterpriseSearchLinksDatabase
Set-SPEnterpriseSearchMetadataCategory
Set-SPEnterpriseSearchMetadataCrawledProperty
Set-SPEnterpriseSearchMetadataManagedProperty
Set-SPEnterpriseSearchMetadataMapping
Set-SPEnterpriseSearchPrimaryHostController
Set-SPEnterpriseSearchQueryAuthority
Set-SPEnterpriseSearchQueryKeyword
Set-SPEnterpriseSearchQueryScope
Set-SPEnterpriseSearchQueryScopeRule
Set-SPEnterpriseSearchQuerySpellingCorrection
Set-SPEnterpriseSearchRankingModel
Set-SPEnterpriseSearchResultItemType
Set-SPEnterpriseSearchService
Set-SPEnterpriseSearchServiceApplication
Set-SPEnterpriseSearchServiceApplicationProxy
Set-SPEnterpriseSearchServiceInstance
Set-SPEnterpriseSearchTopology
Set-SPExcelBIServer
Set-SPExcelDataConnectionLibrary
Set-SPExcelDataProvider
Set-SPExcelFileLocation
Set-SPExcelServiceApplication
Set-SPExcelUserDefinedFunction
Set-SPFarmConfig
Set-SPInfoPathFormsService
Set-SPInfoPathFormTemplate
Set-SPInfoPathWebServiceProxy
Set-SPInternalAppStateUpdateInterval
Set-SPIRMSettings
Set-SPLogLevel
Set-SPManagedAccount
Set-SPMetadataServiceApplication
Set-SPMetadataServiceApplicationProxy
Set-SPMobileMessagingAccount
Set-SPODataConnectionSetting
Set-SPODataConnectionSettingMetadata
Set-SPOfficeStoreAppsDefaultActivation
Set-SPPassPhrase
Set-SPPerformancePointSecureDataValues
Set-SPPerformancePointServiceApplication
Set-SPPowerPointConversionServiceApplication
Set-SPProfileServiceApplication
Set-SPProfileServiceApplicationProxy
Set-SPProfileServiceApplicationSecurity
Set-SPRequestManagementSettings
Set-SPRoutingMachineInfo
Set-SPRoutingMachinePool
Set-SPRoutingRule
Set-SPScaleOutDatabaseDataRange
Set-SPScaleOutDatabaseDataSubRange
Set-SPSecureStoreApplication
Set-SPSecureStoreDefaultProvider
Set-SPSecureStoreServiceApplication
Set-SPSecureStoreSystemAccounts
Set-SPSecurityTokenServiceConfig
Set-SPServerScaleOutDatabaseDataRange
Set-SPServerScaleOutDatabaseDataSubRange
Set-SPServiceApplication
Set-SPServiceApplicationEndpoint
Set-SPServiceApplicationPool
Set-SPServiceApplicationSecurity
Set-SPServiceHostConfig
Set-SPSessionStateService
Set-SPSite
Set-SPSiteAdministration
Set-SPSiteSubscriptionConfig
Set-SPSiteSubscriptionEdiscoveryHub
Set-SPSiteSubscriptionIRMConfig
Set-SPSiteSubscriptionMetadataConfig
Set-SPSiteSubscriptionProfileConfig
Set-SPSiteURL
Set-SPStateServiceApplication
Set-SPStateServiceApplicationProxy
Set-SPStateServiceDatabase
Set-SPSubscriptionSettingsServiceApplication
Set-SPThrottlingRule
Set-SPTimerJob
Set-SPTopologyServiceApplication
Set-SPTopologyServiceApplicationProxy
Set-SPTranslationServiceApplication
Set-SPTranslationServiceApplicationProxy
Set-SPTrustedIdentityTokenIssuer
Set-SPTrustedRootAuthority
Set-SPTrustedSecurityTokenIssuer
Set-SPTrustedSecurityTokenService
Set-SPTrustedServiceTokenIssuer
Set-SPUsageApplication
Set-SPUsageDefinition
Set-SPUsageService
Set-SPUser
Set-SPVisioExternalData
Set-SPVisioPerformance
Set-SPVisioSafeDataProvider
Set-SPVisioServiceApplication
Set-SPWeb
Set-SPWebApplication
Set-SPWebApplicationHttpThrottlingMonitor
Set-SPWOPIBinding
Set-SPWOPIZone
Set-SPWordConversionServiceApplication
Set-SPWorkflowConfig
Set-SPWorkManagementServiceApplication
Set-SPWorkManagementServiceApplicationProxy
Set-TranslationThrottlingSettings
Split-SPScaleOutDatabase
Split-SPServerScaleOutDatabase
Start-SPAdminJob
Start-SPAssignment
Start-SPContentDeploymentJob
Start-SPDiagnosticsSession
Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance
Start-SPEnterpriseSearchServiceInstance
Start-SPInfoPathFormTemplate
Start-SPServiceInstance
Start-SPTimerJob
Stop-SPAssignment
Stop-SPDiagnosticsSession
Stop-SPDistributedCacheServiceInstanceGracefullyOnLocalServer
Stop-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance
Stop-SPEnterpriseSearchServiceInstance
Stop-SPInfoPathFormTemplate
Stop-SPServiceInstance
Suspend-SPEnterpriseSearchServiceApplication
Suspend-SPStateServiceDatabase
Test-SPContentDatabase
Test-SPInfoPathFormTemplate
Test-SPSite
Uninstall-SPAppInstance                                                       
Uninstall-SPDataConnectionFile                                                
Uninstall-SPFeature                                                           
Uninstall-SPHelpCollection                                                    
Uninstall-SPInfoPathFormTemplate                                              
Uninstall-SPSolution                                                          
Uninstall-SPUserSolution                                                      
Uninstall-SPWebPartPack                                                       
Unpublish-SPServiceApplication                                                
Update-SPAppCatalogSettings
Update-SPAppInstance
Update-SPFarmEncryptionKey
Update-SPInfoPathAdminFileUrl
Update-SPInfoPathFormTemplate
Update-SPInfoPathUserFileUrl
Update-SPProfilePhotoStore
Update-SPRepopulateMicroblogFeedCache
Update-SPRepopulateMicroblogLMTCache
Update-SPSecureStoreApplicationServerKey
Update-SPSecureStoreCredentialMapping
Update-SPSecureStoreGroupCredentialMapping
Update-SPSecureStoreMasterKey
Update-SPSolution
Update-SPUserSolution
Update-SPWOPIProofKey
Upgrade-SPContentDatabase                                                     
Upgrade-SPEnterpriseSearchServiceApplication                                  
Upgrade-SPEnterpriseSearchServiceApplicationSiteSettings                      
Upgrade-SPFarm                                                                
Upgrade-SPSingleSignOnDatabase                                                
Upgrade-SPSite

How to Identify the Version and Service Packs installed on a SharePoint 2013 Server

In many cases, we may not be bothered about the Version, Service Packs installed on our Server when we do the development. It is obvious that, when we get the requirement, immediately we will start analysis the requirement.

But recently there was a situation that one of our client wants to move on to the new Service Pack which released on this April. In that case, we may also have to analyze the impact of the new Service Pack. Before knowing that, I just wanted to know, what are the things installed on our Dev environment first. Then on top of it, what needs to be installed and what would be the impact after installation.

To answer all these questions, First we need to know what is the version installed on our Farm. Use the following command to get the Version of the product installed using PowerShell script.(Get-SPFarm).Products.

First Run ISE as below :

Run_ISE_as_Administrator

Then after selecting the Commands of “Add.PSSnapin” output of the above command will be something like,Get-SPFarm_Products

By seeing the GUID, we will be able to identify the Product. These GUIDs will not change. On all the environments, and all the machines, the GUIDs will remain same.

Here are all of the product GUIDs:

GUID : 35466B1A-B17B-4DFB-A703-F74E2A1F5F5E Product : Project Server 2013

GUID : BC7BAF08-4D97-462C-8411-341052402E71 Product : Project Server 2013 Preview

GUID : C5D855EE-F32B-4A1C-97A8-F0A28CE02F9C Product : SharePoint Server 2013

GUID : CBF97833-C73A-4BAF-9ED3-D47B3CFF51BE Product : SharePoint Server 2013 Preview

GUID : B7D84C2B-0754-49E4-B7BE-7EE321DCE0A9 Product : SharePoint Server 2013 Enterprise

GUID : 298A586A-E3C1-42F0-AFE0-4BCFDC2E7CD0 Product : SharePoint Server 2013 Enterprise Preview

GUID : D6B57A0D-AE69-4A3E-B031-1F993EE52EDC Product : Microsoft Office Web Apps Server 2013

GUID : 9FF54EBC-8C12-47D7-854F-3865D4BE8118 Product : SharePoint Foundation 2013

And to know about the Service Packs, there is no need of any PowerShell Commands. That we can directly go to the Central Administration and find.

Go to Central Administration.image1

Click on “Upgrade and Migration” on the Quick Links. image2

Click on “Check Product and Patch Installation Status”image3

This will tell us the current Patches Installation. By seeing the Version column we can identify. On the screen shot above shared, there is no SP installed.

Using PowerShell – Make a new site – SharePoint 2010

1. Launch PowerShell for SharePoint Administration

2. Get-help

3. Make a new site using PowerShell

4. Get a list of all the site collections that exist in the farm

Moving sites and subsites in SharePoint 2007 Portals

Moving sites and subsites within SharePoint 2007

There is a really cool way that you can move a sharepoint site up or down in your hierarchy.

Let’s say you created a sharepoint site your root level (ie http://intranet/website) and six months later you decide it really should be contained under your IT subsite (http://intranet/it/website). You can use the program STSADM to move a site from one location to another.

Steps to move a WSS subsite.

1. Create the new target URL (I created a blank site @ http://intranet/it/website)
2. Fire up the command line
3. CD \”Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN”
4. Export the old URL using the following Command:

stsadm -o export -url http://intranet/website -filename c:\test\backup.cmp

5. Import the file back into Sharepoint using the following command:

stsadm -o import -url http://intranet/it/website -filename c:\test\backup.cmp

That’s it! You have moved your website. You need to check user permissions especially if you are moving to a new subsite!

OTHER COOL STUFF: There is an option to -includeusersecurity while you do the export. You can also choose whether or not to pull all the revision history over with the doc libs or not…

For a full view of options for Export / Import, run the following commands to see all your options:

stsadm -o export

stsadm -o import

Ref : Rob Ashcroft’s

PowerShell : Searching for Controls Without a Fully-qualified Type Name

Today’s post is a quick tip. I’m working with some older code where a lot of the ascx files don’t have a fully qualified type name in the Inherits attribute of the Control directive. I wanted to find them without having to open dozens of files and manually search for offenders:

function Find-Controls-Without-PublicKeyToken([string]$directory) {
    $files = dir $directory -Recurse -Filter *.ascx
    $files | where { No-Publickeytoken($_) } | foreach { $_.FullName }
}

This is a pretty straightforward function, it finds all the user control files in a given directory or any of its subdirectories, filters the list using No-Publickeytoken and prints out the paths to the offending files. And here’s No-Publickeytoken:

function No-Publickeytoken($file) {
    $firstLine = Get-Content $_.FullName -TotalCount 1
    ($firstLine -match “Inherits”) -and `
        (-not ($firstLine -match “PublicKeyToken”))
}

This function gets the first line of the file passed to it and then returns true if the line contains the word “Inherits” but doesn’t contain the word “PublicKeyToken”.

Hope this is useful to someone, it certainly saved me a bunch of repetitive manual work.

Ref : SharePoint Blues

How to run SP2010 Management Shell Script from a BAT file?

The steps to achieve this:

1.       Take the PowerShell script.

2.       Remove all the comments ( everything that starts with #).

3.       Put ; at the end of each line.

4.       Remove all line breaks.

5.       Supply the string you get as the -command parameter for powershell.exe

Reference:

PowerShell script in a .bat file

SharePoint 2010 prompts to save PDF documents when opening (Solution)

I have run into this issue myself. In my case I had the following scenario:

  • Initially, my web application had ‘Browser File Handling’ set to ‘Strict’ (which is the default when creating a web application)
  • Created a site collection, then a custom document library, and saved it as a template
  • Created a new document library using the template
  • Changed the web application ‘Browser File Handling’ to ‘Permissive’
  • Found that I still was prompted to save PDF files before opening in the document libraries created with my template. Document libraries created with the out-of-the-box templates worked as expected.

I am sure there are more scenarios where this issue would surface, perhaps saving a web as a template before changing ‘Browser File Handling’. Although I should do more testing for a complete list of scenarios, I needed to find out what was the cause. So I investigated.

Each Document Library in SharePoint 2010 actually has a property titled BrowserFileHandling that is set based on the BrowserFileHandling selection at the Web Application level. In the scenario I described above, I have found that the inheritance of this property does not always behave as you would expect.  Using PowerShell (you could also use the object model) you can take a look at the BrowserFileHandling property at the Document Library level as this is not exposed in the UI.

Here is some PowerShell to help and please note this is used in the SharePoint 2010 Management Shell

#Get Web

$web = Get-SPWeb “http://yourspweburl”

#Get Document Library

$docLib = $web.lists[“Your Document Library Title”]

#View all properties/methods of the Document Library and you’ll see that BrowserFileHandling is a property

$docLib | Get-Member

#See the current BrowserFileHandling setting for the Document Library

$docLib.BrowserFileHandling

#If you need to change it from Strict to Permissive

$docLib.BrowserFileHandling = “Permissive”

$docLib.Update()

Even if the template scenario that I describe isn’t your scenario you can certainly use the above PowerShell code to inspect, and if necessary, change the BrowserFileHandling property in a Document Library that is presenting the problem you describe.

Reference : Resources and Tools for IT Professionals | TechNet