Remotely Add a PC to the domain

I've trying to use powershell to add a machine to the domain.  The local accounts are locked, the local administrator account is disabled and it's doesn't see the domain.  I'm was trying to use powershell Remotely because It's impossible to do it any other way..
add-computer -computername (nameofmachine) -domainname (name of the domain) - credential (my credentials)
It now working.  Is there anyway to do this remotely???
WellingtonISAsked:
Who is Participating?
 
Giridhara Raam MConnect With a Mentor Digital Marketing SpecialistCommented:
Try using ManageEngine Desktop Central to do the same.
0
 
Hello ThereSystem AdministratorCommented:
Add-Computer only works on the local computer, you can’t use it to add a remote machine. So you need to get some script.

E.g. this one.

Or maybe this topic can help you.
0
 
WellingtonISAuthor Commented:
That's not really the issue.  The local accounts are all locked and I can't get on the machine.  I was trying to add the machine to the domain or jjoin the machine to the domain with a remote command to get it back on the domain so I can get in it
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
Tom CieslikIT EngineerCommented:
What about team viewer QS ?
You can ask user to download TV QS run it and give you access to through TeamViewer free edition.
You going to be able connect remotely and add computer to domain
0
 
WellingtonISAuthor Commented:
OK but if I can't get on the machine, a) how can I install that, b)I still will not be able to get in.
0
 
WellingtonISAuthor Commented:
OK will do thanks.
1
 
WellingtonISAuthor Commented:
That worked but it's not my first choice.  I'd rather see if I can create a script for this.
0
 
Danny VerrazanoCommented:
You could try booting to a CD/DVD or USB drive with a tool that will allow you to change the local admin password for the system partition.  There are several tools available to do that. Google and take your pick.
0
 
Danny VerrazanoCommented:
yeah if a tool can do it then a script of your own could do it... its all ones and zeros.
0
 
WellingtonISAuthor Commented:
OK I'll look into that thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.