Jump to content

Recommended Posts

Posted

Hi.

 

Got a confusing one for you now. Trying to setup BGinfo to show the computer name at the logon screen. I'm eventually going to set it up using a logon script, but now I'm just trying to test it out.

 

What happens is: I run BGinfo from the command line using a modification of Michael's script:

 

@ECHO OFF

REM * Sets Logon Desktop Background *

copy \\server\netlogon\BGINFO\BGINFO.EXE %SYSTEMROOT% /Y

%SYSTEMROOT%\bginfo.exe /I"\\server\netlogon\bginfo\computer.bgi" /timer:0 /nolicprompt

 

It runs, generates the bginfo.bmp and sets it as the background, but it is compleatly blank. It only has the green background we set, but no information, not even the static text I entered.

 

I am very puzzelled by this one. Its obviously not a permissions issue, and the script is deffinately running because it creates the file.

 

Any thoughts would be very much appreciated.

 

Thanks,

 

David

Posted

%SYSTEMROOT%\bginfo.exe /I"\\server\netlogon\bginfo\computer.bgi" /timer:0 /nolicprompt

 

Should be:

/I:\\server\netlogon\bginfo\computer.bgi" (colon after the I)

 

We don't bother copying bginfo to the local machine; we just run it from the netlogon share using

%logonserver%\netlogon\bginfo_folder\bginfo.exe

Posted
Should be:

/I:\\server\netlogon\bginfo\computer.bgi" (colon after the I)

 

That's incorrect, there should be no colon there.

 

---------------------------------------------

 

The problem is you're missing the first line.

 

[i]if exist %systemroot%\bginfo.exe goto BGINFO[/i]
copy \\server\netlogon\BGINFO\BGINFO.EXE %SYSTEMROOT% /Y
%SYSTEMROOT%\bginfo.exe /I"\\server\netlogon\bginfo\computer.bgi" /timer:0 /nolicprompt

 

The second two lines are fine, although you shouldn't need the /nolicprompt

Posted

Thanks for your help guys.

 

I still don't know why it did it, but recreating the .bgi file seems to have solved it. Maybe it was because I created it on Vista and tried to run it on XP. Who knows!

 

Turns out it works with or without the colon.

 

@Michael

 

This isn't the finished script that will be going into the GPO, I just used it to test. My final script will be VBS and will determine the screen resolution and copy the relevent desktop background to match.

 

David

Posted
My final script will be VBS and will determine the screen resolution

 

You don't need to do this. Double click your .bgi file and it should open within BGInfo itself. Click the Background button, then half way down you'll see an entry called 'Wallpaper Position'. Set it to Stretch and it will work for any resolution for you :)

Posted
You don't need to do this. Double click your .bgi file and it should open within BGInfo itself. Click the Background button, then half way down you'll see an entry called 'Wallpaper Position'. Set it to Stretch and it will work for any resolution for you :)

 

Except that will distort the image for widescreen monitors!

Posted
Yup I did a VBS to set a different res bitmap for widescreens, I used the room OU as our widescreens are all in the same room - works a treat :cool:

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...