Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-ADObject giving errors

$
0
0

I have a little bit of knowledge in using PowerShell but have very long way to go.  I am trying to use the Get-ADObject command but having problems. 

Using this command(also with all possible parameters i can think off):

Get-ADObject -Identity $user -Server $domain -Credential $myCred

I get an error saying: Get-ADObject : Cannot find an object with identity: 'user' under: 'domain'

Now if use: Get-ADUser -Identity $user -Server $domain -Credential $myCred

it goes through fine with no problems and bring the result back.

any suggestions???


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>