Posts

Showing posts with the label powershell

Required Permissions in SharePoint Farm for executing PowerShell scripts

Image
Before you execute any of the SharePoint Cmdlet you must be sure that you have necessary permissions to execute in the farm. Also you must have access to local WSS_ADMIN_WPG group where you are executing the cmdlet. Also you must be member of the SharePoint_Shell_Access SQL role within the databases your cmdlet calls in to interact with. Some commands also require you to be a member of the local administrator and farm administrator grooups. For ex. to create a web application, you must be a local administrator and farm administrator. In Regards to adding users to the WSS_ADMIN_WPG group and SharePoint_Shell_Access SQL role, you must not be adding users directly to these groups rather you should use Add_SpShellAdmin cmdlet. This cmdlets accepts optional database name as parameter. If you do not pass this parameter it will add the user to the SharePoint_Shell_Access SQL role in the SharePoint configuration database only. Above third line of c...

Optimizing SharePoint 2013 Server Performance - Development Server (single server)

Image
There were couple of new services introduced with SharePoint 2013 and raised the hardware resource requirements. Let’s only talk about those process and steps to control the resource consumption when it comes to a single server SharePoint 2013 installation. ·           NodeRunner service ·           Distributed Cache Service ·           Count of Web Application NodeRunner service Use Set-SPEnterpriseSearchService -PerformanceLevel Reduced to reduce the CPU impact the search service has on your test environment. Modify the C:\Program Files\Microsoft Office Servers\15.0\Search\Runtime\1.0\noderunner.exe.config so that it can only consume X amount of RAM. Change the value at <nodeRunnerSettings memoryLimitMegabytes="0" /> to any amount of RAM you like to contain the memory leak. May be 250 MB per instanc...

TIP# how to enable powershell ISE in windows server.

Open PowerShell command Prompt and run the following commands: ​Import-Module ServerManager Add-WindowsFeature PowerShell-ISE

Enable Desktop Experience on Servers to Access SharePoint Web Folders

Image
All of us like to access our files like a network drive, and drag and drop and mapping this drive to windows explorer or write/upload to SharePoint using scripts. In order to access SharePoint like a network drive we need to enable a windows feature on our OS which is called "Desktop Experience" which include a webDAV client which is required to open SharePoint documents as a folder on our machine. On most windows desktop OS it is by default enabled, but on servers we need to enable this feature. If you see the below image, you can notice that if you click on "Open with Explorer" you may get this error. The Solution is very simple on to enable this on Windows servers (2008/2012 servers)   Open Powershell command prompt Type "Import-Module ServerManager" without Quotes and execute it(enter) Next you need to execute "Add-Windowsfeature Desktop-Experience" this will install the necessary feature Or you can create a pow...