{"id":30,"date":"2006-04-14T09:23:00","date_gmt":"2006-04-14T13:23:00","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/2006\/04\/14\/logon-script-generator\/"},"modified":"2013-07-02T08:09:36","modified_gmt":"2013-07-02T12:09:36","slug":"logon-script-generator","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/","title":{"rendered":"Logon Script Generator"},"content":{"rendered":"<div style=\"text-align: left;\"><\/div>\n<p>I've developed a new and <span style=\"font-size:130%;\"><span style=\"color: rgb(255, 102, 0); font-style: italic; font-weight: bold;\">free <\/span><\/span>HTA, in the \"scriptomatic\" philosophy, that generates logon scripts. You can pick your drive and print mapping combinations, including checking group membership, and create a working VBScript logon script without having to write a single line of code.  The tool reads in lists of available drive and printer UNCs that you provide to populate drop down lists.  It will also query Active Directory to search for security enabled groups and present them in drop down lists.<\/p>\n<p>I always like presenting a summary message to the user after logon script completion.  The HTA includes options to display the user's password age, a  brief welcome message, a summary of mapped drives and a summary of mapped printers.  You can also add customized text for error messages or call additional commands.  The tool will preview the final code for you and let you save it to a file.<\/p>\n<div style=\"text-align: center;\"><\/div>\n<p><\/p>\n<div style=\"text-align: center;\"><\/div>\n<p>You can download the tool for free at http:\/\/www.jdhitsolutions.com\/logonscriptgen\/index.htm<\/p>\n<p><font face=\"tahoma\" size=1>Technorati Tags:<br \/><a href=\"http:\/\/www.technorati.com\/tags\/hta\" rel=\"tag\">HTA<\/a><br \/><a href=\"http:\/\/www.technoratic.com\/tags\/scripting\" rel=\"tag\">Scripting<\/a><br \/><a href=\"http:\/\/www.technoratic.com\/tags\/vbscript\" rel=\"tag\">VBScript<\/a><br \/><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve developed a new and free HTA, in the &#8220;scriptomatic&#8221; philosophy, that generates logon scripts. You can pick your drive and print mapping combinations, including checking group membership, and create a working VBScript logon script without having to write a single line of code. The tool reads in lists of available drive and printer UNCs&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[22,23,535],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-automation","tag-hta","tag-vbscript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Logon Script Generator &#8226; The Lonely Administrator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logon Script Generator &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"I&#039;ve developed a new and free HTA, in the &quot;scriptomatic&quot; philosophy, that generates logon scripts. You can pick your drive and print mapping combinations, including checking group membership, and create a working VBScript logon script without having to write a single line of code. The tool reads in lists of available drive and printer UNCs...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2006-04-14T13:23:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-02T12:09:36+00:00\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Logon Script Generator\",\"datePublished\":\"2006-04-14T13:23:00+00:00\",\"dateModified\":\"2013-07-02T12:09:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/\"},\"wordCount\":176,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"keywords\":[\"Automation\",\"HTA\",\"VBScript\"],\"articleSection\":[\"Scripting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/\",\"name\":\"Logon Script Generator &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2006-04-14T13:23:00+00:00\",\"dateModified\":\"2013-07-02T12:09:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/scripting\\\/30\\\/logon-script-generator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Scripting\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/scripting\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logon Script Generator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logon Script Generator &#8226; The Lonely Administrator","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":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/","og_locale":"en_US","og_type":"article","og_title":"Logon Script Generator &#8226; The Lonely Administrator","og_description":"I've developed a new and free HTA, in the \"scriptomatic\" philosophy, that generates logon scripts. You can pick your drive and print mapping combinations, including checking group membership, and create a working VBScript logon script without having to write a single line of code. The tool reads in lists of available drive and printer UNCs...","og_url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/","og_site_name":"The Lonely Administrator","article_published_time":"2006-04-14T13:23:00+00:00","article_modified_time":"2013-07-02T12:09:36+00:00","author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Logon Script Generator","datePublished":"2006-04-14T13:23:00+00:00","dateModified":"2013-07-02T12:09:36+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/"},"wordCount":176,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"keywords":["Automation","HTA","VBScript"],"articleSection":["Scripting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/","url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/","name":"Logon Script Generator &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"datePublished":"2006-04-14T13:23:00+00:00","dateModified":"2013-07-02T12:09:36+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/scripting\/30\/logon-script-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Scripting","item":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},{"@type":"ListItem","position":2,"name":"Logon Script Generator"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":56,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/56\/logon-script-generator-1-1\/","url_meta":{"origin":30,"position":0},"title":"Logon Script Generator 1.1","author":"Jeffery Hicks","date":"October 10, 2006","format":false,"excerpt":"While testing some Techmentor demos with the Logon Script Generator, I found a few bugs. The tool allows you to use %username% in a file UNC (like \\\\file03\\%username% and it substitutes the appropriate VBScript to get the username. What I didn't take into account is if you wanted to have\u2026","rel":"","context":"In &quot;Scripting&quot;","block_context":{"text":"Scripting","link":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":93,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/93\/updated-logon-script-generator\/","url_meta":{"origin":30,"position":1},"title":"Updated Logon Script Generator","author":"Jeffery Hicks","date":"January 28, 2007","format":false,"excerpt":"Last fall I demonstrated an HTA I had developed to rapidly develop a user logon script with practically no scripting. You could map drives and printers based on group membership simply be selecting a group from a pre-populated drop down list. You could display a message to the user with\u2026","rel":"","context":"In &quot;Scripting&quot;","block_context":{"text":"Scripting","link":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":102,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/102\/itunes-lyrics-viewer-hta\/","url_meta":{"origin":30,"position":2},"title":"iTunes Lyrics Viewer HTA","author":"Jeffery Hicks","date":"February 20, 2007","format":false,"excerpt":"I've been toying around with the iTunes COM object (iTunes.Application) which gives you some pretty handy control over the iTunes application. I was particularly interested in having something display song lyrics so I developed an HTA that displays album art, artist and song information and lyrics. The tool will refresh\u2026","rel":"","context":"In &quot;Scripting&quot;","block_context":{"text":"Scripting","link":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":132,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/132\/updated-group-reporter\/","url_meta":{"origin":30,"position":3},"title":"Updated Group Reporter","author":"Jeffery Hicks","date":"March 4, 2008","format":false,"excerpt":"A few of my recent Mr. Roboto columns have been about group auditing. I first published an HTA that would report on group membership last December. Astute reader Matt V. found a bug with the way nested group memberships were being reported. Or in this case, not being reported. It\u2026","rel":"","context":"In &quot;Scripting&quot;","block_context":{"text":"Scripting","link":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":115,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/115\/vbscript-training-in-las-vegas\/","url_meta":{"origin":30,"position":4},"title":"VBScript Training in Las Vegas","author":"Jeffery Hicks","date":"August 24, 2007","format":false,"excerpt":"I will be doing a live 2 day VBScript class this fall in Las Vegas (Oct. 22 and 23). I'll be covering ADSI, WMI, HTAs, WSF and more. This is a class for experienced VBScripters who want to take it to the next level. This is a hands on class\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":111,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/111\/online-script-library-resources\/","url_meta":{"origin":30,"position":5},"title":"Online Script Library Resources","author":"Jeffery Hicks","date":"May 15, 2007","format":false,"excerpt":"If you're like me, you prefer not to re-invent the wheel when working on a scripting solution. You'd prefer to find a script written by someone else that accomplishes the same task(s). You might be tempted to jump immediately to Google or Yahoo. Before you do, let me give you\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}