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?
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
Answered by Waqas Sarwar MVP on October 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP