Finding Accounts with Service Principal Names in AD Using PowerShell

A quick post while I am waiting for some replication to happen. I was continuing on through a paused installation of FIM from some time ago and had forgotten what Service Principal Names I’d set up in the lab. A quick query to AD and here we are:

get-aduser -filter {(objectclass -eq 'user')} -property serviceprincipalname | where-Object {$PSItem.ServicePrincipalName -ne $null} | select-object serviceprincipalname,userprincipalname | ft -Wrap

Screen Shot 2014-05-08 at 10.12.06 pm

Categories: Active Directory, FIM, Powershell

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: