Y
Y
yan_admin2015-04-02 00:29:23
Active Directory
yan_admin, 2015-04-02 00:29:23

How to enter a PC into a domain with a given account?

Good afternoon!
There is: a computer in the "work" group with win7 (pc name "dom"), domain "home", an account in the domain "home \ user1" and the password for it "password"
Task: using the command to change the computer name to "PC1 "bring it to the domain under the account "home\user1" and the password "password". Feasible? Can you suggest a command?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Nikitin, 2015-04-02
@padla2k

Add-Computer -NewName PC1 -DomainName home -DomainCredential $(Get-Credential home\user1)

M
Mikhail Ivanov, 2015-04-02
@Mikhael1979

There is also a console command netdom . But for it to work, you need to install RSAT.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question