Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

As the subject says - i'm trying to remove an application pool using the SP Management Shell (using Administrator).

I have a pool named SharePoint - User Profiles

I try to remove this app pool by running the remove-spserviceapplicationpool command and then typing SharePoint - User Profiles and it blows up on me...

Here's an example of the input/output:

PS C:\Users\shsetup> remove-spserviceapplicationpool

cmdlet Remove-SPServiceApplicationPool at command pipeline position 1 Supply values for the following parameters: Identity: SharePoint - User Profiles

Remove-SPServiceApplicationPool : Object not found. At line:1 char:32 + remove-spserviceapplicationpool <<<< + CategoryInfo : ObjectNotFound: (Microsoft.Share...ApplicationPo ol:SPCmdletRemoveI...ApplicationPool) [Remove-SPServiceApplicationPool], I nvalidOperationException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveIi sWebServiceApplicationPool

Remove-SPServiceApplicationPool : Object reference not set to an instance of an object. At line:1 char:32 + remove-spserviceapplicationpool <<<< + CategoryInfo : InvalidData: (Microsoft.Share...ApplicationPool: SPCmdletRemoveI...ApplicationPool) [Remove-SPServiceApplicationPool], Null ReferenceException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveIi sWebServiceApplicationPool

Any help would be much appreciated! Thanks, Taps

share|improve this question
    
I have the exact same issue, was your issue resolved?? There is no typo and the Get-spserviceapplicationpool does list the object Name ProcessAccountName ---- ------------------ SecurityTokenServiceApplicationPool BROWER\SPP_Admin SharePoint - User Profiles BROWER\SPP_Ups but Remove-SPServiceApplicationPool -Identity "SharePoint - User Profiles" does not work neither does, Remove-SPServiceApplicationPool "SharePoint - User Profiles" Any help is appreciated!! Thanks. –  user6589 Jan 26 '12 at 20:55

2 Answers 2

up vote 0 down vote accepted

Hyphen in name of the service application pool is not a problem. I just created and removed it without any problem. Make sure there is no typo. Also make sure make sure it is listed in Get-spserviceapplicationpool

share|improve this answer

Try: remove-spserviceapplicationpool -identity "SharePoint - User Profiles"

That should help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.