{"id":6858,"date":"2019-04-30T06:09:15","date_gmt":"2019-04-30T13:09:15","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=6858"},"modified":"2026-11-13T21:27:36","modified_gmt":"2026-11-14T05:27:36","slug":"legacy-application-network-drives","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/legacy-application-network-drives\/","title":{"rendered":"Q&#038;A: Can my Legacy Application Read Network Drives when Run as a Service?"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/qa-network-shares.png\" style=\"margin-bottom:20px;\" title=\"Can my Legacy Application Read Network Drives when Run as a Service?\" alt=\"Can my Legacy Application Read Network Drives when Run as a Service?\" border=\"0\" width=\"380\" height=\"154\"><\/div>\n<div class=\"blog-qa-question-box\">\n<img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"https:\/\/cdn.coretechnologies.com\/images\/quotes-transparent-21x21.webp\" width=\"21\" height=\"21\" alt=\"Quotes\">&nbsp;&nbsp;I am evaluating <a href=\"\/products\/AlwaysUp\/\">AlwaysUp<\/a>. I have a legacy application which must run as a local user. I can get it to run as a service using AlwaysUp.<\/p>\n<p>The application works with parameters. These point to a domain folder (e.g. <span class=\"nobr\">\\\\MyServer\\Data1\\<\/span>). There is an obvious contradiction on one hand, running an application as a local machine user, and on the other hand, trying to access a domain folder. Wondering if there is any way AlwaysUp can accommodate this?<\/p>\n<p>I have mapped a drive from the local user to the network folder and cached credentials. This works. Only problem is cached credentials sometimes expire.<\/p>\n<p align=\"right\">&mdash; David<\/p>\n<\/div>\n<p>Hi David.<\/p>\n<p>Since your application must run as a local user, you should specify the account on AlwaysUp&#8217;s Logon tab:<\/p>\n<div align=\"center\"><a href=\"\/products\/AlwaysUp\/Screenshots\/alwaysup-add-application-logon-tab.png\" class=\"zoomPopup\" title=\"Enter your Windows account on the Logon tab\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/products\/AlwaysUp\/Screenshots\/alwaysup-add-application-logon-tab.png\" title=\"Enter your Windows account on the Logon tab (click to enlarge)\" alt=\"Enter your Windows account on the Logon tab\" border=\"0\" ><\/a><\/div>\n<p>Please enter the username and password for a user that has run your application successfully &mdash; likely the account you are logged into now.<\/p>\n<p>With that account in place, AlwaysUp will run your legacy application in the context of that user. Your program will be able to read from and write to any files that the account has permission to access.<\/p>\n<p>However, as you point out, using drive letters can be tricky. Beyond <a href=\"https:\/\/learn.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-server-2012-r2-and-2012\/hh994565(v=ws.11)\" target=\"_blank\" rel=\"noopener noreferrer\">cached\/saved credentials<\/a>, drive mappings may not be automatically applied when you login as a service. For example, that &#8220;P&#8221; drive you see in Windows Explorer may not be available to your program running as a Windows Service.<\/p>\n<p>Fortunately, AlwaysUp can usually re-create your drive mappings. Check the <b>Attempt to automatically reconnect all network drives<\/b> option on the Extras tab to enable that feature:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/automatically-reconnect-network-drives.png\" class=\"zoomPopup\" title=\"Automatically reconnect network drives\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/automatically-reconnect-network-drives.png\" title=\"Automatically reconnect network drives (click to enlarge)\" alt=\"Automatically reconnect network drives\" border=\"0\" ><\/a><\/div>\n<p>But as the text implies, automatically reconnecting doesn&#8217;t work in all situations. Sometimes a password is required.<\/p>\n<p>To totally sidestep the issues of drive letters when running as a service, we recommend using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Path_(computing)#Uniform_Naming_Convention\" target=\"_blank\" rel=\"noopener noreferrer\">UNC paths<\/a> instead of mapped drives whenever possible. Since your account has permissions to the underlying resource, that shouldn&#8217;t pose a problem.<\/p>\n<p>Will your application accept a UNC path? Please test to find out.<\/p>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">Troubleshooting network\/mapped drives (and other issues)<\/h2>\n<p>By the way, <a href=\"\/blog\/alwaysup\/troubleshoot-alwaysup-command-prompt\/\">launching the command line interactively as a Windows Service<\/a> through AlwaysUp will give you the opportunity to experiment with your application as a service.<\/p>\n<p>For example, you can try to:<\/p>\n<ul>\n<li>\n<p>Change the directory (CD) to the UNC path and confirm that the files are accessible<\/p>\n<\/li>\n<li>\n<p>Run the full command to launch your legacy application with UNC path parameters. If it fails, you may have a permissions issue. Look to your application&#8217;s log files for clues.<\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top:30px\">\nBest of luck with your legacy program\/service! Please <a href=\"\/support\/\">get in touch<\/a> if you have any other questions.\n<\/p>\n<div style=\"margin-top:30px\" align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/alwaysup-tag\/\" title=\"Click to read more articles about AlwaysUp\"><span class=\"nobr\">More articles about AlwaysUp&#8230;<\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><h3 class=\"relpoststh-block-title\">You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 3; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/trouble-reading-registry\/\"class=\"relpost-block-single\"  aria-label=\"Why does my Application have Trouble Reading the Registry?\"><div class=\"relpost-custom-block-single\"><img loading=\"lazy\" decoding=\"async\" class=\"relpost-block-single-image\" alt=\"Why does my Application have Trouble Reading the Registry?\" src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/windows-registry-150-1501.png\" width=\"150\" height=\"150\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" style=\"aspect-ratio:1\/1;object-fit:cover;\" \/><div class=\"relpost-block-single-text\"  style=\"height: 100px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h3 class=\"relpost_card_title\">Why does my Application have Trouble Reading the Registry?<\/h3><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/version-11-5-released\/\"class=\"relpost-block-single\"  aria-label=\"AlwaysUp 11.5: Improvements for Session 0 Isolation, Server 2019, and more\"><div class=\"relpost-custom-block-single\"><img loading=\"lazy\" decoding=\"async\" class=\"relpost-block-single-image\" alt=\"New Version\" src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/new-version-150x150.png\" width=\"150\" height=\"150\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" style=\"aspect-ratio:1\/1;object-fit:cover;\" \/><div class=\"relpost-block-single-text\"  style=\"height: 100px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h3 class=\"relpost_card_title\">AlwaysUp 11.5: Improvements for Session 0 Isolation, Server 2019, and more<\/h3><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/onedrive-hates-admin-rights\/\"class=\"relpost-block-single\"  aria-label=\"OneDrive Can&#039;t Be Run Using Full Administrator Rights\"><div class=\"relpost-custom-block-single\"><img loading=\"lazy\" decoding=\"async\" class=\"relpost-block-single-image\" alt=\"OneDrive Can&#039;t Be Run Using Full Administrator Rights\" src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/no-admin-150x150.png\" width=\"150\" height=\"150\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" style=\"aspect-ratio:1\/1;object-fit:cover;\" \/><div class=\"relpost-block-single-text\"  style=\"height: 100px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h3 class=\"relpost_card_title\">OneDrive Can&#039;t Be Run Using Full Administrator Rights<\/h3><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;I am evaluating AlwaysUp. I have a legacy application which must run as a local user. I can get it to run as a service using AlwaysUp. The application works with parameters. These point to a domain folder (e.g. \\\\MyServer\\Data1\\). &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/legacy-application-network-drives\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":6866,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,102,127,196],"class_list":["post-6858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-mapped-drives","tag-qa","tag-windows-services-2"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/6858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=6858"}],"version-history":[{"count":2,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/6858\/revisions"}],"predecessor-version":[{"id":13827,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/6858\/revisions\/13827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/6866"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=6858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=6858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=6858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}