| 1. |
Solve : LOGONSCRIPT!? |
|
Answer» Hey everyone.. salmon trout: In the advanced properties for the task, the "schedule" tab has a Combo box LABELLED "Schedule Task ". Choose "User logon" in this box. This option will also be selected if you select "When I log on" in the scheduled task wizard.I dont think i've got that option.. here's a print screen: Quote from: gucciluc on August 20, 2010, 01:56:03 AM I dont think i've got that option.. Change it from "Once" to "User Logon".Dont have that option either.. here's another screenshot: again, i dont want that specific application to run on the server! i want it to run on the clients.. this is so tricky=( Quote from: gucciluc on August 20, 2010, 03:12:59 AM again, i dont want that specific application to run on the server! i want it to run on the clients.. Quote from: gucciluc on August 18, 2010, 04:20:53 AM I have a windows 2003 server running and in my logonscript i want to make an application run 1 time whenever a client logs in.. Looks like we got derailed into Task scheduler which probably won't suite your purpose. Let's think here. you want to make an application run every time somebody logs in. your logon script runs when somebody logs in. your logon script can contain instructions and can be changed. conclusion: start the program from your logon script. What do you have in the script now? Or do you need one? Here's some info about creating and editing logon scripts: http://technet.microsoft.com/en-us/library/cc758918%28WS.10%29.aspx i already have a logonscript.. im not a programmer so please dont laugh lol ill skip all the rest from my logon script and only paste the part i want to make it run once when my client logs in. its simply: start C:\program files\blablabla\bla.exe im sure there are ways to make it so that the above command runs only 1 time.. but its very hard.. Thanks very much for ur help, now lets get going, any more idea's? That should work... the logon script should only EXECUTE when somebody is logging on. Quote from: gucciluc on August 20, 2010, 03:22:53 AM "C:\program files\blablabla\bla.exe" Using Task Scheduler, this is the scheduled task thats runs once when any user logs in. No need for a batch script. By the sounds of it, you want the action to happen on the first time a user logs in, but not on subsequent logins, is that right? If so, you could look at using Group Policy and things like the RunOnce registry key. Or you could make a "flag" that the logon script looks for to determine if it has run or not. Would you need it to run once per day / week / month etc, or just the once? |
|