Tag Archives: powershell-command

maximum-number-of-site-collections-1920x1080

maximum number of site collections per content database

Set maximum number of site collections per content database

For Particular Requirement, client want to dedicate a database for a single site collection. When we create a site collection from central admin, site is placed automatically in any available content database. To prevent any other sites to be created on the particular content database, We can set maximum number of site collections on particular content database. Follow steps below :
  • Central Administration -> Application Management -> Management Content databases
  • Select our target web application in which the particular content database is attached
  • Pick the target database from the list
  • Now, in the “Manage Content Database Settings” page we can set the maximum number of sites for the content database.
Advertisements
Advertisements
maximum number of site collections
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Variables for processing
$WebAppURL ="https://sharepointtechnicalsupport.com"
$MaxSiteCount=1
$WarningSiteCount = 0

#Get all content databases of the web application
$ContentDBColl = Get-SPContentDatabase -webapplication $WebAppURL

#Iterate through each database in the web application
foreach($Database in $ContentDBColl)
{
#Check the current No. of sites
if($MaxSiteCount -ge $Database.CurrentSiteCount)
{
#Set Maximum Sites, warning level Counts
Set-SPContentDatabase -Identity $Database.Name -MaxSiteCount $MaxSiteCount -WarningSiteCount $WarningSiteCount
Write-host "Max Sites Settings updated for the database:" $Database.name -ForegroundColor Green
}
else
{
write-host "MaxSiteCount must be > = current site count! No changes made in $($Database.Name)" -ForegroundColor Red
}
}
Advertisements
Advertisements
Advertisements
Basic powershell cmdlet sharepoint 1920x1080

Basic powershell cmdlet sharepoint

Advertisements

Advertisements

Basic powershell cmdlet sharepoint

Below are the very basic powershell cmdlet for sharepoint which would be very helpful.

Get-Command -Noun SP*
Get-Help Get-SPSite
Get-Help Get-SPSite -Examples
PS C:\Users\de.prasad.adm> Get-Command -Noun SPSite

CommandType Name ModuleName


Backup-SPSite Microsoft.SharePoint.PowerShell
Copy-SPSite Microsoft.SharePoint.PowerShell
Get-SPSite Microsoft.SharePoint.PowerShell
Move-SPSite Microsoft.SharePoint.PowerShell
New-SPSite Microsoft.SharePoint.PowerShell
Remove-SPSite Microsoft.SharePoint.PowerShell
Repair-SPSite Microsoft.SharePoint.PowerShell
Restore-SPSite Microsoft.SharePoint.PowerShell
Set-SPSite Microsoft.SharePoint.PowerShell
Test-SPSite Microsoft.SharePoint.PowerShell
Upgrade-SPSite Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPWeb

CommandType Name ModuleName


Export-SPWeb Microsoft.SharePoint.PowerShell
Get-SPWeb Microsoft.SharePoint.PowerShell
Import-SPWeb Microsoft.SharePoint.PowerShell
New-SPWeb Microsoft.SharePoint.PowerShell
Remove-SPWeb Microsoft.SharePoint.PowerShell
Set-SPWeb Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPWebApplication

CommandType Name ModuleName


Convert-SPWebApplication Microsoft.SharePoint.PowerShell
Get-SPWebApplication Microsoft.SharePoint.PowerShell
New-SPWebApplication Microsoft.SharePoint.PowerShell
Remove-SPWebApplication Microsoft.SharePoint.PowerShell
Set-SPWebApplication Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPServiceApplication

CommandType Name ModuleName


Get-SPServiceApplication Microsoft.SharePoint.PowerShell
Publish-SPServiceApplication Microsoft.SharePoint.PowerShell
Remove-SPServiceApplication Microsoft.SharePoint.PowerShell
Set-SPServiceApplication Microsoft.SharePoint.PowerShell
Unpublish-SPServiceApplication Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPServiceApplicationPool

CommandType Name ModuleName


Get-SPServiceApplicationPool Microsoft.SharePoint.PowerShell
Cmdlet New-SPServiceApplicationPool Microsoft.SharePoint.PowerShell
Cmdlet Remove-SPServiceApplicationPool Microsoft.SharePoint.PowerShell
Cmdlet Set-SPServiceApplicationPool Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPContentDatabase

