4

What I am looking to do is to

net user user1 /DOMAIN

However, I'd like to do it for a domain that the computer ISN'T joined to but has access to.

Users are spread into DOMAIN1 and DOMAIN2. The computer I would run it from is joined to DOMAIN1 but would look up users on DOMAIN2.

Is this possible in/with Powershell?

1 Answer 1

6

Try this

Get-ADUser "user1" -Server "DC_of_other_domain"
Sign up to request clarification or add additional context in comments.

3 Comments

I suppose I should have specified that this is Powershell 1.0. Do I need to get anything on top of that?
nevermind, it's v2.0 - upon further reading I need to have RSAT installed on my Windows 7 box...and the remote server needs to have webservices running.
COOOL thanks. FYI: you can search list of the domain controllers via this command nslookup -type=any %userdnsdomain%.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.