When trying to run
Set-DhcpServerDnsCredential –Credential $Credential –Computername "$env:computername.$env:userdnsdomain"
Set-DhcpServerDnsCredential : Failed to get the username and domain from domain\administrator
What can cause this and how do I fix it
Are you sure you typed domain\username and NOT domain.tld\username?
I did type the correct internal domain name i.e. domain.local\username.
I did go around it by setting the credentials in the GUI dhcp management on the IPV4 in the advanced tab
Yes, that solves it also. I will check if there is a type in my writing. Thanks
The answer is that you must use domain\username and NOT domain.tld\username? See screenshot.