

InterviewSolution
Saved Bookmarks
1. |
Solve : LOGONSCRIPT!? |
Answer» <html><body><p>Hey everyone..<br/><br/>I got a question.<br/><br/>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..<br/><br/>Can anyone help me out? I have been looking everywhere..<br/><br/>Thanks in advance.Use Task Scheduler to run the application, and choose as the task trigger "Whenever a user logs in".<br/>Group Policy is probably what you want to use.<br/>In group policy editor, look for User Configuration -> Policies -> Windows Settings -> Scripts (Logon/Logoff)<br/>From there you can input what scripts you want to run.thanks for the reply!<br/><br/>I already have a script.. the problem is, in my script i dont know how to make my server run a specific application to run only 1 time for each user when they log in..<br/><br/><br/>appreciate any help!We assumed you already had the script and just wanted it run automatically. The suggestions from Salmon Trout or myself would do that.<br/> salmon trout:<br/>there is no task trigger in server 2003 task scheduler.. for what u said (Whenever a user logs in)<br/><br/><br/><br/>Michaewlewis<br/>I can set it in group policy but its gonna be a "loop" my script is going start everytime the client logs in..<br/>in my script in want a specific command to run only once on each client. i dont want it to run everytime the client logs in..<br/>I know its a tricky problem, but i still have hope of <a href="https://interviewquestions.tuteehub.com/tag/fixing-773139" style="font-weight:bold;" target="_blank" title="Click to know more about FIXING">FIXING</a> it lol<br/><br/>Any help is appreciated people, come on think with me! =( Quote from: gucciluc on August 20, 2010, 01:05:27 AM</p><blockquote> salmon trout:<br/>there is no task trigger in server 2003 task scheduler.. for what u said (Whenever a user logs in)<br/></blockquote> <br/>In the advanced properties for the task, the "schedule" tab has a Combo box <a href="https://interviewquestions.tuteehub.com/tag/labelled-1065277" style="font-weight:bold;" target="_blank" title="Click to know more about LABELLED">LABELLED</a> "Schedule Task ". Choose "User logon" in this box.<br/><br/>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..<br/><br/>here's a print screen:<br/> Quote from: gucciluc on August 20, 2010, 01:56:03 AM<blockquote>I dont think i've got that option..<br/><br/>here's a print screen:<br/><br/></blockquote> <br/>Change it from "Once" to "User Logon".Dont have that option either..<br/>here's another screenshot:<br/><br/><br/><br/><br/>again, i dont want that specific application to run on the server! i want it to run on the clients..<br/><br/>this is so tricky=( Quote from: gucciluc on August 20, 2010, 03:12:59 AM<blockquote>again, i dont want that specific application to run on the server! i want it to run on the clients..<br/></blockquote> <br/> Quote from: gucciluc on August 18, 2010, 04:20:53 AM<blockquote>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..<br/></blockquote> <br/>Looks like we got derailed into Task scheduler which probably won't suite your purpose.<br/><br/>Let's think here.<br/><br/>you want to make an application run every time somebody logs in.<br/><br/>your logon script runs when somebody logs in.<br/><br/>your logon script can contain instructions and can be changed.<br/><br/>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:<br/><br/><a href="https://technet.microsoft.com/en-us/library/cc758918%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc758918%28WS.10%29.aspx</a><br/><br/><br/><br/>i already have a logonscript..<br/>im not a programmer so please dont laugh lol<br/><br/>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.<br/><br/>its simply:<br/><br/>start C:\program files\blablabla\bla.exe<br/>im sure there are ways to make it so that the above command runs only 1 time..<br/><br/>but its very hard..<br/><br/>Thanks very much for ur help, now lets get going, any more idea's?<br/>That should work... the logon script should only <a href="https://interviewquestions.tuteehub.com/tag/execute-979162" style="font-weight:bold;" target="_blank" title="Click to know more about EXECUTE">EXECUTE</a> when somebody is logging on. Quote from: gucciluc on August 20, 2010, 03:22:53 AM<blockquote>"C:\program files\blablabla\bla.exe"<br/></blockquote> <br/>Using Task Scheduler, this is the scheduled task thats runs once when any user logs in. No need for a batch script.<br/><br/>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?<br/><br/>If so, you could look at using Group Policy and things like the RunOnce registry key.<br/><br/>Or you could make a "flag" that the logon script looks for to determine if it has run or not.<br/><br/>Would you need it to run once per day / week / month etc, or just the once?</body></html> | |