{"id":410,"date":"2011-01-12T00:06:13","date_gmt":"2011-01-11T22:06:13","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=410"},"modified":"2021-09-20T07:31:30","modified_gmt":"2021-09-20T05:31:30","slug":"store-windows-credentials","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html","title":{"rendered":"Store Windows Credentials for Auto Login"},"content":{"rendered":"\n<p><a href=\"\/en\/category\/systems\/windows\">Windows<\/a> prompts for a login and password when the current logged in user wants to access a share on a domain or workgroup that does not match the one you&#8217;ve logged in. It is possible to store identification information or &#8220;credentials&#8221; so you&#8217;re not prompted for the login and password every time you access the Windows share.<br>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">From the Command Line<\/h3>\n\n\n\n<p>&nbsp;<br>Server_address can be replaced with the host name or IP address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">C:\\&gt;net use * \\\\Server_address\\My_Share \/savecred\nThe password or user name is invalid for \\\\Server_address\\My_Share.\n\nEnter the user name for 'Server_address': MyDomain\\Administrator\nEnter the password for Server_address:\nDrive Z: is now connected to \\\\Server_address\\My_Share.\n\nThe command completed successfully.<\/code><\/pre>\n\n\n\n<p>&nbsp;<br>All shares on the remote machine are now reachable, if the saved username is authorized to.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">C:\\>DIR \\\\Server_address\\My_Other_Share\n Volume in drive \\\\Server_address\\My_Other_Share is System\n Volume Serial Number is 7CBD-E099\n\n Directory of \\\\Server_address\\My_Other_Share\n\n03\/08\/2009  11:11              .\n03\/08\/2009  11:11              ..\n               0 File(s)                0 bytes\n               3 Dir(s) 28 764 954 624 bytes free<\/code><\/pre>\n\n\n\n<p>&nbsp;<br>A volume Z: is automatically created but can be removed safely.<br>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Storing Credentials in the Control Panel<\/h3>\n\n\n\n<p>&nbsp;<br>Storing credentials is also possible through the control panel in some Windows but all:<br>Control Panel -&gt; Stored User Names and Passwords on Windows Server<br>or<br>Control Panel -&gt; User Accounts -&gt; Advanced -&gt; Manage on Windows XP<br>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">From a Unix\/Linux station<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">mount -t cifs \/\/Server_address\/Share \/mount_point -o cred=credential.txt<\/code><\/pre>\n\n\n\n<p><br>The credential.txt file contains the shared folder authentication details:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\">username=my_username\npassword=my_password<\/code><\/pre>\n\n\n\n<p>&nbsp;<br>Access should be granted to the owner exclusively since values are stored in a clear text file. Set file permissions to 700.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows prompts for a login and password when the current logged in user wants to access a share on a domain or workgroup that does not match the one you&#8217;ve logged in. It is possible to store identification information or &#8220;credentials&#8221; so you&#8217;re not prompted for the login and password every time you access the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[70],"tags":[66,272,320,386,391],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Store Windows Credentials for Auto Login<\/title>\n<meta name=\"description\" content=\"Different ways to save credentials that let you auto login on Windows shares from Windows or Linux machines\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Store Windows Credentials for Auto Login\" \/>\n<meta property=\"og:description\" content=\"Different ways to save credentials that let you auto login on Windows shares from Windows or Linux machines\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-11T22:06:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-20T05:31:30+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html\",\"name\":\"Netexpertise - Store Windows Credentials for Auto Login\",\"isPartOf\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2011-01-11T22:06:13+00:00\",\"dateModified\":\"2021-09-20T05:31:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"description\":\"Different ways to save credentials that let you auto login on Windows shares from Windows or Linux machines\",\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Store Windows Credentials for Auto Login\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Store Windows Credentials for Auto Login","description":"Different ways to save credentials that let you auto login on Windows shares from Windows or Linux machines","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - Store Windows Credentials for Auto Login","og_description":"Different ways to save credentials that let you auto login on Windows shares from Windows or Linux machines","og_url":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html","og_site_name":"Netexpertise","article_published_time":"2011-01-11T22:06:13+00:00","article_modified_time":"2021-09-20T05:31:30+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html","url":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html","name":"Netexpertise - Store Windows Credentials for Auto Login","isPartOf":{"@id":"https:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2011-01-11T22:06:13+00:00","dateModified":"2021-09-20T05:31:30+00:00","author":{"@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"description":"Different ways to save credentials that let you auto login on Windows shares from Windows or Linux machines","breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/windows\/store-windows-credentials.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"Store Windows Credentials for Auto Login"}]},{"@type":"WebSite","@id":"https:\/\/www.netexpertise.eu\/en\/#website","url":"https:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/410"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}