Tag: service
-
Register Managed Accounts
$account = New-Object System.Management.Automation.PSCredential "READYLAB\sp2013_c2wts", ` (ConvertTo-SecureString "M0dewh1z" –AsPlainText –Force) $managedAccount = New-SPManagedAccount $account
-
Display Service Applications along with app-pool names and user accounts used for them.
Get-SPServiceApplication | Select Name, @{Name="SPAppPoolName"; Expression={$_.ApplicationPool.Name}}, @{Name="IISAppPoolName"; Expression={$_.ApplicationPool.Id}}, @{Name="ProcessAccountName"; Expression={$_.ApplicationPool.ProcessAccountName}} By a minor tweak to the command – Get-SPWebApplication, you could use this for web application as well. though the process account name is not available.
-
Delete orphaned SharePoint Service Application Pool
Get-SPServiceApplicationPool | select id, name Remove-SPServiceApplicationPool -Identity "UserProfileServiceApplicationPool"