{"id":294,"date":"2008-12-30T11:58:58","date_gmt":"2008-12-30T11:58:58","guid":{"rendered":"http:\/\/blog.cyberwizzard.nl\/?p=294"},"modified":"2016-03-17T21:23:40","modified_gmt":"2016-03-17T20:23:40","slug":"network-login-script-for-windows-xp-home","status":"publish","type":"post","link":"https:\/\/blog.cyberwizzard.nl\/?p=294","title":{"rendered":"Network login script for Windows XP Home"},"content":{"rendered":"<p>I just needed a script to log in on a Windows 2003 Server from Windows XP Home. Of course you can enter your password each time you need to access the shares &#8211; or you could just drop this little script in your Startup folder (call it &#8216;network_login.vbs&#8217; for example).<\/p>\n<p>network_login.vbs:<\/p>\n<p>{codecitation class=&quot;brush:vb&quot;}&#8217; VBScript to map a network drive. And provide a message box<br \/> &#8216; Author Berend Dekens http:\/\/www.cyberwizzard.nl\/<br \/> &#8216; Based on code from Guy Thomas http:\/\/computerperformance.co.uk\/<br \/> &#8216; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/> &#8216;<br \/> Option Explicit<br \/> Dim objNetwork <br \/> Dim strDriveLetter, strRemotePath, bSaveMapping, strUserName, strPassword <br \/> strDriveLetter = &quot;Z:&quot;<br \/> strRemotePath = &quot;\\\\192.168.100.1\\sharename&quot;<br \/> bSaveMapping = true<br \/> strUserName = &quot;yourname&quot;<br \/> strPassword = &quot;mysecretpassword&quot; <br \/> &#8216; Purpose of the script to create a network object. (objNetwork)<br \/> &#8216; Then to apply the MapNetworkDrive method. Result Z: drive<br \/> Set objNetwork = CreateObject(&quot;WScript.Network&quot;) <br \/> objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, bSaveMapping, strUsername, strPassword <br \/> &#8216; Extra code just to add a message box<br \/> WScript.Echo &quot;The networkdrive &quot;&amp; strDriveLetter &amp; &quot; is now available&quot;<br \/> WScript.Quit <br \/> &#8216; End of MapNetworkDrive Example Logon Script. {\/codecitation}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just needed a script to log in on a Windows 2003 Server from Windows XP Home. Of course you can enter your password each time you need to access the shares &#8211; or you could just drop this little script in your Startup folder (call it &#8216;network_login.vbs&#8217; for example). network_login.vbs: {codecitation class=&quot;brush:vb&quot;}&#8217; VBScript to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[296,295,459,297,211],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-how-tos","tag-login","tag-network","tag-not_ok","tag-vbscript","tag-windows"],"views":2463,"_links":{"self":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294"}],"version-history":[{"count":1,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":438,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/294\/revisions\/438"}],"wp:attachment":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}