You mean better than this?
$DN="LDAP://CN=DrShark,OU=1,OU=2,OU=3,OU=Test,DC=test,DC=dom"
$ = Right($DN,Len($DN)-InStr($DN,',ou='))
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.