get-adobject

Aug 6, 2007 at 5:53 AM
Ok, silly question, but there aren't any examples.. how do I use the -credential paramter with get-adobject?

thanks,
Developer
Aug 6, 2007 at 5:28 PM
e.g.
$cred = Get-Credential
 
Get-ADObject -Credential $cred
or as an oneliner
Get-ADObject -Credential (Get-Credential)