Periodically remove the registry keys with the Task Scheduler?

I wonder if it is possible to create a batch script or similar small program to periodically delete the registry keys, specifically:

[HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify]
"PastIconsStream".

[HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify]
"IconStreams".

A little history on why I want to do this:

My computer is configured to dual boot (Vista and Fedora Linux), with a score of shared data.  I also use Dropbox for a group of records.  It complicates things with a system dual boot because the folder name is different in each system (vs My Dropbox Dropbox).  I worked around this by creating hubs and symbolic links in each operating system of 'real' folders to default Dropbox folders as appropriate.

This works as expected. The only problem is that Windows Dropbox does not monitor files for changes and checks only when the program starts.  To work around this problem, I created a small script that kills Dropbox and scheduled to run every half hour using the Scheduler of tasks, followed by a task to start Dropbox.

The only problem with this is that over time I find myself with hundreds of copies of the Dropbox icon in the status bar Notification area.  I found some instructions to reset the cache of the icon, which is to remove the two above mentioned registry keys and restart the Explorer.  So my question (finally!) is really about if there is a way to automatically reset it one or twice a day, rather than manually deleting the key each time that I remember.

Of course, if there is a better/more way to deal with this, I'm happy to hear about it!

Hi Mander,.

Editing the registry, especially using a batch file and the Planner is, in my opinion, a little dangerous. After all, a bad move a your system registry key could easily be paralyzed.

I don't really know if my suggestion would be to use or not, but it's worth a try. There is a (free) third-party application called CCleanerwww.ccleaner.com it effectively removes temporary internet files, history, cookies, index.dat file and a host of other things too. An option available in the "Advanced" tab Windows section is to clear the "tray notification cache. Do you think that this is likely to help solve your problem without needing to run a batch file? It's only a suggestion like the registry rated - is not my field, but, like I said the app will costs you nothing and it is certainly worth giving it a try. It can do what you want it to do. Just a suggestion!

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: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

Tags: Windows

