How to Configure Security Settings

You will need to configure the security settings for Microsoft 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
  • Add the Component Services Snap-in
  • Adjust Security Settings for WIA Device Manager
  • Adjust Security Settings for WIA Logger
  • Reboot

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.