CommandType Name ModuleName


Cmdlet Dismount-SPContentDatabase Microsoft.SharePoint.PowerShell
Get-SPContentDatabase Microsoft.SharePoint.PowerShell
Cmdlet Mount-SPContentDatabase Microsoft.SharePoint.PowerShell
Cmdlet New-SPContentDatabase Microsoft.SharePoint.PowerShell
Cmdlet Remove-SPContentDatabase Microsoft.SharePoint.PowerShell
Cmdlet Set-SPContentDatabase Microsoft.SharePoint.PowerShell
Cmdlet Test-SPContentDatabase Microsoft.SharePoint.PowerShell
Cmdlet Upgrade-SPContentDatabase Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPDatabase

CommandType Name ModuleName


Get-SPDatabase Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPManagedAccount

CommandType Name ModuleName


Get-SPManagedAccount Microsoft.SharePoint.PowerShell
New-SPManagedAccount Microsoft.SharePoint.PowerShell
Remove-SPManagedAccount Microsoft.SharePoint.PowerShell
Set-SPManagedAccount Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun STimerJob
PS C:\Users\de.prasad.adm> Get-Command -Noun SPTimerJob

CommandType Name ModuleName


Disable-SPTimerJob Microsoft.SharePoint.PowerShell
Enable-SPTimerJob Microsoft.SharePoint.PowerShell
Get-SPTimerJob Microsoft.SharePoint.PowerShell
Set-SPTimerJob Microsoft.SharePoint.PowerShell
Start-SPTimerJob Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun SPUser

CommandType Name ModuleName


Get-SPUser Microsoft.SharePoint.PowerShell
Move-SPUser Microsoft.SharePoint.PowerShell
New-SPUser Microsoft.SharePoint.PowerShell
Remove-SPUser Microsoft.SharePoint.PowerShell
Set-SPUser Microsoft.SharePoint.PowerShell
PS C:\Users\de.prasad.adm> Get-Command -Noun WebApplication

CommandType Name ModuleName


ConvertTo-WebApplication WebAdministration
Get-WebApplication WebAdministration
New-WebApplication WebAdministration
Remove-WebApplication WebAdministration
PS C:\Users\de.prasad.adm> Get-Command -Noun SPProcessAccount

CommandType Name ModuleName


Get-SPProcessAccount Microsoft.SharePoint.PowerShell

PS C:\Users\de.prasad.adm> Get-Command -Verb Get

