mardi 24 février 2015

Update current logged in user, user name with a exe file

I am needing some help. I need to update the username of the current logged in user of the pc.


the username would be formatted like the following. tcy.sales131.kelly


TCY = Store location (this would be hard coded) or based off the default gatway


sales = would be the department (hard coded)


131 = last 3 digits of the users ip address. Kelly = employees name


I am doing this with a bat file right now. It works all right..... the problem i have with it is that we deploy the file out over the network and when users see the bat file pop up with it asking for there name the just exit it out.


what i would like to do is have a pop up message (like this) that appears once it has been deployed asking the user for there name. They would not be able to move or exit this window out till they entered there name. I would probably want to put our company logo and a message on there just so they know it is us and it is safe.


once they enter there name it would then update the current logged in user name to the new one (ie tcy.sales131.kelly)


is this something that can be done with a bat file or an exe file. How hard would this be to do? I know nothing about programming a exe file and just enough to be dangerous with a bat file


Aucun commentaire:

Enregistrer un commentaire