I am trying to join a domain to my computer using powershell and this gives me the following error:
The computer 'PC17142' could not join the domain 'virtualbox.local' from its current working group 'WORKGROUP' with the following error message: Access Denied.
The command that I execute is the following:
add-computer -computername "PC17142" -domainName virtualbox.local -cred Administrador -Verbose
PS: The powershell runs as an administrator, thus omitting the possibility of lack of permissions.
Would you guys tell me how to solve this? The intention is to join this computer to a domain using a PowerShell command.