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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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
Giridhara Raam MDigital Marketing SpecialistCommented:
Try using ManageEngine Desktop Central to do the same.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.