-
Clear SharePoint 2013 Config Cache
SharePoint 2013 Config Cache fix mostly unstable service or applications, try with cache clear script as troubleshoot them in farm level. Here the scripts makes perfect with dynamic values of GUI ID and other parameters. Standalone farm clean can be done manually but if its multi-tier farm would time conservation so better do with powerful…
-
Verifying SMTP SharePoint Outbound mail settings
Once we configured the SharePoint outbound mail server then our responsible to test the setup. Here the small powershell snippet will do! ### The script will return True or False $toemail = “sathiya@sathiya.io” $subject = “Test – SharePoint Outbound mail” $body = “This mail for testing purpose…! Please ignore your action!” $site = New-Object Microsoft.SharePoint.SPSite…
-
Create claims-based web application from SharePoint PowerShell
Creating claims-based web application is more flexible with SharePoint PowerShell script than CA. Here, the snippet for http and ssl site. Add-PSSnapin Microsoft.SharePoint.Powershell $ap = New-SPAuthenticationProvider New-SPWebApplication -Name <Name> -ApplicationPool <ApplicationPool> -ApplicationPoolAccount <ApplicationPoolAccount> -URL <URL> -Port <Port> -AuthenticationProvider $ap # <Name> is the name of the new web application that uses claims-based authentication. # <ApplicationPool>…
-
Creating Managed Metadata Service Application by Powershell Script
As we are all knows, the SharePoint Powershell can be fast and simple. Here the sample script for creating Managed Metadata Service Application; New-SPServiceApplicationPool -Name “Managed Metadata Service App Pool” -Account sathiya\SPAppPool New-SPMetadataServiceApplication -Name “Managed Metadata Service Application” -ApplicationPool “Managed Metadata Service App Pool” -DatabaseName “MMD” New-SPMetadataServiceApplicationProxy -Name “Managed Metadata Service App Pool” -ServiceApplication “Managed…
-
Script to disable list, libraries from SharePoint crawler
This script will disable all list and libraries from search result in the site collection. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $site = Get-SPSite http://spapplication $site | Get-SPWeb -Limit ALL | ForEach-Object { foreach ($list in $_.lists) { $list.NoCrawl = $true $list.Update() } } $site.Dispose() You can disable it from list/library’s advanced settings. If numerous lists then…