Microsoft KB Archive/937485

= Error message when you try to add an image to the Image Distribution service on a Windows Server 2003-based computer: &quot;Unable to add image to the image server&quot; =

Article ID: 937485

Article Last Modified on 10/26/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
When you try to add an image to the Image Distribution service on a Microsoft Windows Server 2003-based computer, you receive the following error message:

Unable to add image to the image server.

Note The Image Distribution service is part of Automated Deployment Services (ADS).



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, follow these steps:  On the Windows Server 2003-based computer that is running the Image Distribution service, stop all the imaging operations that are running. Click Start, click Run, type cmd, and then click OK. At the command prompt, type adsimage /retrieve.

Note In this step, replace the  placeholder with the name of the image. This command retrieves the image from the Image Distribution service to a local volume. Repeat the command for each image. For more information about the command syntax, visit the following Microsoft Web site, and then click adsimage /retrieve:

http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/ADS/en-us/cmd_adsimage.mspx?mfr=true

 At the command prompt, type adsimage /delete.

Note In this step, replace the  placeholder with the name of the image. This command deletes the image from the Image Distribution service. Repeat the command for each image. For more information about the command syntax, visit the following Microsoft Web site, and then click adsimage /delete:

http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/ADS/en-us/cmd_adsimage.mspx?mfr=true

 At the command prompt, type net stop adsimgsvc, and then press ENTER.

Note This command stops the Image Distribution service. At the command prompt, type net share ADSImages$ /d, and then press ENTER.

Note This command deletes the ADSImages$ shared folder. However, the image folder is not deleted. At the command prompt, type move , and then press ENTER.

Note In this step, replace the  placeholder with the location where you want to move the image folder. For more information about the command syntax, visit the following Microsoft Web site, and then click Move:

http://www.microsoft.com/technet/archive/msdos/comm6.mspx?mfr=true

</li> At the command prompt, type net share ADSImages$=, and then press ENTER.

Note In this step, replace the  placeholder with the new location of the ADSImages$ shared folder. This command creates a new ADSImages$ shared folder in the new location.</li> Modify the permissions of the shared folder so that the local system administrator account and the SYSTEM account have the Full Control permission. Additionally, make sure that the Network Service account has the Change permission and the Read permission. Do not grant any other permissions.

Note For more information about how to set, view, change, or remove permissions for files and for folders, visit the following Microsoft Web site:

http://technet2.microsoft.com/windowsserver/en/library/708e91ad-6adb-4c42-9f08-fecbc4921adf1033.mspx?mfr=true

</li> At the command prompt, type regedit, and then press ENTER.</li> Locate the following registry subkey, and then click it:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\adsimgsvc\Parameters

</li> In the details pane, double-click the ImageRoot registry entry, type the path of the new shared folder in the Value data box, and then click OK.

Note Make sure that you include a backslash at the end of the path. For example, type D:\imagestore\ in the Value data box, and then click OK.</li> Exit Registry Editor.</li> At the command prompt, type net start adsimgsvc, and then press ENTER.

Note This command starts the Image Distribution service.</li> At the command prompt, type adsimage /add, and then press ENTER.

Note This command adds the image that you retrieved in step 3 to the Image Distribution service. Repeat this command for each image. For more information about the command syntax, visit the following Microsoft Web site, and then click adsimage /add:

http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/ADS/en-us/cmd_adsimage.mspx?mfr=true

</li> Type exit, and then press ENTER.</li></ol>

Notes <ul> To follow the steps in the &quot;Resolution&quot; section, you must be a member of the Administrators group on the computer. Or, you must be delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group may be able to perform this procedure. As a security best practice, use the &quot;Run as&quot; feature to perform this procedure.</li> The disk to which you move the ADSImages$ shared folder must use the NTFS file system. Otherwise, the Image Distribution service will not start.</li> For more information about the &quot;Run as&quot; feature, visit the following Microsoft Web site:

http://technet2.microsoft.com/windowsserver/en/library/8782f8ab-9538-4111-8a68-7bfd130c21c01033.mspx?mfr=true

</li></ul>

Additional query words: ids image store

Keywords: kbexpertiseadvanced kbtshoot KB937485

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.