Alexander’s Blog

July 3, 2011

How to Get Rid of Orphaned Application Pools in SharePoint 2010

by @ 8:09 am. Filed under IIS, SharePoint, Tips & Tricks

The other day I was working at a client’s site on their SharePoint Server 2010. I was creating and configuring service applications for their SharePoint environment when I ran into an interesting issue that I thought I will share with you.

At one point while I was creating a service, due to a typo the service wasn’t created but the application pool that I specified in the configuration got created. I know it was created because I could select it in the drop-down box in SharePoint when I tried to create the service application again. However, when I went to IIS 7 to delete the application pool it was not there. That was pretty confusing. At one point I deleted an existing service application and then recreated it. I experienced the exact same situation. The application pools were visible in SharePoint and not in IIS 7. I knew unless they are available in IIS 7 where you can manage them, they don’t really exist. I had to find a way to clean up the mess and get rid of the orphaned service application pools, especially because I wanted to use those names. After a little research I found the solution. Here’s how you can get rid of an orphaned application pool.

1. Start Windows PowerShell ISE located in Start, All Programs, Accessories, Windows PowerShell folder.. You can also use SharePoint 2010 Management Shell but I prefer to use Windows PowerShell ISE. You may have to install Windows PowerShell ISE if you haven’t already.

Best Practice: Use the Windows PowerShell ISE, which is 64-bit, instead of the 32-bit version called Windows PowerShell ISE (x86).

2. To view all the existing application pools type the following command and press enter.

Get-SPServiceApplicationPool | select Id, Name

You will notice that the left column lists the Ids and the right column lists the names. Here’s an example.

PS C:\Users\SP_Admin> Get-SPServiceApplicationPool | select Id, Name

Id                                                              Name
–                                                               —-
4a3524ac-fb36-4b76-ab66-e8b4abca1cfc1     SeattlePro Search Service
447ba2a3-b5a3-5243-3c34-b17ef6ba5dc4     SecurityTokenServiceApplicationPool
cba42cbe-bb43-3524-8478-ae24826f904b     SharePoint Web Services System

3. To delete the orphaned application pool type:

Remove-SPServiceApplicationPool -Identity “Name of Orphaned Application Pool”

What’s confusing here is that even though the command uses the switch called Identity, you don’t want to use the “Id”, you want to use the name of the application pool in the above command. For example, if the SeattlePro Search Service was the orphaned application pool that is available for you to use in SharePoint but you don’t see it in IIS 7, you will use the following command to delete it.

Remove-SPServiceApplicationPool -Identity “SeattlePro Search Service

This should get rid of the orphaned application pool and you can recreate the pool by using the old name if you want.

July 1, 2011

How to Move the Location of the OST File in Outlook 2010

by @ 9:46 am. Filed under Exchange/Outlook, Tips & Tricks

Sometimes you may want to move the OST file to a different location for various reasons. For example, if your computer was in a Workgroup and you were using Outlook 2010, it had an OST file in a certain location within your user profile. If you then join a domain and logon to the domain you will be using a different profile. When you start Outlook it will create a new profile for you that will point to a different OST file then before. This is just one example of why you may want to move your OST file. Here’s how you can move your OST file.

  1. Close Outlook. While you are in Outlook you cannot change the location of the OST file because it is in use.
  2. In Windows 7, click Start, Control Panel.
  3. In the upper right hand corner type “mail” in the search box.
  4. Click the Mail icon.
  5. Click Data Files.
  6. Double-click the data file that you want to work with.
  7. On the Advanced tab, clear the box “Use Cached Exchange Mode.”
  8. Click Outlook Data File Settings.
  9. Click Disable Offline Use.
  10. Now you should be able to browse and change the location of the OST file. If you want to use an existing file, simply browse to it. If you want to change the location of the file then first copy or move the file to the new destination and then select the file in this step. By default the file is located in your user profile under AppData, Local, Microsoft, Outlook folder.
  11. As soon as you add the file, offline use will be enabled automatically.
  12. Select the Use Cached Exchange Mode box again to enable cached mode.
  13. Click OK and close all the windows.
  14. Restart Outlook 2010.

Contact E-mail | Terms of Use | Privacy Policy

Copyright ©2010 Zubair Alexander. All rights reserved.

Internal Links

Search Blog

Categories

Archives

July 2011
M T W T F S S
« Jun   Aug »
 123
45678910
11121314151617
18192021222324
25262728293031

RSS Feeds

TechGalaxy Visitors

24 queries. 0.603 seconds