how to join computer to domain through powershell

Question:

I have just done a fresh installation of windows 7 professional, and I would like to join my pc to domain through powershell but getting some error here is the code which I am using

Answer:

There was an easy solution to this, i didnt configure my dns server i had to change it manually and after populating the two field i ran the following script and it worked

However i want powershell to change the dns setting i will ask this in a separate question

Source:

how to join computer to domain through powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply