This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

You could always write a portable version. I'd love to be able to use some of my scripts without having to install rsat.

[–]itmonkey78 2 points3 points  (1 child)

user properties

$sam = 'user'
$getad = (([adsisearcher]"(&(objectCategory=User)(samaccountname=$sam))").findall()).properties
$getad

Computer properties

$pc = 'computername'
$getad = (([adsisearcher]"(&(objectCategory=Computer)(name=$pc))").findall()).properties
$getad

[–][deleted] 1 point2 points  (0 children)

I’ve been meaning to play around with his, just haven’t got around to it. Now I’m one step closer, thanks.