Closed roblabla closed 3 years ago
I never encountered that error. Maybe something in windows is not yet ready for that operation? perhaps this is happening because your machine is faster than mine and that's why I never seen that. Can you add a Start-Sleep -Seconds 60
before that line and try again? or maybe try executing it in a loop until it works?
Tried adding a sleep, it didn't fix the problem.
I googled the error a bit. According to the internet, this error occurs when running Add-KdsRootKey
from an account that isn't in the Domain Admins group, or when running powershell without elevation.
So I put a large sleep in the script so I could log into the machine and check what privileges the script was running as, and sure enough, it is running as Vagrant, which is in EXAMPLE\Domain Users
, but not in EXAMPLE\Domain Admins
After adding vagrant
to the Domain Admins group, and logging off then back on, the command worked properly. I'm currently incorporating this change, I'll submit a PR as soon as I have it working.
Hello,
The current master branch is failing to install properly when using a libvirt host, failing in
domain-controller-configure.ps1
, line 27:with the following error:
Building from 29c54af3736a229f4215cb52abd0336cf66c2bae works properly.