I have seen similar threads here and on the net, but I think my question is slightly different than what I can find...
I have a script that runs perfectly when logged in with a service account I created specifically to run this script. But when I schedule it to run it hangs when trying to launch IE (the first part of my script). Without being logged in with that account I can watch the processes with task manager and see the processes running, but the script never finishes.
I want to be able to run this script without needing to be logged in at all or even have the account be locked all the times. Is this possible? Or do I have to have the user account logged in?
Any help would be greatly appreciated!
You will not be able to start IE without logged in user. Pls, provide more information why you need to start IE at all, and maybe we'll be able to come with another solution.
If your task is to download something from somewhere, investigate using curl and wget. Both of these programs are ported to windows and provide powerful options to provide a username and passwords, create headers, etc. I would say that curl is the way to go, as it's specifically written with scripting in mind.
I would recommend rewriting the script in a language where you can access websites without automating a browser - for example in Perl there is WWW::Mechanize, and you can do similar things in PowerShell using HttpWebRequest.