How to find a RunAsAccount from their SSID

Hi!

Today installing and configuring various MP in a SCOM 2012 R2 I needed to find the RunAsAccount from their SSID.

Seeking on internet I found this article http://michielw.blogspot.co.uk/2011/02/scom-account-specified-in-run-as.html that say how to do.

I did the following:

Log in the SCOM OMS Server

Create a ps1 file with the following lines (Look that I changed Get-RunAsAccount for Get-ScomRunAsAccount):

Get-ScomRunAsAccount | Sort Name | % {$string = $null;$_.SecureStorageId | % {
$string = $string + “{0:X2}” -f $_}

$RunAsAccountName = $_.Name
[string]$RunAsAccountSSID = $string
if ($SSID -match $RunAsAccountSSID) {write-host “The Run As Account is .. $RunAsAccountName”}
}

Execute from powershell console and insert the SSID.

SSID

Open OpsMgr console and go to Administration Pane\ Run As Configuration \ Accounts and seek the Run As Account name that you saw on the powershell. Double click and on credentials tab you can see the account name.

Regards!

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s