Similar Questions

  • No mapping between account names and security IDS made mistake by attempting to use the Task Scheduler

    I have noticed that my msfeedssync.exe were not working or updated so I went to the Task Scheduler to see what was going on and received the number above mapping between user names and security ID error I never use Task Scheduler, but I do not know its also used for RSS updates , I do all my own maintaince so I need only of GI RSS using a 3-year-old dimensions of dell with xp pro and its in tip top except for that shape it came only with a 80 GB hard drive and I've only used 20 concerts in 3 years that I use online for things important and backup storage I hope there is a solution for this because I installed ram to 4 GB and it has a 2.8 ghz Processor blazin fast and is in very good shape all help will be appreciated thanks

    Hello syncere99,

    1. What is the user account in the Task Scheduler are you for the work you are trying to use the Task Scheduler?

    The error code indicates that the user account that was used to create the job no longer exists. This could be because the user account is deleted. I suggest that you remove and re-create a job and check if you have the same problem.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Can not find the task in the Task Scheduler

    I created a fundamental task to connect to an ad - hoc network whenever I boot my laptop with Vista Home Premium 32-bit.  I don't want that to happen and I deleted the network tries to delete the task.  When I open the Task Scheduler, I don't see my task listed.  I made sure 'show hidden tasks '.  I know that the task runs as I continue to receive errors not being to find the ad hoc network.

    I created a new task of fundamental task, called 'test' starts just the calc program and it shows in the list of tasks.

    Any help?

    As others have found, if you change the name of your computer, scheduled tasks that have been associated with a specific user account (like the logon trigger, such as the credentials for the job and so forth) will no longer appear in the list of scheduled tasks. Scheduled tasks displays the message "an error has occurred for task xxxx. Error message: the specified account name is not valid. "The same thing happens if you delete a user account that is named in a scheduled task.
     
    The reason for the problem is that the computer name part of the account name (for example, "mycomputer\myaccount"), and so if a part of the name is not valid, the associated account is no longer recognized. Unfortunately, given that the scheduled tasks will not display the task entry broken, you cannot fix it directly.
     
    The tasks themselves are defined in XML files in plain text stored in \windows\system32\tasks. The files have the same name as their entries in scheduled tasks.
     
    If a task is not desired, you can simply delete the corresponding file from \windows\system32\tasks.
     
    If you want to restore a task, you must change the computer name and/or account name everywhere wherever he is in the job file. But, you can just edit the file in place to solve the problem. Scheduled task detects that the file has been modified externally and even once will not use or display.
     
    I managed to solve the problem by following these steps:

    1. Move the file to the task entry broken of the \windows\system32\tasks in another case. You want to move it, copy it not - file must be put out \windows\system32\tasks. You can do this by using Windows Explorer or move the command in a command prompt window.
    2. Using Notepad, open the file in its new location. Set the name of the computer or the name of the account as it happens and save the file. Repeat steps 1 and 2 for all other tasks of problem.
    3. Open scheduled tasks, or select the menu Action, refresh. It should be no error message now, given that the task of the problem has been removed.
    4. On the Action menu, use the import command to locate the edited file. This will restore the scheduled task.
    5. Test the restored task by opening and then run. Once everything works, you can remove older versions of the file task as you had moved it. Repeat steps 4 and 5 for any other task edited file.
  • How can I configure a task in the Task Scheduler to restart my PC every day at a certain time?

    New pc from Dell under Win7

    1. Press the Windows key + R > type taskschd.msc and press enter (it will launch the Task Scheduler)
    2. Click with the left button of the right pane on the Task Scheduler Library > open Action on the menu at the top of the page > new folder... > name MyTasks > click OK
    3. Left-click on the MyTasks > menu, choose Action > create a basic task... (it will open Assistant tasks)
    4. You can enter the name , for example "restart" and press Next
    5. In the trigger section, you can specify when you want to run your task, for example:
      • Select daily and press Next
      • Now, you can specify the day, time and the game to be repeated daily, after that press Next
    6. In the Action section, you can choose what you want to run, for example, restart your system to do this:
      • Choose start a program and press Next
      • in the area of program/script, type shutdown /r and press next
    7. And that's all, you can press Finish
  • How to use the Task Scheduler to send an email

    I have Windows Live Mail + Windows 7

    I want my computer to send an email to someone on his own. I opened the Task Scheduler and creates a new task using the Task Scheduler 'send and send '. The problem is that the program asks only me who he is, which comes from the e-mail and how to use smtp server... He doesn't ask for my mail server login and user name, so in theory it would be rejected... and when it comes to send the message, now it does nothing without any error message.

    I have 2 settings of e-mail in Windows Live Mail accounts but how do I know the Task Scheduler program which includes use of e-mail and how to connect to the account to send it?

    best,

    Charlie

    This task seems to be used only in limited circumstances where a local Windows based SMTP server is available and security credentials are already established.  There is an interesting discussion about this in
    http://social.technet.Microsoft.com/forums/en-us/winservergen/thread/f087c57c-57b8-4c7f-ba2a-feb04c51f5ba

    One of the links posted http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=true indicate a possible way to do so by implementing a service SMTP with IIS, but many (I think that most) ISPS block Port 25 and who would probably be a problem.

    It looks like using a 3rd party to contact the external mail server might be the best bet.

    'Charlie Cooper' wrote in the new message: * e-mail address is removed from the privacy... *

    Thanks for your reply, but I'm looking to make use of the 'send an Email' task which included in Task Scheduler... is something that has been there for a while and I've never understood how it would work... I open the Task Scheduler, create a "fundamental task" and click 'send', but I is not even asking me my user name or password? only the smtp server and the email I want to use!

  • When I open the Task Scheduler, I get a message error «an error has occurred for task realupgradelogontasks...» »

    When I open the Task Scheduler, I get the following error message:

    an error has occurred for the realupgradelogontasks-1-5-21-2172834406-3963835389-1001 task. error message: the specified account name is not valid. What this means and how do I get rid of the error message?

    Windows 7 Home Edition Premium does not the local security policy. I didn't know that you have the version of the operating system.

    However, the error you get for realupgradelogontasks is RealPlayer. You can uninstall RealPlayer and reinstall to see if that will remove from TaskScheduler option to update.

    If this isn't the case, then check with RealPlayer for the taking in charge of this issue.

    Thank you

    Marilyn

  • Can I stop or restart the Task Scheduler service from the command prompt in Windows 2008 service?

    I'm on Server 2008. I have a scheduled task that is not working properly. I went to Services, and I see that it is configured to start automatically and it is actually being run. The problem is that I can't stop, pause, or restart the service. Y at - there a command I can run that can stop or restart the service?

    Why not with the right button of the job itself in the Task Scheduler, and then stop it?

    There are several methods to stop the Task Scheduler service that. Here's one of them:

    1. Create a task scheduled, called 'StopScheduler' as follows:
      -Triggering factor: at boot time
      -Command: sc.exe
      -Settings: time stop
      -User: System
      -Run with the highest privileges.
    2. Right click on the task of StopScheduler, and then click Run.
    3. Solve your tasks.
    4. Restart the Task Scheduler.
    5. Disable or remove the task StopScheduler.
    Note also that this forum focuses on the issue of Windows 7 in a domestic environment. There are dedicated forums for Server 2008.
  • After creating a task, it is not listed in the Task Scheduler Library.

    Hello

    I created a system task to the system log. It was supposed to send an email to me whenever the event is logged.
    After saving it, I wanted to get to the Task Scheduler Library, but it has not been listed. I tried to create the task again, but it is said that a task with the same name already exists. The event took place, and when I looked at the status of the task, it shows the name of the task with the result of success.
    How can I remove / edit the task when I can't? Help appreciated.
    Thanks in advance
    Richard
    original title: event schedule

    There is a small arrow to the left of the entrance to the Task Scheduler Library, click the arrow to expand the list to view tasks created by the system.  Then browse folders to find the one that you created.

    Defragmentation, just for example, is to

    Library of Task Scheduler, Microsoft, Windows, Defrag

  • Need the command line to restore the system to the Task Scheduler in Windows 7

    The task in the Task Scheduler to run the regular restore points has been removed. I need to re-create the task.

    I know that all settings other than the delivery of the program and options. That's what I need.

    It comes a host of Windows 7 Ultimate 64-bit.

    Thank you.

    For the record, I found the answer myself. It is within an article that lists as scheduled tasks in Vista. The KB is:

    http://support.microsoft.com/kb/939039 , "Description of the scheduled tasks in Windows Vista". The command line that I needed is:

    %windir%\System32\rundll32.exe c:\windows\system32\srrstr.dll, ExecuteScheduledSPPCreation

  • Windows 7 and I have a batch file to copy files from 1 computer to another. It works fine alone, but when I put it to run in the Task Scheduler it shows it ends successfully, but nothing is happening

    I am running Windows 7 and I have a batch file to copy files from 1 computer to another.  It works fine alone, but when I put it to run in the Task Scheduler it shows it ends successfully, but nothing is happening.  None of the files are copied, and the control box does not appear.  Any ideas?

    Run a batch file in Task Scheduler

    Hello ITGIRL17,

    Thanks for posting on the Microsoft answers Forum.

    Configure your task under your administrator account.
    Then go to the folder with the batch file and ADD on control for the folder administrator permissions and each of the files in batches.
    If the batch files write data, then the target for the task should ALSO have all explicit permissions.
    Now try to run the Task Scheduler task.

    Also check the information from the following link and look specifically at Brian Vandemark Sommaire steps on 2 September.
    http://social.technet.Microsoft.com/forums/en/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbe

    I hope that this information will help resolve your batch file does not problem.

    Sincerely, Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • In XP, error 0 X 80090016 Keyset does not exist, the task scheduler does not perform the tasks

    In Windows XP (SP3) get this message and the task scheduler does not perform the tasks

    Excellent resolution.  My scheduled tasks are run.  It is the first answer that worked for me.  Thank you

  • Custom event is not captured by the Task Scheduler and unable to trigger by e-mail for the event

    Hello world

    We have installed the 9.0 table in our windows 2008 R2 server and Scheduler tasks to send if you find error occurred for the application in it. That's why we created SMTP inside. First, we have implemented the Task Scheduler and generate an error in the application of the table and run the task manually and we receive by e-mail. But when we go for automation by the custom event. The steps below that I follow:

    1. click the Start button, and then select administrative tools > Task Scheduler.

    2. click on the task of creating in the Actions pane on the right.

    3. in the dialog box create a task in the name text box, type a name for the task and provide a description if you want.

    4. in the section security options, select run whether user is logged in or not.

    5. click on the triggers tab, and then click the new button.

    6 to start the task drop-down list, select an event.

    7. in the settings section, select custom and click the new event filter.

    8. for the event level, select the error box.

    9. selection of the Source, in the event source drop-down list, select the table server checkbox.

    10. click OK to close the new dialog box even filter and then click OK again to close the new trigger dialog box. The event trigger is now configured.

    11. in the dialog box create a new task, click the Actions tab and click the new button.

    12. in the Action new dialog box, in the drop Action, select send e-mail.

    13. under the settings section, fill in the form as required, including the SMTP server.

    Note: It is necessary to enter the valid e-mail addresses in the From and to text boxes.

    14. click OK to close the new dialog Action.

    15. click OK to close the dialog box create a task and finish configuring e-mail alert.

    If please see this and feel free to contact me if you have any information.

    Concerning

    Valerie

    Mob: 469 345 3625

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Why all of a sudden I get an error message saying that the Task Scheduler engine stopped working and was closed? How can I fix the problem?

    I don't know what has been done to cause the TASK SCHEDULER ENGINE TO STOP WORKING. What should I do to correct this?

    Hello

    Apologize for the delay in response. I suggest that you mention 'Sidi Y' suggestions in the following link and check if it helps:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-performance/getting-error-on-startup-Task-Scheduler-engine-has/883004c6-C06D-E011-8dfc-68b599b31bf5

    Hope this information helps. Back to us for assistance.

  • where to enable the Task Scheduler Service?

    I want to back up my computer to an external hard drive.  The window that opens shows that the Task Scheduler Service is disabled.  I have searched but cannot find where I can activate the Task Scheduler.

    Control Panel, administrative tools, Services.

    Scroll to Task Scheduler, double-click it to display the page.

    Click Start, apply, OK.

  • Error message: "the Task Scheduler service does not appear to start" when you back up files.

    Original title: error in Vista Task Scheduler

    Hello. I am running Vista Home Basic. I'm trying to back up my files, but get an error stating that "the Task Scheduler service seems not be started. Please start the Task Scheduler service and try again. "I don't know what that means and I couldn't save my files before. Do you know how I can fix this problem? Thank you

    Hi MK_806,

    You can try to scan the file system [SFC] checker on the computer that will replace missing or corrupt files & check if the problem persists.

    For more information, you can consult the following link.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    Check if there is information in Event Viewer which may help us to solve the problem:

    What are the information contained in the logs of the event (Event Viewer)?

    For more information, you can also consult the following article:

    Troubleshooting Task Scheduler

    Hope this information is useful.

  • My VB2013 exe will not run the Task Scheduler but works very well for direct click in Explorer as well as a BAT file.

    The program is configured to run from a direct click using a text file specifying where the source files and destination.  Worked very well for a direct click or from the. BAT file.   It runs the Task Scheduler, I can see it appear in the Excel Task Manager when it is active.  But while it freezes.  He reads the spreadsheet looking for specific elements then output to a CSV text file.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *

Maybe you are looking for