Get-PfxCertificate Microsoft.PowerShell.Security
Get-PfxData PKI
Get-Process Microsoft.PowerShell.Management
Get-PSBreakpoint Microsoft.PowerShell.Utility
Get-PSCallStack Microsoft.PowerShell.Utility
Get-PSDrive Microsoft.PowerShell.Management
Get-PSProvider Microsoft.PowerShell.Management
Get-PSSession Microsoft.PowerShell.Core
Get-PSSessionConfiguration Microsoft.PowerShell.Core
Get-PSSnapin Microsoft.PowerShell.Core
Get-Random Microsoft.PowerShell.Utility
Get-ScheduledJob PSScheduledJob
Get-ScheduledJobOption PSScheduledJob
Get-SecureBootPolicy SecureBoot
Get-SecureBootUEFI SecureBoot
Get-Service Microsoft.PowerShell.Management
Get-SPAccessServiceApplication Microsoft.SharePoint.PowerShell
Get-SPAccessServicesApplication Microsoft.SharePoint.PowerShell
Get-SPAccessServicesDatabase Microsoft.SharePoint.PowerShell
Get-SPAccessServicesDatabaseServer Microsoft.SharePoint.PowerShell
Get-SPAccessServicesDatabaseServerGroup Microsoft.SharePoint.PowerShell
Get-SPAccessServicesDatabaseServerGroupMapping Microsoft.SharePoint.PowerShell
Get-SPAlternateURL Microsoft.SharePoint.PowerShell
Get-SPAppAcquisitionConfiguration Microsoft.SharePoint.PowerShell
Get-SPAppAutoProvisionConnection Microsoft.SharePoint.PowerShell
Get-SPAppDeniedEndpointList Microsoft.SharePoint.PowerShell
Get-SPAppDisablingConfiguration Microsoft.SharePoint.PowerShell
Get-SPAppDomain Microsoft.SharePoint.PowerShell
Get-SPAppHostingQuotaConfiguration Microsoft.SharePoint.PowerShell
Get-SPAppInstance Microsoft.SharePoint.PowerShell
Get-SPAppPrincipal Microsoft.SharePoint.PowerShell
Get-SPAppScaleProfile Microsoft.SharePoint.PowerShell
Get-SPAppSiteSubscriptionName Microsoft.SharePoint.PowerShell
Get-SPAppStateSyncLastRunTime Microsoft.SharePoint.PowerShell
Get-SPAppStateUpdateInterval Microsoft.SharePoint.PowerShell
Get-SPAppStoreConfiguration Microsoft.SharePoint.PowerShell
Get-SPAuthenticationProvider Microsoft.SharePoint.PowerShell
Get-SPAuthenticationRealm Microsoft.SharePoint.PowerShell
Get-SPBackupHistory Microsoft.SharePoint.PowerShell
Get-SPBingMapsBlock Microsoft.SharePoint.PowerShell
Get-SPBingMapsKey Microsoft.SharePoint.PowerShell
Get-SPBrowserCustomerExperienceImprovementProgram Microsoft.SharePoint.PowerShell
Get-SPBusinessDataCatalogEntityNotificationWeb Microsoft.SharePoint.PowerShell
Get-SPBusinessDataCatalogMetadataObject Microsoft.SharePoint.PowerShell
Get-SPBusinessDataCatalogThrottleConfig Microsoft.SharePoint.PowerShell
Get-SPCertificateAuthority Microsoft.SharePoint.PowerShell
Get-SPClaimProvider Microsoft.SharePoint.PowerShell
Get-SPClaimProviderManager Microsoft.SharePoint.PowerShell
Get-SPClaimTypeEncoding Microsoft.SharePoint.PowerShell
Get-SPContentDatabase Microsoft.SharePoint.PowerShell
Get-SPContentDeploymentJob Microsoft.SharePoint.PowerShell
Get-SPContentDeploymentPath Microsoft.SharePoint.PowerShell
Get-SPCustomLayoutsPage Microsoft.SharePoint.PowerShell
Get-SPDatabase Microsoft.SharePoint.PowerShell
Get-SPDataConnectionFile Microsoft.SharePoint.PowerShell
Get-SPDataConnectionFileDependent Microsoft.SharePoint.PowerShell
Get-SPDeletedSite Microsoft.SharePoint.PowerShell
Get-SPDesignerSettings Microsoft.SharePoint.PowerShell
Get-SPDiagnosticConfig Microsoft.SharePoint.PowerShell
Get-SPDiagnosticsPerformanceCounter Microsoft.SharePoint.PowerShell
Get-SPDiagnosticsProvider Microsoft.SharePoint.PowerShell
Get-SPDistributedCacheClientSetting Microsoft.SharePoint.PowerShell
Get-SPEduServiceSetting Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchAdministrationComponent Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchComponent Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchContentEnrichmentConfigur... Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlContentSource Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlCustomConnector Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlDatabase Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlExtension Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlLogReadPermission Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlMapping Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchCrawlRule Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchFileFormat Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchHostController Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchLanguageResourcePhrase Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchLinguisticComponentsStatus Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchLinksDatabase Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchMetadataCategory Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchMetadataCrawledProperty Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchMetadataManagedProperty Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchMetadataMapping Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchOwner Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchPropertyRule Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchPropertyRuleCollection Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryAndSiteSettingsService Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryAndSiteSettingsServi... Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryAndSiteSettingsServi... Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryAuthority Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryDemoted Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryKeyword Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryScope Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQueryScopeRule Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQuerySpellingCorrection Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchQuerySuggestionCandidates Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchRankingModel Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchResultItemType Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchResultSource Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchSecurityTrimmer Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchService Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchServiceApplication Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchServiceApplicationBackupS... Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchServiceInstance Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchSiteHitRule Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchStatus Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchTopology Microsoft.SharePoint.PowerShell
Get-SPEnterpriseSearchVssDataPath Microsoft.SharePoint.PowerShell
Get-SPExcelBIServer Microsoft.SharePoint.PowerShell
Get-SPExcelBlockedFileType Microsoft.SharePoint.PowerShell
Get-SPExcelDataConnectionLibrary Microsoft.SharePoint.PowerShell
Get-SPExcelDataProvider Microsoft.SharePoint.PowerShell
Get-SPExcelFileLocation Microsoft.SharePoint.PowerShell
Get-SPExcelServiceApplication Microsoft.SharePoint.PowerShell
Get-SPExcelUserDefinedFunction Microsoft.SharePoint.PowerShell
Get-SPFarm Microsoft.SharePoint.PowerShell
Get-SPFarmConfig Microsoft.SharePoint.PowerShell
Get-SPFeature Microsoft.SharePoint.PowerShell
Get-SPHealthAnalysisRule Microsoft.SharePoint.PowerShell
Get-SPHelpCollection Microsoft.SharePoint.PowerShell
Get-SPInfoPathFormsService Microsoft.SharePoint.PowerShell
Get-SPInfoPathFormTemplate Microsoft.SharePoint.PowerShell
Get-SPInfoPathUserAgent Microsoft.SharePoint.PowerShell
Get-SPInfoPathWebServiceProxy Microsoft.SharePoint.PowerShell
Get-SPInternalAppStateSyncLastRunTime Microsoft.SharePoint.PowerShell
Get-SPInternalAppStateUpdateInterval Microsoft.SharePoint.PowerShell
Get-SPIRMSettings Microsoft.SharePoint.PowerShell
Get-SPLogEvent Microsoft.SharePoint.PowerShell
Get-SPLogLevel Microsoft.SharePoint.PowerShell
Get-SPManagedAccount Microsoft.SharePoint.PowerShell
Get-SPManagedPath Microsoft.SharePoint.PowerShell
Get-SPMetadataServiceApplication Microsoft.SharePoint.PowerShell
Get-SPMetadataServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPMobileMessagingAccount Microsoft.SharePoint.PowerShell
Get-SPODataConnectionSetting Microsoft.SharePoint.PowerShell
Get-SPODataConnectionSettingMetadata Microsoft.SharePoint.PowerShell
Get-SPOfficeStoreAppsDefaultActivation Microsoft.SharePoint.PowerShell
Get-SPPendingUpgradeActions Microsoft.SharePoint.PowerShell
Get-SPPerformancePointServiceApplication Microsoft.SharePoint.PowerShell
Get-SPPerformancePointServiceApplicationTrusted... Microsoft.SharePoint.PowerShell
Get-SPPluggableSecurityTrimmer Microsoft.SharePoint.PowerShell
Get-SPProcessAccount Microsoft.SharePoint.PowerShell
Get-SPProduct Microsoft.SharePoint.PowerShell
Get-SPProfileLeader Microsoft.SharePoint.PowerShell
Get-SPProfileServiceApplicationSecurity Microsoft.SharePoint.PowerShell
Get-SPProjectDatabaseQuota Microsoft.SharePoint.PowerShell
Get-SPProjectDatabaseState Microsoft.SharePoint.PowerShell
Get-SPProjectEnterpriseProjectTaskSync Microsoft.SharePoint.PowerShell
Get-SPProjectLogLevelManager Microsoft.SharePoint.PowerShell
Get-SPProjectOdataConfiguration Microsoft.SharePoint.PowerShell
Get-SPProjectPCSSettings Microsoft.SharePoint.PowerShell
Get-SPProjectPermissionMode Microsoft.SharePoint.PowerShell
Get-SPProjectQueueSettings Microsoft.SharePoint.PowerShell
Get-SPProjectWebInstance Microsoft.SharePoint.PowerShell
Get-SPRequestManagementSettings Microsoft.SharePoint.PowerShell
Get-SPRoutingMachineInfo Microsoft.SharePoint.PowerShell
Get-SPRoutingMachinePool Microsoft.SharePoint.PowerShell
Get-SPRoutingRule Microsoft.SharePoint.PowerShell
Get-SPRSDatabase Microsoft.SharePoint.PowerShell
Get-SPRSDatabaseCreationScript Microsoft.SharePoint.PowerShell
Get-SPRSDatabaseRightsScript Microsoft.SharePoint.PowerShell
Get-SPRSDatabaseUpgradeScript Microsoft.SharePoint.PowerShell
Get-SPRSExtension Microsoft.SharePoint.PowerShell
Get-SPRSProxyUrl Microsoft.SharePoint.PowerShell
Get-SPRSServiceApplication Microsoft.SharePoint.PowerShell
Get-SPRSServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPRSServiceApplicationServers Microsoft.SharePoint.PowerShell
Get-SPRSSite Microsoft.SharePoint.PowerShell
Get-SPScaleOutDatabase Microsoft.SharePoint.PowerShell
Get-SPScaleOutDatabaseDataState Microsoft.SharePoint.PowerShell
Get-SPScaleOutDatabaseInconsistency Microsoft.SharePoint.PowerShell
Get-SPScaleOutDatabaseLogEntry Microsoft.SharePoint.PowerShell
Get-SPSecureStoreApplication Microsoft.SharePoint.PowerShell
Get-SPSecureStoreSystemAccount Microsoft.SharePoint.PowerShell
Get-SPSecurityTokenServiceConfig Microsoft.SharePoint.PowerShell
Get-SPServer Microsoft.SharePoint.PowerShell
Get-SPServerScaleOutDatabase Microsoft.SharePoint.PowerShell
Get-SPServerScaleOutDatabaseDataState Microsoft.SharePoint.PowerShell
Get-SPServerScaleOutDatabaseInconsistency Microsoft.SharePoint.PowerShell
Get-SPServerScaleOutDatabaseLogEntry Microsoft.SharePoint.PowerShell
Get-SPServiceApplication Microsoft.SharePoint.PowerShell
Get-SPServiceApplicationEndpoint Microsoft.SharePoint.PowerShell
Get-SPServiceApplicationPool Microsoft.SharePoint.PowerShell
Get-SPServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPServiceApplicationProxyGroup Microsoft.SharePoint.PowerShell
Get-SPServiceApplicationSecurity Microsoft.SharePoint.PowerShell
Get-SPServiceContext Microsoft.SharePoint.PowerShell
Get-SPServiceHostConfig Microsoft.SharePoint.PowerShell
Get-SPServiceInstance Microsoft.SharePoint.PowerShell
Get-SPSessionStateService Microsoft.SharePoint.PowerShell
Get-SPShellAdmin Microsoft.SharePoint.PowerShell
Get-SPSite Microsoft.SharePoint.PowerShell
Get-SPSiteAdministration Microsoft.SharePoint.PowerShell
Get-SPSiteSubscription Microsoft.SharePoint.PowerShell
Get-SPSiteSubscriptionConfig Microsoft.SharePoint.PowerShell
Get-SPSiteSubscriptionEdiscoveryHub Microsoft.SharePoint.PowerShell
Get-SPSiteSubscriptionEdiscoverySearchScope Microsoft.SharePoint.PowerShell
Get-SPSiteSubscriptionFeaturePack Microsoft.SharePoint.PowerShell
Get-SPSiteSubscriptionIRMConfig Microsoft.SharePoint.PowerShell
Get-SPSiteSubscriptionMetadataConfig Microsoft.SharePoint.PowerShell
Get-SPSiteUpgradeSessionInfo Microsoft.SharePoint.PowerShell
Get-SPSiteURL Microsoft.SharePoint.PowerShell
Get-SPSolution Microsoft.SharePoint.PowerShell
Get-SPStateServiceApplication Microsoft.SharePoint.PowerShell
Get-SPStateServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPStateServiceDatabase Microsoft.SharePoint.PowerShell
Get-SPTaxonomySession Microsoft.SharePoint.PowerShell
Get-SPThrottlingRule Microsoft.SharePoint.PowerShell
Get-SPTimerJob Microsoft.SharePoint.PowerShell
Get-SPTopologyServiceApplication Microsoft.SharePoint.PowerShell
Get-SPTopologyServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPTranslationThrottlingSetting Microsoft.SharePoint.PowerShell
Get-SPTrustedIdentityTokenIssuer Microsoft.SharePoint.PowerShell
Get-SPTrustedRootAuthority Microsoft.SharePoint.PowerShell
Get-SPTrustedSecurityTokenIssuer Microsoft.SharePoint.PowerShell
Get-SPTrustedServiceTokenIssuer Microsoft.SharePoint.PowerShell
Get-SPUpgradeActions Microsoft.SharePoint.PowerShell
Get-SPUsageApplication Microsoft.SharePoint.PowerShell
Get-SPUsageDefinition Microsoft.SharePoint.PowerShell
Get-SPUsageService Microsoft.SharePoint.PowerShell
Get-SPUser Microsoft.SharePoint.PowerShell
Get-SPUserLicense Microsoft.SharePoint.PowerShell
Get-SPUserLicenseMapping Microsoft.SharePoint.PowerShell
Get-SPUserLicensing Microsoft.SharePoint.PowerShell
Get-SPUserSettingsProvider Microsoft.SharePoint.PowerShell
Get-SPUserSettingsProviderManager Microsoft.SharePoint.PowerShell
Get-SPUserSolution Microsoft.SharePoint.PowerShell
Get-SPVisioExternalData Microsoft.SharePoint.PowerShell
Get-SPVisioPerformance Microsoft.SharePoint.PowerShell
Get-SPVisioSafeDataProvider Microsoft.SharePoint.PowerShell
Get-SPVisioServiceApplication Microsoft.SharePoint.PowerShell
Get-SPVisioServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-SPWeb Microsoft.SharePoint.PowerShell
Get-SPWebApplication Microsoft.SharePoint.PowerShell
Get-SPWebApplicationAppDomain Microsoft.SharePoint.PowerShell
Get-SPWebApplicationHttpThrottlingMonitor Microsoft.SharePoint.PowerShell
Get-SPWebPartPack Microsoft.SharePoint.PowerShell
Get-SPWebTemplate Microsoft.SharePoint.PowerShell
Get-SPWOPIBinding Microsoft.SharePoint.PowerShell
Get-SPWOPISuppressionSetting Microsoft.SharePoint.PowerShell
Get-SPWOPIZone Microsoft.SharePoint.PowerShell
Get-SPWorkflowConfig Microsoft.SharePoint.PowerShell
Get-SPWorkflowServiceApplicationProxy Microsoft.SharePoint.PowerShell
Get-Tpm TrustedPlatformModule
Get-TpmEndorsementKeyInfo TrustedPlatformModule
Get-TpmSupportedFeature TrustedPlatformModule
Get-TraceSource Microsoft.PowerShell.Utility
Get-Transaction Microsoft.PowerShell.Management
Get-TroubleshootingPack TroubleshootingPack
Get-TypeData Microsoft.PowerShell.Utility
Get-UICulture Microsoft.PowerShell.Utility
Get-Unique Microsoft.PowerShell.Utility
Get-Variable Microsoft.PowerShell.Utility
Get-WebAppDomain WebAdministration
Get-WebApplication WebAdministration
Get-WebApplicationMonitoringStatus Microsoft.MonitoringAgent.Pow...
Get-WebAppPoolState WebAdministration
Get-WebBinding WebAdministration
Get-WebCentralCertProvider WebAdministration
Get-WebConfigFile WebAdministration
Get-WebConfiguration WebAdministration
Get-WebConfigurationBackup WebAdministration
Get-WebConfigurationLocation WebAdministration
Get-WebConfigurationLock WebAdministration
Get-WebConfigurationProperty WebAdministration
Get-WebFilePath WebAdministration
Get-WebGlobalModule WebAdministration
Get-WebHandler WebAdministration
Get-WebItemState WebAdministration
Get-WebManagedModule WebAdministration
Get-WebRequest WebAdministration
Get-Website WebAdministration
Get-WebsiteState WebAdministration
Get-WebURL WebAdministration
Get-WebVirtualDirectory WebAdministration
Get-WheaMemoryPolicy Whea
Get-WIMBootEntry Dism
Get-WinAcceptLanguageFromLanguageListOptOut International
Get-WinCultureFromLanguageListOptOut International
Get-WinDefaultInputMethodOverride International
Get-WindowsDriver Dism
Get-WindowsEdition Dism
Get-WindowsErrorReporting WindowsErrorReporting
Get-WindowsImage Dism
Get-WindowsImageContent Dism
Get-WindowsOptionalFeature Dism
Get-WindowsPackage Dism
Get-WindowsSearchSetting WindowsSearch
Get-WinEvent Microsoft.PowerShell.Diagnostics
Get-WinHomeLocation International
Get-WinLanguageBarOption International
Get-WinSystemLocale International
Get-WinUILanguageOverride International
Get-WinUserLanguageList International
Get-WmiObject Microsoft.PowerShell.Management
Get-WSManCredSSP Microsoft.WSMan.Management
Get-WSManInstance Microsoft.WSMan.Management

