How to Configure Security Settings

You will need to configure the security settings for Windows Image Acquisition (WIA) before you can successfully create a DeviceManager object on an Active Server Pages (ASP) page. This configuration is necessary because the script in an ASP page runs in the context of the IUSR_MACHINENAME or IWAM_MACHINENAME account (where MACHINENAME is the uppercase computer name).

This topic outlines the necessary steps to configure WIA security settings.

Run the Microsoft Management Console

Click Run on the Start menu, type mmc and click OK.

run dialog box

Add the Component Services Snap-in

Perform the following steps to add the Component Services Snap-in.

  1. From the File menu, select Add/Remove Snap-in.

    add/remove snap

  2. On the Standalone tab, click Add.

    add/remove snap-in dialog box

  3. Select Component Services, click Add, click Close, and then click OK.

    add standalone snap-in dialog box

Adjust Security Settings for WIA Device Manager

  1. In the tree-view control, select Console Root, click Component Services, click Computers, click My Computer, and then click DCOM Config. Right-click on the WIA Device Manager icon and select Properties.

    dcom config

  2. Add Launch Permissions for the IUSR_WIAAUT and IWAM_WIAAUT accounts as follows: On the Security tab in the Launch Permissions section, click Customize and click Edit.

    wia device manager properties

    1. Add the IUSR_WIAAUT account (if it is not already present) and select Allow next to Launch Permission.

      allow launch permission for iusr-wiaaut

    2. Add the IWAM_WIAAUT account (if it is not already present) and select Allow next to Launch Permission.

      allow launch permission for iwam-wiaaut

  3. Add Access Permissions for the previous two accounts as follows: On the Security tab, in the Access Permissions section, click Customize and click Edit.

    customize access permissions

    1. Add the IUSR_WIAAUT account (if it is not already present) and select Allow next to Access Permission.

      allow access permission for iusr-wiaaut

    2. Add the IWAM_WIAAUT account (if it is not already present) and select Allow next to Access Permission.

      allow access permission for iwam-wiaaut

Adjust Security Settings for WIA Logger

Repeat the previous steps for the WIA Logger component and add the IUSR_WIAAUT and IWAM_WIAAUT accounts for both launch and access permissions.

wia logger dcom config

Reboot

Restart your computer. If you know how to restart the WIA Device Manager service, you could do that instead.