c:\> wmic.exe /interactive:off ComputerSystem Where name="MACHINE-NAME" call JoinDomainOrWorkgroup FJoinOptions=3 Name="DOMAIN-NAME" UserName="DOMAIN-NAME\user01" Password="Password01"
Copied this from the internet elsewhere forgot to get the URL to give credits.
Comments