Advertisements

Advertisements

SharePoint 2016 Help Collection

In this article, we will discuss ,how to use PowerShell cmdlets for managing Help Collections SharePoint.

SharePoint help collection is not configured with SharePoint Configuration, This needs to manually configured.SharePoint Help Files(.Cab) installed on the hive folder with SharePoint Installation but not configured by default. In order to configure it we have to run the PowerShell commands.

when users click on the Help button  on their site collection, they get the following error

help

” Unfortunately, Help Seems to be broken,There aren’t any help collections in the current language for the site you’re using.”

unfortunately-help-seems-to-be-broken

Even if go to Site settings > Site administration > Help Settings will get this

home-error

Clearly Help collection is broken and now it is SharePoint Admins responsibility to fix the broken Help Collection.

S0lution :

In order to fix the broken help collection, following activities needs to be done.

Check the CAB files exist
Get the Current Help File Status
Install the Help File(s)
Testing

Check Help Files :

Logon the SharePoint Server and browse to the hive folder.

Go to “C:\program Files\Common Files\microsoft shared\web server extensions\16\HCCab

In this folder, make sure you see cab files for 14 & 15.

cab-file

If you have multiple language packs then check each language folder i.e English is 1033

  • Log on the server with farm admin account
  • Open PowerShell windows (Run as Administrator)
  • Run the Get-sphelpcollection command

