Event ID 781 — Auto-Add Devices Database

Updated: December 3, 2008

Applies To: Windows Server 2008 R2

The Auto-Add Devices database enables you to add computer accounts to Active Directory Domain Services automatically. You will find this database in the \RemoteInstall\Mgmt folder (by default, the RemoteInstall folder is located on drive C). The database is created by the Pre-Boot Execution Environment (PXE) provider the first time you enable the Auto-Add functionality (using either the MMC snap-in or the /AutoAddPolicy command-line option). All computers in the pending queue are represented as an entry in the database on the Windows Deployment Services server.

Event Details

Product:

Windows Operating System

ID:

781

Source:

BINLSVC

Version:

6.1

Symbolic Name:

W_BINL_AUTOADD_APPROVE_DEVICE_AUDIT_LOG_FAILED

Message:

An error occurred while trying to update the Auto Add database with the information for an approved device. The device was successfully added to Active Directory Domain Services but an error occurred while updating the device in the Auto Add database. The client will still be serviced.

Request Id: %1

Error Information: %2

Resolve

Ensure that the registry data and permissions are correct

The Pre-Boot Execution Environment (PXE) provider provides client boot services over the network. This provider must be able to create and modify the Auto-Add Devices database and the tables and indexes contained in the database so that it can create and manage pending devices.

To resolve this issue, first ensure that there is enough memory on the server. If there is enough memory, then do the following in the specified order until the issue is resolved:

To resolve this issue, do the following:

Ensure that the WDSServer service has permissions to the RemoteInstall folder

Ensure that the WDServer service has access to the registry.

Ensure that the configuration data in the registry is correct.

Recreate the database.

Ensure that the WDSServer service has permissions to the RemoteInstall folder

To perform this procedure, you must either be a member of the local Administrators group or have been delegated the appropriate authority.

To ensure that the WDSServer service has the necessary permissions:

Right-click the RemoteInstall folder (by default, this folder is located on drive C).

On the Security tab, make sure that WDSServer is set to Full control.

If the Full Control check box is already selected, use the procedure in the following section to ensure that the WDServer service has access to the registry.

Ensure that the WDServer service has access to the registry

Caution: Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.

To perform this procedure, you must either be a member of the local Administrators group or have been delegated the appropriate authority.

To ensure that WDSServer has the necessary permissions:

Open Registry Editor. (Click Start, type regedit in the Start Search box, and then press ENTER).)

Locate the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WDSServer\

Right-click the WDSServer node, click Permissions, click SYSTEM, and then make sure that Full Control is selected.

If WDSServer has access to the registry and the problem persists, perform the procedure in the following section to make sure that the configuration data in the registry is correct.

Ensure that the configuration data in the registry is correct

To perform this procedure, you must either be a member of the local Domain Admins group or have been delegated the appropriate authority.

To ensure that the configuration data is correct, use the following steps to restart the WDSServer service:

Open the Command Prompt window.

At the command prompt, run net stop wdsserver.

At the command prompt, run net start wdsserver.

If you continue to encounter this error, use the procedure in the following section to recreate the Auto-Add Devices database.

Recreate the database

To perform this procedure, you must either be a member of the local Administrators group or have been delegated the appropriate authority.

To recreate the database:

Delete the contents of the RemoteInstall\Mgmt folder. By default, the RemoteInstall folder is located on drive C.

Open the Command Prompt window.

At the command prompt, run net stop wdsserver.

At the command prompt, run net start wdsserver.

Verify

To perform this procedure, you must either be a member of the local Domain Admins group or have been delegated the appropriate authority.

To verify that the Auto-Add policy is active:

Restart the WDSServer service. To do this, open the Command Prompt window, run net stop wdsserver, and then run net start wdsserver.