Tuesday, November 25, 2014

WDKRemoteUser woes

Scenario: You are writing a kernel driver project in Visual Studio 2013 and you want to provision a computer as a target. Unfortunately, you end up with a WDKRemoteUser user name or password not found. And the provisioning fails with a message similar to this:

Provisioning log
Installing necessary components...
Connecting to computer "192.168.68.28"
Connecting to driver test automation service
Getting computer system information
Copying driver test automation files
Copying driver test automation files succeeded
Configuring WDK Remote User Account
WDK Remote User Account successfully created
Installing .NET Framework (possible reboot)
Installing .NET Framework (possible reboot) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Installing VC Redist (x64)
Installing VC Redist (x64) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Installing test automation (x86)
Installing test automation (x86) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Installing test automation (x64)
Installing test automation (x64) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Installing debuggers (x86)
Installing debuggers (x86) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Installing debuggers (x64)
Installing debuggers (x64) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Installing driver test framework
Installing driver test framework failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Registering logging components
Registering logging components failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Configure debugger settings (x64) (possible reboot)
Configure debugger settings (x64) (possible reboot) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Configure computer settings (x64) (possible reboot)
Configure computer settings (x64) (possible reboot) failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.
Creating system restore point
Creating system restore point failed. Please ensure connectivity with the remote machine, and then restart the provisioning process.


What do?

Solution: Log in to the target computer with an admin account. Go to 'Edit Local Users and Groups'.  You should see the 'WDKRemoteUser' in the list. Right-click the user and 'Set Password...'. Put in a password that will work  with your group password policy. Sign out and login as ".\WDKRemoteUser" with your current password. Retry the provisioning with the corresponding debug settings. It will run through the provisioning correctly this time.

Please leave a comment if you have any issues. I'll take a look and try to replicate it.