get-sphelp

you can see nothing return even command completed successfully

Install Help files :

install all the available help,run the command with all options

  • Log on the server with farm admin account
  • Open PowerShell (Run as Administrator) and run Install-SPHelpCollection – All

install-sphelp

This command will install the help files available in the hive folder.
Wait for 5 minutes to completely install it, if you have multiple language packs install then even wait little more.
Now run Get-SpHelpCollection and you will get something like this.

get-sphelp2

Test it at both locations via site settings as well as from the browsing the Site collection.

Go to Site collection > Site settings > help Settings and you will see this option

home

Now if you click on the “?” (help button) on the top suite bar, you will get this pop up

central-admin-help

Uninstall :

As we noticed, we have 2010 help files also installed, we have to uninstall one by one.

  • Log on the server with farm admin account
  • Open PowerShell ( Run as administrator) and run this command
  • Uninstall-SpHelpCollection –Name “OSSEndUser.1033.12”

uninstall-help

Conclusion :

In this session we learned how to fix the broken Help Collection.

Keep reading and learning.

add server to farm powershell

Add server to existing farm using powershell sharepoint2013

I am building a new 3-tier farm.  I have already configured the application and database servers and am now ready to add another which will be used as the web front end.

I have already installed the pre-requisites and binaries on the web front end server, so just need to run a few PowerShell commands to add it to the farm…

  1. Open the SharePoint Management Shell
  2. Run the following command (entering the name of your own database server and configuration database name):

Connect-SPConfigurationDatabase -DatabaseServer “<DatabaseServer>” -DatabaseName “<DatabaseName>”

  1. Enter the passphrase when prompted
  • Run the following commands:

    • Install-SPHelpCollection -All
    • Initialize-SPResourceSecurity
    • Install-SPService
    • Install-SPFeature -AllExistingFeatures
    • Install-SPApplicationContent

    add server to farm powershell

    add server to farm powershell

    You can run the following PowerShell command to list the servers in the far:

    Get-SPFarm | select Servers

    Or in Central Administration navigate to System Settings -> Manage Servers in This Farm

    add server to farm powershell

    add server to farm powershell