Link to home
Start Free TrialLog in
Avatar of SirHW
SirHW

asked on

How to run bginfo.exe logon script with "User" level credentials?

My domain users have the default "User" group rights.  I have thrown together a logon script that runs bginfo.exe, using resources from this site, and writes the info created to a new desktop BMP.  When you have admin priveleges it runs just fine.  However, the script won't run for my users.  They do not have write priveleges to the Windows directory.  Any ideas?  I'd rather not give them write priveleges to the Windows directory if possible.
@ECHO OFF
REG ADD "HKCU\Software\Microsoft\Command Processor" /V DisableUNCCheck /T REG_DWORD /F /D 1
SET LOCALDIR=c:\bginfo
Rem ----- Check if directory exist  -----
Rem ----- and copy files if needed -----
IF NOT EXIST %LOCALDIR% MKDIR %LOCALDIR%
IF EXIST %LOCALDIR%\bginfo.exe GOTO ALRIGHT
@ECHO OFF
COPY \\168.168.177.1\Misc\bginfo.exe %LOCALDIR%
@ECHO OFF
COPY \\168.168.177.1\Misc\default.bgi %LOCALDIR%
 
:ALRIGHT
@ECHO OFF
%LOCALDIR%\Bginfo.exe \\168.168.177.1\Misc\default.bgi /timer:0 /NOLICPROMPT /SILENT
@ECHO OFF

Open in new window

Avatar of Philip Elder
Philip Elder
Flag of Canada image

What we do:
 Run BGInfo on a workstation, customize it as we need then save the custom BGI file.
 Copy both BGInfo.exe and the custom file to the GPO location under SysVol.
 Set the BGInfo.exe to run via GP startup script with a pointer to the BGI file.

If you need an image, you can copy it in too.

We do this to eliminate any tampering with the custom BGI file, or even the BGInfo file as SysVol is Read Only to the users.

Philip
ASKER CERTIFIED SOLUTION
Avatar of Philip Elder
Philip Elder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SirHW
SirHW

ASKER

Bginfo.exe, at least when instructed to write info to the desktop, actually creates a new desktop BMP and throws it in the Windows directory.  My users can't write to the Windows direrctory.  Forgive me if i missed something, I am no domain admin obviously.  And thank you for your solution.

Also, I have to use this as a logon script as I want to paint new data on each user logon (K-12 environment), as opposed to a system startup script.
Avatar of SirHW

ASKER

Hmm, if that GP option works for XP users, I'm home free I think.  Do you have a specific location in GP for that setting?
Avatar of SirHW

ASKER

Changed the bgi to store the BMP in the user's application folder.  Works like a charm.
GPO would be linked to an OU created with the client systems that need it. The script would be set into that GPO.
Philip
Oops ... yes, it works for both XP and Vista clients.
Philip