PcExpert Posted April 6, 2006 Posted April 6, 2006 Hello, Normally a script stops running when a user logs out. But I want the script to continue, even if the user logs out. But how can I do that?
BigDod Posted April 6, 2006 Posted April 6, 2006 Hello, Normally a script stops running when a user logs out. But I want the script to continue, even if the user logs out. But how can I do that?I do not think you can. I am sure that someone has to be logged in for a script to run. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
PcExpert Posted April 6, 2006 Author Posted April 6, 2006 But can't you even open or close a CDROM drive if there's nobody logged in?
BigDod Posted April 6, 2006 Posted April 6, 2006 But can't you even open or close a CDROM drive if there's nobody logged in?Try it and see. All you have to do is compile your script, schedule it to run in 5mins time then log out. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
MHz Posted April 7, 2006 Posted April 7, 2006 But can't you even open or close a CDROM drive if there's nobody logged in?If you execute your script as a GPO startup/shutdown script then yes. There is certain precautions of what a script can do or not. Else those spyware and virus folks would demolish our systems (and they would).
PcExpert Posted April 7, 2006 Author Posted April 7, 2006 How to excute my script like a GPO startup/shutdown program?
Moderators SmOke_N Posted April 7, 2006 Moderators Posted April 7, 2006 If you execute your script as a GPO startup/shutdown script then yes. There is certain precautions of what a script can do or not. Else those spyware and virus folks would demolish our systems (and they would).How to excute my script like a GPO startup/shutdown program?I got the feeling from MHz post, if you don't know, and don't do your own homework on the situation, then you won't know kind of thing. He gave you the bone, now it's time to dig . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MHz Posted April 7, 2006 Posted April 7, 2006 If you type gpedit.msc into the run box then choose Scripts(Startup/Shutdown) under the Computer Configuration -> Window Settings branch then you can setup a Startup/Shutdown script. This will run a script under the system account. This is accesed under XP Pro.
Bert Posted April 7, 2006 Posted April 7, 2006 The script would either need to run as a service, or you could try the task scheduler. I've never tried to use the task scheduler to do what you are attempting, so you would need to check it to see. If you want information on running a script as a service, you will need to do a search for it. Microsoft has a tool, but I don't remember the name of it. The Vollatran project  My blog: http://www.vollysinterestingshit.com/
Moderators SmOke_N Posted April 7, 2006 Moderators Posted April 7, 2006 I got the feeling from MHz post, if you don't know, and don't do your own homework on the situation, then you won't know kind of thing. He gave you the bone, now it's time to dig .If you type gpedit.msc into the run box then choose Scripts(Startup/Shutdown) under the Computer Configuration -> Window Settings branch then you can setup a Startup/Shutdown script. This will run a script under the system account. This is accesed under XP Pro.Or I could be wrong (looks like he has a bag of bones )... Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MHz Posted April 7, 2006 Posted April 7, 2006 Or I could be wrong (looks like he has a bag of bones )... Well, to script from a users account into the system/default users account then yes. Just bones perhaps, but system protection is a priorty from preventing a script from doing too much. Especially when a system is not logged on.
Uten Posted April 7, 2006 Posted April 7, 2006 srvany,xyntservice, GUI Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now