Hi Daphin, I tried to join the domain using Custom spec, which isn't working. Don't know the exact reason. Do you have any codes which I can invoke, to add a server to domain in custom spe...
See more...
Hi Daphin, I tried to join the domain using Custom spec, which isn't working. Don't know the exact reason. Do you have any codes which I can invoke, to add a server to domain in custom spec, Not a big scripting guy, but I tried to add a powershell script through a batch file to join a server to domain which is also failing. $computername = "MyNETBIOSName" $JoinNewDomain = '$DomainUser = "XXXX"; $DomainPWord = ConvertTo-SecureString -String "XXXXXX" -AsPlainText -Force; $DomainCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList$DomainUser, $DomainPWord; Add-Computer $computername -DomainName XXXX.com -Credential $DomainCredential -OUPath "OU=Test,DC=XXXX,DC=com"; Start-Sleep -Seconds 20; Shutdown /r /t 0' Thanks.