{"id":1544,"date":"2022-04-15T10:59:23","date_gmt":"2022-04-15T15:59:23","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1544"},"modified":"2022-04-15T10:59:23","modified_gmt":"2022-04-15T15:59:23","slug":"bginfo-auto-start-all-users","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2022\/04\/bginfo-auto-start-all-users\/","title":{"rendered":"BGInfo Auto Start All Users"},"content":{"rendered":"\n<p class=\"has-black-color has-text-color\">I&#8217;ve used BGInfo plenty of times in my past &#8211; it&#8217;s been a pretty good tool at providing information to technicians in order to assist with end-users&#8217; woes. But overall I&#8217;ve only really used it on servers &#8211; it&#8217;s been helpful to color coordinate based on PRODUCTION vs non-production systems (eg RED and BOLD lettering for the hostname).<\/p>\n\n\n\n<p>I also had a login script that would automatically run BGInfo from our sysvol scripts folder on users&#8217; workstations. However, due to remote users &#8211; especially in this Covid time &#8211; the login script would not run\/update accordingly. I needed to find a new way.<\/p>\n\n\n\n<p>At first I looked at registry edits and tried to run in HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run, but with my syntax of:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"C:\\scripts\\BGInfo\\workstation.bgi \/timer:0 \/silent \/nolicprompt\"<\/pre>\n\n\n\n<p>On the workstation BGInfo would open with a default settings rather than my workstation.bgi ones. I&#8217;m fairly certain I had the bgi associated properly, but I didn&#8217;t look further into it as I went in a different direction: Scripts.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Navigate to the all-users Startup<ul><li><code>C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\<\/code><\/li><\/ul><\/li><li>Create a file called hidden.vbs and populate with<ul><li><code>Set MyScript = CreateObject(\"WScript.Shell\")<\/code><\/li><li><code>MyScript.Run \"c:\\windows\\bginfo\\bginfo.bat\", 0, False<\/code><\/li><\/ul><\/li><li>Copy the BGinfo64.exe and associated configuration.bgi to<ul><li><code>C:\\Windows\\bginfo\\<\/code><\/li><\/ul><\/li><li>Create a file called bginfo.bat in this same directory above<ul><li><code>@echo=off<\/code><\/li><li><code>reg add HKU\\.DEFAULT\\Software\\Sysinternals\\BGInfo \/v EulaAccepted \/t REG_DWORD \/d 1 \/f<\/code><\/li><li><code>pushd %~dp0<\/code><\/li><li><code>pushd c:\\windows\\bginfo<\/code><\/li><li><code>cls<\/code><\/li><li><code>Bginfo64.exe configuration_client.bgi \/TIMER:00 \/nolicprompt<\/code><\/li><li><code>popd<\/code><\/li><li><code>exit<\/code><\/li><\/ul><\/li><li>Log off\/Log on to see the changes<\/li><\/ul>\n\n\n\n<p>The only issue with this avenue is that if we ever decide to update our .bgi configuration file, we&#8217;d have to push updates to all systems to have them reflect the changes. Good thing for RMM tools!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve used BGInfo plenty of times in my past &#8211; it&#8217;s been a pretty good tool at providing information to technicians in order to assist with end-users&#8217; woes. But overall I&#8217;ve only really used it on servers &#8211; it&#8217;s been helpful to color coordinate based on PRODUCTION vs non-production systems (eg RED and BOLD lettering &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2022\/04\/bginfo-auto-start-all-users\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">BGInfo Auto Start All Users<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1544","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1544"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1544\/revisions"}],"predecessor-version":[{"id":1545,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1544\/revisions\/1545"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}