This project has moved and is read-only. For the latest updates, please go here.

Identifying Service Applications and other objects

Jun 30, 2010 at 7:53 AM
Edited Jun 30, 2010 at 7:54 AM

This is a really great script. But it works only good on english installations :(

Why do you use something like this:

 $GetSPSecureStoreServiceApplication = Get-SPServiceApplication | ?{$_.TypeName -like "Secure Store*"}

and sometimes something like this:

$secureStore = Get-SPServiceApplicationProxy | where { $_.GetType().Equals([Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy]) }

It is possible to replace all this stuff with previous code? E.g.: the first example can replaced with:

$GetSPSecureStoreServiceApplication = Get-SPServiceApplication | where { $_.GetType().Equals([Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplication]) }

Know anyone a reference to all this objects?


Jun 30, 2010 at 4:50 PM

Excellent suggestion! Was looking for something like this earlier on, in order to make stuff more language-neutral. I will have a look and replace English names with your suggested syntax instead wherever I can... thanks!


Jun 30, 2010 at 7:03 PM

Some types are private. In such a situation I use following code:

$GetSPSecureStoreServiceApplication = Get-SPServiceApplication | where { $_.GetType().ToString() -eq "Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplication" }


Jul 17, 2010 at 6:12 AM

Thanks to your suggestion, I believe this is addressed in the latest release. Give it a try!