Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Windows background picture according to user rights

Status
Not open for further replies.

grofaty

IS-IT--Management
Jan 16, 2003
370
SI
Hi,
Is there any way on Windows XP SP2 I could set desktop background picture for each user rights. For example if Joe logins with User rights there would be a picture with text: "Joe as User". If Administrator changes Joe rights from User to Administrator I would like to change a background picture with text: "Joe as Administrator". How to do this?
Thanks,
Grofaty
 
I suppose you could do it using a script, where it checks the permission level of the user and runs a function accordingly?

Carlsberg don't run I.T. departments, but if they did they'd probably be more fun.
 
Depending how many users you have, you could always set a background for each user? I would assume that only a few people can change user rights, so just get them to change the image with the rights!!

I will look into other ways for you

Hope it helps

Gary
 
I had a quick google on the subject of scripts to get user rights but with no success. I did however have a mini-brainwave!!

It is possible through VB, and therefore it might be possible through VBScript, to get the username of the current user logged on.

If you used this in conjunction with a text file listing the user names of all users on the network and their user rights level, you could display an image on the desktop which reflected their permissions.

The function is:
Code:
GetEnvironmentVariable("USERNAME", strUserName, Len(strUserName))

The variable strUserName is declared as a string of 255 characters.

Of course this could lead on to more personalisation of the users desktop. I have written active desktops for a couple of places that displayed programs and images based on information from a single text file.

Hope it helps

Gary
 
Ok ok so you gave me the idea for it!!!!

But I did the leg work!!!!
 
Hi,
executing code:
Code:
GetEnvironmentVariable("USERNAME", strUserName, Len(strUserName))
returns error message:
"Cannot use parenthleses when calling a Sub"

Can someone post more detailed info. I am not an expert of VB Script.
Thanks,
Grofaty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top