Jump to content

Recommended Posts

Posted

Hi everyone, I'm just tidying up the RIS Images and etc for the roll out into the school, and was wondering (hoping) if someone could post me a copy of a startup / logon script with BGInfo inside it so I can implement into mine. I would ideally love one for when the PC reaches the logon screen, and then one for when the user eventually logs on.

 

I am slowly learning scripting, but this has taken the majority of my time.

 

Hope someone can help.

 

Cheers,

 

Simon

Posted

I'm going to have to be cheeky and bump this. Has anyone got BGInfo to load inside a VBS Script? Could someone PM or post on here the code for me please.

 

Sorry to pester and be a pain.

Posted
Set ObjShell = CreateObject("Shell.Application")
'Run BGInfo to update wallpaper
ObjShell.Run "\\yourdomain\netlogon\BGinfo\bginfo.exe \\yourdomain\netlogon\BGinfo\standardsetting.bgi /timer:0"

Posted
I'll keep a note of that too, got it running in an NT login batch file style logon script at the moment but the VB alternative would be ace!
Posted

OK, I could not get ChrisH's example to work. So a little bit of digging and this snippet works on my Windows 2003 Network.

 

Set objShell = CreateObject("Wscript.Shell")
objShell.Run "\\SERVER\Netlogon\BGinfo.exe \\SERVER\Netlogon\Config.bgi /timer:0", 1, True

 

Change SERVER to your servers name and also copy BGInfo.exe and any .bgi config files into there as well. All you can be tidy like me and have a BGInfo folder with it all in.

 

 

Thanks for the help all.

Posted

IIRC i just made it run locally. I made an msi to deploy the program (rather than using the startup script to copy it) and then put the launch command in the startup and logon scripts so that it was applied both when the user was logged on and the windows logon screen.

 

And also i seem to recall i had to make the config.bgi go in the users temp for logon, and in the windows temp for startup.

 

TBH thinking about it its messier than i thought lol, but effective and cuts network traffic and bypass' policies issues such as students not being able to use UNC paths.

Posted
Make sure its not saving to the windows directory too (it an option when you create the bgi)

 

Why? I've done that and it works fine for everyone :? I had some issues on 10 PCs where pupils couldn't write to the c:\windows\bginfo.bmp but I just changed the permissions on that file to allow it.

Posted
^ cause your users shouldnt have permissions to write to thw windows folder.
Posted
Theres something wrong somewhere if your network cannot resolve \\yourdomain\netlogon to one of the DCs netlogon shares.

 

I'm being thick again I know. What is the %yourdomain% command please? e.g. \\%yourdomain\netlogon etc.

Posted
^ cause your users shouldnt have permissions to write to thw windows folder.

 

Seeing as the users in question can't actually get anywhere near the windows folder I don't see it as an enormous worry. They can't actually access the windows folder other than to change the bginfo.bmp, which is a pretty specific file.

Posted

But you said that all but a few PCs allowed the pupils to write to it, the others you fixed by setting permissions for that specific file.

 

That leads me to believe that the windows dir is not denied to pupils, or else how did any of them write to it?

Posted

I used cacls in a logon script, no idea why it didn't work on some of them. :-(

 

In hind sight it might work out better to get it to write to a temporary folder somewhere, would have saved me fixing those 10 if nothing else !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...