TransWikia.com

How to give application pool account permissions to search service application

SharePoint Asked by SPBeginer on October 25, 2021

We all probably know how to give application pool account permissions to search service application through central admin. But i want to do this using Powershell. What will be the Powershell script to accomplish this?

One Answer

try this one

$principal = New-SPClaimsPrincipal "contosojane" -IdentityType WindowsSamAccountName
$spapp = Get-SPServiceApplication –Name "Contoso Visio Graphics"
$security = Get-SPServiceApplicationSecurity $spapp –Admin
Grant-SPObjectSecurity $security $principal "Full Control"
Set-SPServiceApplicationSecurity $spapp $security –Admin
(Get-SPServiceApplicationSecurity $spapp -Admin).AccessRules

https://social.technet.microsoft.com/Forums/sharepoint/en-US/591d57a3-8925-41b8-9b54-63cad32ad084/how-to-add-an-administrator-for-search-service-application-sharepoint-2013-powershell?forum=sharepointadmin

Answered by Waqas Sarwar MVP on October 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP