blog

PS Domain Commands

Useful Powershell Commands

Image by Pexels from Pixabay

Join a domain

Must be an elevated Powershell prompt.

add-computer -domainname <name> -Credential <username> -restart -force