Launch of a scheduled task

I have a business registration application that I launch a scheduled task at regular intervals so that I can record precisely what I'm getting.

I recently thinapp had this request and now when the scheduled task starts, I see the toaster thinapp and then nothing.  I can see the processes running in the Task Manager, but I do not see the application gui/window (of course, there's a twist, see below *).

So I thought that maybe there is something wrong with my thinapp so I tried another random application I'd thinapp would and same problem.

All confirm that this also happens for them, or it's just me.

Here's what I've tested so far.

start notepad.exe from a schedule task works as expected.

launch of my scheduled task thinapp does not want to show her face

* However

If I create a task of using command line to the interactive command-line (at 09:00 / interactive "C:\Prog...\thinapp'd app.exe") it works!

But, if I go and edit this task through the graphical interface, the task stops running.

So I can create a task that works, the only problem is that I can't put a timetable advanced assistance or schtasks.

If someone else can replicate this to save my sanity, it would be very appreciated.

I was able to reproduce the behavior you describe in your original post. What I found was:

SOME ThinApped which are launched from a scheduled task programs have problems with GUI when you do not provide a password for it. It seems strange, but it seems that it is the cause.

When I did not provide a password, I noticed that some programs ThinApped does not display its GUI although they run (as you can see in the Task Manager).

On another application that I tested, it showed its GUI, but it covers the entire screen and it did not show its title/tool bars.

This behavior doesn't happen with every ThinApped program, just with some of them.

The workaround for this weird behavior is:

-Provide a password for your scheduled task.

-Turn off the checkbox "run only if connected.

Tags: VMware

Similar Questions

  • Scheduled task runs only if connected (W2k3 server)

    Hello

    This was bugs me for a week now: W2k3 server a customer has a problem to launch a specific scheduled task.

    The task calls first on an application that generates files; Excel is open, then a macro is executed, which saves more than some files; Finally, these files are copied to a UNC path to another server.

    -The permissions on all the files are OK (account used is domain administrator)

    -"Run only if connected" is NOT selected

    -But: Excel displays apparently the first home screen whenever it is opened with this account.

    Any advice would be greatly appreciated!

    Hello Quip666,

    Since you are on a domain, I recommend you to repost your question with the professionals at Technet Windows Server Forum where one of the experts in this area would be better suited to offer you a solution. Thankis!

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Scheduled task runs does not correctly in the Windows XP machine.

    Original title: Troubleshoot the scheduled task.

    I have a scheduled task scheduled to run at 2:30 every night.  The time of execution scheduled next is 02:30 March 2, 2011.  I was not able to know what prevents it from running.  After a diagnosis, I'm sure it's not the exact command, but rather the setting in the scheduled task.  However, this is just in case: cmd /c start 'scan MalwareBytes' / low/b "C:\Program Malwarebytes ' Anti - Malware\mbam.exe" / scan-complete - log - cancel

    I have read many web pages on the resolution of the scheduled tasks, but the principal that I follow is http://support.microsoft.com/kb/308558.  Here is what I checked:

    • The scheduled task folder shows a 27 February 2011 than last time to run
    • Last log written by the application is February 27, 2011, confirming the last Run Time
    • Status column is empty
    • The application runs if I right click on the scheduled task and select run
    • I used 'cmd' and 'start' in a similar way to successfully launch a low priority job in different scheduled task launching a different application of scanning
    • Application logs for all three of my tasks planned for antimalware scans different show that there is a lot of room between the task durations
    • If I right click on the task failed on demand, choose run and wait for the end, success is indicated by a new log file written by the application and a "Last Run Time" update in the scheduled task folder
    • c:/Windows/SchedLgU.txt confirmed that the scheduled task that failed did not run since February 27, 2011, while other scheduled tasks has been run.  After a right click and running, c:/WINDOWS/SchedLgU.Txt shows a successful run.

    All my regular scans are set to run if the computer is idle, and I'm sure that didn't prevent this idling at this hour there.  The scheduled task failed is set to run under an administrator account even if this user is not signed.  He was placed this way well before the last run time of the February 27, 2011, and other tasks are also implemented this way (with success).  Is there anything else I can try?

    I think I found the problem.  I unchecked the option somehow to wake up in order to perform the scheduled task.  Thank you all for your answers.

  • Win XP Pro - scheduled tasks

    I need more information about scheduled tasks.

    My backup software does not work. I get error logs.

    I need more examples to make it work.

    This isn't a lot of information to go.

    Here are a few notes unattractive, I have about scheduled tasks that can help you get started.  One day I have to make it more presentable:

    It is strongly suggested that the task entrusted to a user with a password (using the administrator account is not recommended), so create a new user with a password just for tasks or add a password to your account, if necessary.

    You can temporarily assign a password for test and worry about that later. This time just to see if your ST mechanism works correctly.

    If you configure the task to use the same account that you log in, you'll usually be able to see the task to launch and start running while you use the computer.  It is useful to see the task run in front of your eyes.

    If you configure the task to use another account that connect with the task must run again (and you see it), but for the test, use your own login account and then change the account of the task uses later when you're sure that it all works.

    If you try to create a new task by using an account that does not have a password, you will get this error trying to create the task:

    The new task has been created, but may not work because the account information could not be set.

    The specific error is 0x80070005: access is denied.

    Still, the task will be created, but it will not run correctly.

    Is there a way to get around that, but get this working first for if ensure your mechanism of the scheduled task is not afflicted.

    Stop the Task Scheduler service. Click on start, settings, Control Panel, administrative tools, services and locate the Task Scheduler Service and stop it.

    Remove or rename the scheduled task probably cluttered log file that is usually found here:

    c:\Windows\SchedLgU.txt

    Restart the Task Scheduler service to create a new journal (it's just a text file) and verify that a new log file has been created and that it looks like this:

    "Task Scheduler service".

    Started on 01/01/2010 06:26:43

    [* The most recent entry is above this line *]

    Navigate to the folder c:\windows\tasks to see all your tasks. Expand the Explorer window you can see all the columns interest by dragging the column headers for each column.

    The next columns Run Time, last run time, status and latest results are interesting. You can also click Advanced and view the log file of ST from here.

    Choose to add scheduled task.  Create a new task to run once command prompt now.  If you do not have a PW on your account, you will get an error while trying to create it (more on that later).  The new task will still be created, but it will never run. Assign a password to your account, at least temporarily, to test your mechanism of the scheduled task.

    After you have assigned your login password account temporarily, adjust the new scheduled task, you created to run the command prompt so that it uses the same account and password used to log on to Windows and the task must configure and save without error.

    Right-click the new task command prompt and choose run and a command window should open immediately.  If this isn't the case, something is wrong.  If so, your mechanism is healthy.  Examine the log file to view your results.

    Given that the task of the command prompt is configured to run under your account, that is why you will see the command prompt window open immediately.  If you have configured the task to use a different account (with a password of course), the task of the command prompt would run under this name of users (not your own) and you wouldn't open the command prompt window, but the task would be running and you can see in the Task Manager.  This way you know your ST mechanism works.

    Now that you know how to execute tasks manually, how to observe the columns of information, to know how to remove the log file, you can apply this knowledge to your new task.  Make sure that the Task Scheduler service is running again if you don't stop it to remove the log during the test.

    Assign properties to your new task or annoying that match your login (at least for testing), observe the columns and the newspaper.  If your task fails to run manually, errors in the log file are the clues to find out what to do next.

    Always try to return to the simple task of command prompt that you created to make sure that the ST mechanism working properly - before you know for sure that one works.  Then apply your knowledge to get your new task to work.

    You can edit the task properties to use your login account and password since you know it is working on the task from the command prompt.  If you change your new task and choose to run it and logged in with the same account, you should see your Execute task.  When you are satisfied, it is not working properly, you probably don't want to interrupt you while you are connected, so change it back the properties to use another connection to the user account that has a password that you have created just to run your scheduled tasks.

    Tasks that are created by other applications will use the special account NT AUTHORITY\SYSTEM.  This account has no password and is typically used for system-oriented tasks, but you will only be able to see the performance when you use the Task Manager.

    If you try to manually run a ST as you see it open any window to run, but you will see running in Manager tasks and in the log file.  If you want to see actually run, change the properties to use your account and password, solve the task, and then change the properties back and test it again.

    These types of tasks can work very well, but you can tell by the log file, looking in the Task Manager, or columns of status in the folder tasks.  If you temporarily modify the task to use the same account and password you use to log in, you will be able to watch him run.

    Once you understand how to get a simple task like working of command prompt and you know where is the log file and how to edit the task properties, you can work on your new task or afflicted and make it work.

    There are ways around some of the restrictions and requirements, but it is best to only use what you have and use wisely.

    A common problem with scheduled tasks is that there is no password for the account used to create the task or people expect to 'see' the task running when it is not assigned to their connection and when theydon can't see anything and think that the job is not running.  This isn't how it works.  The log file and the Task Manager will tell you what is actually happening.

    If you're used to not having a password on your account because you do not have to enter a when you login or you are the only user on your system and decide to start using some mesh, it is sometimes easier to simply assign a password for your account, or just create a new user account XP with a password and use it for the m.  You can assign a password to your account and still have your system set in place to never ask for a password when you sign in, but you must remember your password - or set up a new account just for your scheduled tasks.

    Do, or do not. There is no test.

    I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • Scheduler task does SyncToy as expected but Will Run On Demand

    Vista Home Premium (32 bit), SnycToy 2.1

    I tried to implement a daily local sync automated using the Task Scheduler and SyncToy.  I put in place a task in Task Scheduler task instructions of SyncToy.  I am using the command line option (..) (SyncToyCmd.exe option' - R) for all pairs of batch record.  I can run the synchronization to the application successfully, but the scheduled synchronization does not work.

    • The task is enabled.
    • I delivering the option 'run with highest privileges '.
    • There is no set of conditions
    • I am the only user on this computer and I am the administrator.  The computer has a password.

    As time passes, the "next time" recovering the next day, but the Sync does not work and there is no error generated.  It appears as if he had run, but cmd window doesn't pop up (as it does when running on-demand) and files are not synchronized.  Nothing happens.

    A test, I chose to program using the... SyncToy.exe file (without the - R) argument and the Scheduler will be launching the program successfully, but of course, is not sync.

    Any ideas why Task Scheduler is not running the... SyncToyCmd.exe as expected?  Any help would be appreciated.

    Thank you!

    Hello

    Please check with the Experts in the Forums of SyncToy

    SyncToy - Forums
    http://social.Microsoft.com/forums/en-us/SyncToy/threads/

    Happy holidays.
    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Change the time for the scheduled task, I added

    I created a schedular system file (.vbs) that supports the backup of the database of one of my application. I added this file to the scheduled task. I put the time of execution to 15:00 daily, now I want to update at the time of execution of the task sacheduled. How can I do? I use Windiws 7 Home premium.

    Hi Aurélie Rozier,.

    Click on the Start button and type "Calendar" in the search box. The option tasks planning must appear in the search list. Click (or double-click) on this option to launch scheduled tasks. When the window tasks planned opens leaves the Task Scheduler list fill out and then look to the bottom of this list for planning thye name, that you want to change. When you have found, right-click on it and choose Properties. In the Properties window, click the triggers tab and then click Edit at the bottom of the special editing window. You should be able to change the time from there.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Desktop Experience: Web:http://www.winuser.co.uk;  Web: http://xphelpandsupport.mvps.org;  Web: http://vistasupport.mvps.org;  Web: http://www.silversurfer-guide.com

  • How to get a scheduled task to run when disconnected, but do not run hidden

    Under XP, I had an installation where I created a scheduled task to open a playlist of music at 07:00 every day which was basically I woke up.  In the evening, I would put my computer to sleep and in the morning, the scheduled task would automatically wake the computer, log in my user account and open the playlist with my music program.   In Windows 7, it's is not possible because:

    1. If I put the "execute task if the user is connected or not," the music program opened by the task is hidden, and I can't control or turn off the music player, because it is hidden.

    2. If I put the task 'Run only when the user is connected', the music player is is more hidden when it is launched, but it does not work in my situation because my computer is configured to automatically disconnect when it goes into sleep mode, and which is usually the case when I want the scheduled task to run.

    It worked perfectly well under XP but under Windows 7 it is broken, because, for some reason if a scheduled task is set on "Run If the user is logged in or not ', the window opened by the scheduled task is always hidden.  This was not the case in XP.  Why is this the case in Windows 7, and is there a way to make it work like it did in XP?

    It's a real shame, because it worked perfectly under XP without the need of any additional software overhead.

    It is the same for Vista. The cause is SECURITY!

    Learn more about it here:
    http://windowsteamblog.com/Windows/b/developers/archive/2009/10/01/session-0-isolation.aspx

    André

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • SQLcl throws the Exception on start and stop operating within the scheduled task

    I'm on Windows Server 2012 R2 runs a script TakeCommand (jpsoft.com) as a task scheduled using SQLcl - 4.2.0.15.177.0246.

    The script is invoked, when the account (with administrative privileges) who runs the scheduled task is not connected to the machine.

    The scenario is as follows:

    • servers both windows ServerA and ServerB (virtual servers)
    • ServerA has a SAN connected directly (as E drive)
    • ServerB remotely accesses drive E on ServerA and maps in drive E (guest ServerB cmd > net use e: \\ServerA\e)
    • the problem occurs on server b.

    Corr 04/09/2015: the SAN is not the cause of the errors/exceptions - it's just that the user who runs the scheduled task is not logged on and therefore has no APPDATA

    When SQLcl is called, the following lines are recorded... (italics: private information, "BOLD": SQLcl output not visible when the user connects while work is carried out at the request)

    03/09/2015 12:16:41.979 to connect to the jdbc URL ... (this output is to the batch calling SQLcl - everything below is SQLcl or SQL script)

    Sep 03, oracle.dbtools.raptor.console.MultiLineHistory load 2015 12:18:05

    SEVERE: HIST-013 APPDATA is null

    Sep 03, oracle.dbtools.raptor.newscriptrunner.commands.net.NetEntries load 2015 12:18:55

    SEVERE: NET-013 APPDATA is null

    Sep 03, 2015 12:18:55 oracle.dbtools.raptor.newscriptrunner.commands.net.NetEntries save

    SEVERE: NET-013 APPDATA is null

    03.09.2015 12:18:56: updated information on what will be done

    0 lines merged.

    0 lines merged.

    03.09.2015 12:19:15: updated information on what will be done

    0 lines merged.

    Exception in thread "cleansing" java.lang.NullPointerException

    in java.io.File. < init > (File.java:277)

    at oracle.dbtools.raptor.newscriptrunner.commands.alias.Aliases.save(Aliases.java:132)

    at oracle.dbtools.raptor.newscriptrunner.commands.alias.Aliases.save(Aliases.java:128)

    to oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli$ 1.run(SqlCli.java:356)

    In addition, that everything works fine... the script is executed as planned, as expected, the queued files are created...

    So what I am doing wrong?

    Best regards, Peter

    Message geändert durch stueckl - information server added

    Message geändert durch stueckl - information server deleted - it's a general problem

    If we were talking about developer SQL itself rather than SQLcl, then the solution is simple... you can always force your user settings to a folder accessible in arbitrary writing using the ide.user.dir environment variable just add something like this line to the file sqldeveloper.conf to your installation:

    AddVMOption - Dide.user.dir =

    SQLcl, however, is hard-coded dependency on APPDATA in Windows (and user.home on Linux).  May not be feasible in your case, but in some cases simple, APPDATA can be overridden in the script that launches the SQLcl and the NetEntries and xml SQL history files are read from / written to this file.

    For example: value APPDATA = C:\Temp

  • Photos with scheduled tasks

    Hi all

    I'm trying to find a script that will create a scheduled task to take snapshots of a text file at a specific time. The file of text being the names of the virtual machines.

    Any help will be be created.

    What I meant is that you can use the same concept of scheduled task to launch a script.

    In this script, you can read the file with the names of virtual machine and create a snapshot for each of them.

  • Import-Module via a scheduled task results in different $env: modulepath

    Just upgraded to PowerCLI 6.0 R3

    Anyone encountered this?  I was updating my scripts of scheduled to begin importing the module rather that to add the snap-ins, but for some reason when Task Scheduler is running scripts, it basically-error w / unable to find valid module.

    When the position of Scheduler task as service account runs it, $env: modulepath looks like this:

    C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;D:\Program files (x 86) \Microsoft SQL Server\110\Tools\PowerShell\Modules\; C:\Dell_PSCmdlets; C:\Program Files (x 86) \AWS Tools\PowerShell\; C:\Program Files (x 86) \Microsoft SDKs\Azure\PowerShell\ServiceManagement


    When I run interactively as service account, I noticed that the module is properly in the modulepath environment variable.

    C:\Users\svcLDAPVMware\Documents\WindowsPowerShell\Modules; C:\Program Files\WindowsPowerShell\Modules; C:\Windows\System32\WindowsPowerShell\v1.0\Modules\;D:\Program files (x 86) \Microsoft SQL Server\110\Tools\PowerShell\Modules\; C:\Dell_PScmdlets. C:\Program Files (x 86) \AWS Tools\PowerShell\; C:\Program Files (x 86) \Microsoft SDKs\Azure\PowerShell\ServiceManamanagement; D:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\Modules

    I thought about it.  The Task Scheduler service is not actually update the path of the module variable until it is restarted.  If anything like that launched by there only everything that is entered in the modulepath @ start time system.  Installation PowerCLI 6.0R2 aftermath, fills all new sessions, just not all that has been actively running in time.

    I had to reboot the virtual machine to the Task Scheduler picking up the new addition to the modulepath of the system.

    It was specifically related to Windows 2008 R2, do not know if the versions are affected.  In any case, hope this is helpful to anyone who may run into the same situation.

  • Adobe Reader update scheduled task? Is this Normal?

    Hello, I started my computer today and as I usually do, I checked my startup items. Adobe Reader and Acrobat Update Manager has been removed from the list. I was confused and after the reboot to see if that fixes it, checked again. Went again. The research, apparently a "Adobe Refresh Manager" with the number of version 1.8.0 has been installed or something. Or at least configured. Check with CCleaner, I looked up from the Startup tab... the Windows tab remained empty from the entrance of Adobe. However check the section of the scheduled task, I found an entry for the update here for some reason any.

    Is this a new feature? Did update the Updater itself and grown from a startup to a scheduled task item? I'm a little worried that something is wrong with my computer. For the record, my Adobe Acrobat had already updated December 9 11.0.10.
    Is this normal now?

    I am running Windows 8.1 32 bit btw.

    Yes, Acrobat and Reader Updater automatically updates itself with the latest version. There is nothing to worry about. Moving to the Scheduler of tasks done checks more predictable updates. Remove the Run key launch improves the system startup. You can probably find other updaters as well in the Task Scheduler, such as Google, Windows itself, Adobe Flash, etc...

  • Task Scheduler task shows as completed successfully, but nothing happened

    I have some .bat files I created added to my task scheduler on our server at the fire every day from 05:00.  Tasks run a series of SQL commands and a find and replace the application third for updating a MySQL database that we use for a web application.  SQL event on demand are not an option for us.

    When I run the task manually it works fine (I'm an administrator has full permissions), either by double-clicking the .bat file, either by selecting the task in the Task Scheduler task by clicking on 'run '.

    Tasks have been reportedly shot every day for more than a week and all history journals say the operation completed successfully, but when I check the MySQL database, that nothing has actually happened.

    To add to the confusion, what is happening on 2 3 .bat files that I wrote.  One works perfectly, not.

    I have the defined task to "Run if the user is logged in or not", and "Run with the highest privileges" and our server, Windows 2012 R2.

    My apologies if I'm missing something obvious, I am a JavaScript/PHP web developer, who was lifted in the server environment and, although most of this is logical on a base level for me, a lot of nuances are lost.

    Thanks in advance for any help.

    Hello

    Please post your request in the forum for better support.

    TechNet

    Thank you.

  • scheduled task shutdown.exe still running after disabling SERVER 2008 R2

    Hello

    A scheduled task still running after people with disabilities (shutdown.exe/s) on my network. We have disabled the task in the Task Manager. and updated computers with gpupdate/force. However, it stops again. How can I make this stop?

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Trying to enable and disable the scheduled tasks back but becomes "the name of the specified task * does not exist in the system.

    I am trying to create a .bat file that stops a set of scheduled tasks and start another game, but when it works it is said that there is no such thing as the name of the task

    SCHTASKS/Change/disable /TN ImageCopyTest
    ERROR: The name of the specified job 'ImageCopyTest' does not exist in the system.

    Running schtasks/query does not list the tasks that I have implemented in Task Scheduler

    For operational reasons, the tasks are set on "Run If the user is logged in or not ' and I read somewhere that this automatically makes the hidden task

    Can someone shed light on how I can get around what I need this operation for our recovery after disaster

    It's on Windows Server 2008 R2 Enterprise

    Hello

    Apologize for the delay in response. Because the question you posted is related to Windows Server and more complex than that which are usually dealt with here, this issue will be safer in our MSDN forums that cater to the more THIS professional audience.

    Thank you.

  • BITSADMIN and scheduled tasks

    Does anyone have experience making bitsadmin more useless in a scheduled task?  It seems to be limited to the use of the command-line connected except for the / create command.  Otherwise, it fails because the user is not connected (will work even if at the request of task if you logged in and 'run now'), but when you are disconnected, the task runs but bitsadmin gives errors like:
    Cannot add file to job - 0x800704dd
    The requested operation was not because the user is not connected to the network.

    The specified service does not exist.

    This behavior even in Xp and S 2008 / Vista.

    Directors Exchange

    Hi rgaysa,

    Please use the forum answers of Vista,

    The question you have posted is related to a network environment and would be better suited to the TechNet community.
    We are only Vista support for the consumer.  Please visit the link below to find a community that will provide the best support.

    http://social.technet.Microsoft.com/forums/en-us/categories/

    Hope this helps, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • MAC MINI - How will I know if there is something running or downloading in the background?

    Have been on the phone for hours with HughesNet... they tell me there is something running in the background, or by downloading information. I have a 500 mega "allowance" per day. He disappeared even if I'm not connected with Safari. How can I stop t

  • What is the maximum memory a Presario V6719 accept?

    " Compaq Presario V6719NR Notebook PC Serial number: CNF8023MQ6 product number (P/N):KC550UA Operating system: Microsoft Windows Vista (32-bit) How much is the max memory?   I get conflicting information.

  • This system is eligible for the lower upgrade Windows 7 Pro and what is the process to do this?

    Inspiron 15z 5523 Ultrabook comes with Windows 8 Pro, who, to my knowledge, has right to downgrade to Windows 7 Pro. http://Configure.us.Dell.com/Dellstore/config.aspx?OC=si15z5p02&model_id=Inspiron-15z-5523&c=us&l=en&s=BSD&CS=04 http://www.Dell.com/

  • Making approved Version available

    This is the first time that I had a new version approved with the new app world vendor portal.  My application has been submitted and approved by RIM, but I do not see where to make the version on App World. I forget where this link/button is in the

  • I can't reinstall Creative Suite 2

    Adobe stop the activation servers for CS2 and CS3 because of the devastation and pain among customers who BOUGHT CS2 and CS3!All of a sudden, I couldn't use Photoshop (CS2).The software says to activate it, even if it had been activated for years.The