"Access is Denied" error in PowerShell when using "Add-Computer" RRS feed

  • Question

  • Hey folks,

    I'm somewhat new to managing servers via PowerShell and have setup a home lab running Server 2016, one with GUI and one without (core). I am attempting to join the new core server to my domain via PowerShell from the other server using the following string:

    add-computer -computername "computername" -domainname "domainname" -domaincredential "credentials"

    I get prompted to enter credentials but when added I receive an almost immediate "Cannot establish the WMI connection to the computer with the following error message "Access is Denied". I've tried both local admin creds as well as domain admin. Same message every time.

    Thanks in advance for any advice out there.

    Wednesday, March 28, 2018 3:15 PM

All replies