{"id":377,"date":"2009-02-12T15:05:00","date_gmt":"2009-02-12T23:05:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/image-for-windows-scheduled-task-fails-to-save-backup-to-network-drive\/"},"modified":"2021-09-07T15:05:29","modified_gmt":"2021-09-07T22:05:29","slug":"image-for-windows-scheduled-task-fails-to-save-backup-to-network-drive","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/image-for-windows-scheduled-task-fails-to-save-backup-to-network-drive\/","title":{"rendered":"Image for Windows Scheduled Task Fails to Save Backup to Network Drive"},"content":{"rendered":"<p><strong><font color=\"#ff5500\">Problem:<\/font><\/strong><\/p>\n  <p>Image for Windows is set to run as a scheduled task in Windows and save the backup to a network drive, but the backup is not created as expected. The Image for Windows log (ifw.log) shows the message <em>File already exists<\/em> or <em>Path not found<\/em>.<br \/><\/p>\n  <p><strong><font color=\"#ff5500\">Cause:<\/font><\/strong><\/p>\n  <p>When the scheduled task runs, the network drive is not mapped.<\/p>\n  <p><strong><font color=\"#ff5500\">Solution:<\/font><\/strong><\/p>\n  <p>Configure the scheduled task to save the backup to the network drive using the Universal Naming Convention (UNC), rather than with a mapped drive letter. You can accomplish this by either editing the scheduled task manually or by deleting the existing task and then recreating a task the usual way in Image for Windows.&nbsp;An example of the change that is required follows.<\/p>\n  <p><strong>Using a mapped drive:<br \/><\/strong><\/p>\n  <p><font color=\"#0003ff\">&quot;C:&#92;Program Files&#92;TeraByte Unlimited&#92;Image for Windows&#92;V2&#92;imagew.exe&quot; <br \/>\/b \/uy \/um \/d:w0@0x1 \/f:&quot;<font color=\"#ff0000\">N:&#92;BACKUP<\/font>&quot; \/rb:0<\/font><\/p>\n  <p><strong>Using UNC:<\/strong><\/p>\n  <p><font color=\"#0003ff\">&quot;C:&#92;Program Files&#92;TeraByte Unlimited&#92;Image for Windows&#92;V2&#92;imagew.exe&quot; <br \/>\/b \/uy \/um \/d:w0@0x1 \/f:&quot;<font color=\"#ff0000\">&#92;&#92;ComputerName&#92;ShareName&#92;BACKUP<\/font>&quot; \/rb:0<\/font><\/p>\n  <p>When using a UNC path, you may also need to specify the login information for the network share. To do this, use the<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">\/login <\/font>option. For example:<\/p>\n  <p><font color=\"#0003ff\">&quot;C:&#92;Program Files&#92;TeraByte Unlimited&#92;Image for Windows&#92;V2&#92;imagew.exe&quot; <br \/><font color=\"#ff0000\">\/login:&quot;&#92;&#92;ComputerName&#92;ShareName*username*password&quot; <\/font>\/b \/uy \/um <br \/>\/d:w0@0x1 \/f:&quot;&#92;&#92;ComputerName&#92;ShareName&#92;BACKUP&quot; \/rb:0<\/font><\/p>\n  <p><strong>Note:<\/strong> Depending on the version of Windows being used and how the share is configured, you may need to include the <font color=\"#ff0000\">ComputerName <\/font>with the <font color=\"#ff0000\">username<\/font>. For example:<\/p>\n  <p><font color=\"#0003ff\">&quot;C:&#92;Program Files&#92;TeraByte Unlimited&#92;Image for Windows&#92;V2&#92;imagew.exe&quot; <br \/>\/login:&quot;&#92;&#92;ComputerName&#92;ShareName*<font color=\"#ff0000\">ComputerName&#92;username<\/font>*password&quot; \/b \/uy \/um <br \/>\/d:w0@0x1 \/f:&quot;&#92;&#92;ComputerName&#92;ShareName&#92;BACKUP&quot; \/rb:0<\/font><\/p>\n  <p>Here is a complete example using the following configuration:<\/p>\n  <ul>\n    <li>The computer name is <font color=\"#ff0000\">BackupServer<\/font>. <\/li>\n    <li>The share name is <font color=\"#ff0000\">LaptopBackups<\/font>. <\/li>\n    <li>The user name is <font color=\"#ff0000\">JohnDoe<\/font>. <\/li>\n    <li>The password is <font color=\"#ff0000\">pswd1234<\/font>. <\/li>\n    <li>The image file is named <font color=\"#ff0000\">Win7.TBI<\/font>. <\/li>\n  <\/ul>\n  <p><font color=\"#0003ff\">&quot;C:&#92;Program Files&#92;TeraByte Unlimited&#92;Image for Windows&#92;V2&#92;imagew.exe&quot; <br \/>\/login:&quot;&#92;&#92;BackupServer&#92;LaptopBackups*BackupServer&#92;JohnDoe*pswd1234&quot; \/b \/uy \/um <br \/>\/d:w0@0x1 \/f:&quot;&#92;&#92;BackupServer&#92;LaptopBackups&#92;Win7&quot; \/rb:0<\/font><\/p>\n  <p>If it is undesirable for the password to be visible you can have Image for Windows cache the encrypted password. You would then just need to specify the share and user name. For details on caching the password see the \/login option in the Image for Windows manual.<\/p>\n  <p>Instead of using the <font color=\"#ff0000\">\/login<\/font> option, it's also possible to use saved user credentials for the network share. When setting up the task and browsing to the share, check the option <font color=\"#ff0000\">Remember my credentials<\/font> when you enter the user name and password. You could also add the credentials using the Control Panel. Note that using remembered\/saved credentials may not be as reliable as the \/login option depending on how they are saved. Also, if you move the script\/task to another computer it won't work unless that computer has credentials for the share. The \/login method would work normally in this case&nbsp;since the user name and password are specified.<\/p>","protected":false},"excerpt":{"rendered":"<p>Problem: Image for Windows is set to run as a scheduled task in Windows and save the backup to a network drive, but the backup is not created as expected. The Image for Windows log (ifw.log) shows the message File already exists or Path not found. Cause: When the scheduled task runs, the network drive [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1790],"lsvr_kba_tag":[2121],"class_list":["post-377","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-problem-solving-image-for-windows","lsvr_kba_tag-image-for-windows"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":1,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/377\/revisions"}],"predecessor-version":[{"id":6393,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/377\/revisions\/6393"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=377"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}