Showing posts with label logon script. Show all posts
Showing posts with label logon script. Show all posts

Thursday, April 24, 2014

Add BGInfo to logon (Option#2)

Once you have the settings configured for your tastes, save the template by going to the File menu and clicking Save As.
SaveTemplate
The corresponding template can be saved anywhere but I just choose to store mine locally in the same location as the application.
In order to make BGInfo refresh the system information, you can create a batch file that launches on login.  To do this, open Notepad and type the following: “[Path to BGInfo App]\bginfo.exe” “[Path to template]\[TemplateName].bgi” /TIMER:0 /accepteula
The /TIMER:0 option forces the application to launch with the timer set to 0 seconds so the application GUI used earlier to configure the template never displays to the user.
The /accepteula flag prevents the user agreement splash screen from displaying during the first launch.
Save the new notepad file as a batch script.  I choose to just store this file in the same location as the application and template.



Local Computer Policy-->User Configuration-->Windows Settings-->Scripts(Logon/Logoff)-->Logon
I personally place my BGInfo directory in Windows\System32\BGInfo.

Here is what the bat file looks like:
C:\windows\system32\bginfo\bginfo.exe /ic:\windows\system32\BGInfo\logon.bgi /timer:0

Monday, April 14, 2014

Add BGinfo in login script in case you forget your computer info (Option#1)

Prepare the Background Wallpaper to apply via BgInfo:
You need to:

Remark: It is important that the location of output bitmap for BigInfo is a folder on which the user has Read / Write access. If this is not true, the bitmap wallpaper would not be generated. To change the location of the output bitmap, click on Bitmap > Location …. By default, User’s temporary files directory option is used – You can keep it as it is if you do not want to choose another location.



2.       Prepare a Logon Script to run BgInfo:
You can use the following script to run BgInfo:
reg add HKU\.DEFAULT\Software\Sysinternals\BGInfo /v EulaAccepted /t REG_DWORD /d 1 /f
\\Server\Share\Bginfo.exe \\Server\Share\template.bgi /TIMER:00 /nolicprompt
\\Server\Share\ is a shared folder on which you have the following files:
  • Bginfo.exe
  • Template.bgi: This is the BgInfo template your saved in the previous step
These commands can be saved in a .bat file.
3.       Apply BgInfo logon script using a Group Policy:
To apply BgInfo logon script using a Group Policy, proceed like the following:
  • Create a new GPO then go to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff) and then double-click on Logon

  • Select your BgInfo logon script and then click on OK

After that, you need to link your Group Policy to the Organizational Unit containing the administrative accounts on which it will be applied.

Taken directly from: http://social.technet.microsoft.com/wiki/contents/articles/20262.apply-bginfo-using-a-group-policy-logon-script.aspx