Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Monday, December 29, 2014

Migration of search Admin component to different server in the same farm



Migration of search Admin component to different server in the same farm.

Recently one of the farms got some additional servers joined to the farm. The Search Admin was running on a WFE, and we wanted to move search off to some dedicated servers. Here is the Power Shell script for moving Search Admin:

$SSA = Get-SPEnterpriseSearchServiceApplication "Current Search Service App"
$SA = Get-SPEnterpriseSearchAdministrationComponent -SearchApplication $SSA
$SA | Set-SPEnterpriseSearchAdministrationComponent -SearchServiceInstance NewServerName –Force


After moving the Search Admin you’ll want to kick start the crawlers with the following:

Suspend-SPEnterpriseSearchServiceApplication $SSA
Resume-SPEnterpriseSearchServiceApplication $SSA


 


I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Sunday, December 21, 2014

How to change the session timeouts in SharePoint sites

How to change the session timeouts in SharePoint sites

SharePoint  allows you to set timeout of the user session so that your users are logged out after certain time of inactivity. Also, SharePoint allows you to configure the timeout for the current page state to expire. This is handy for forms which have to be filled within certain period of time before they expire.
Alternatively, if you want to extend the timeout – you can do that.

let’s take a look at how you can expire page content after a given time using Power Shell:

Open SharePoint Management Shell as administrator and execute the following:
$SPSite = Get-SPSite("[your site collection]")
$webApp = $SPSite.WebApplication
$webApp.Enabled = $true
$webApp.Expires = $true
$webApp.Timeout = New-TimeSpan -Hours 2 -Minutes 30
$webApp.Update()

This will effectively enable expiration and set page content to expire after users leave it hanging for over 2 hours and 30 minutes.

if you’re using claims authentication and would like for your provider to expire sessions after certain period of inactivity, here is how to do that with Power Shell:

$sts = Get-SPSecurityTokenServiceConfig
$sts.UseSessionCookies = $true
$sts.LogonTokenCacheExpirationWindow = New-TimeSpan -Minutes 5
$sts.Update()

This will set our logon expiration to 5 minutes.


I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Thursday, October 30, 2014

Turn on the verbose log in SharePoint 2013



Turn on the verbose log in SharePoint 2013

To  Turn on the verbose log in SharePoint 2013 run the below command in SharePoint management shell.

Set-SPLogLevel -TraceSeverity verbose


I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Tuesday, October 14, 2014

How to get to know how many user are accessing the site



How to get to know how many user are accessing the site

I am providing the step in this article on How get to know how many user are using my site. I am getting many questions from SharePoint community on the same. Please find the below command to get the list of count.

 (get-spsite -webapplication http://expertsharepoint.com -limit all).count
  


I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Tuesday, October 7, 2014

Unable to view the Term Store management option in Site Collection settings



Unable to view the Term Store management option in Site Collection settings

Issue: Unable to view the Term Store management option in Site Collection settings

Solution:  Ensure that the site collection admin can able to see the option. If none is able to see then, Run the Power shell or STSADM to active the feature for Term store in your Site collection.

Enable-SPFeature -id “73EF14B1-13A9-416b-A9B5-ECECA2B0604C” -Url <SiteCollection-URL>

Stsadm.exe -o activatefeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C –url http://<SiteCollection-URL> –force

 

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

ShareThis

X