![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Microsoft Windows xp error all errors and bugs related to Microsoft winxp error |
![]() |
|
Trying to run a file when a new user logs in
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 18,715
Join Date: Jan 2006
Rep Power: 10
IM:
|
I am trying to configure a PC to run a file 'just once' when a new user signs on. I do not want it to run everytime the user logs in. I have gotten it to run once for the current user but it will not apply for new users. I have tried using the runonce and runonceex keys in the registry under local machine but it doesn't work. The PC is on a domain, the profiles are local. Domain policy does not seem to be blocking this. Is there anything in Group policy that may prevent his? The file is a registry key and it has the correct permissions on it. It can be added manually once the user is logged on but it needs to be done automatically and just once. |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Administrator
Posts: 18,715
Join Date: Jan 2006
Rep Power: 10
IM:
|
I'm thinking along the lines of a hklm run key that would have a batch script like if not exist %userprofile%\Install.Flg goto Install goto :eof :Install : o you commands here that you would only want to run once::Finish it out with the following line: Echo Installed > %userprofile%\Install.Flg There would still be a query each logon, but the actual process would only occur the one time.. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|