How to Fix “Keyset does not exist” for Scheduled Tasks in Windows

  • Buffer
  • Pin It
  • Sharebar
  • Buffer
  • Pin It

I recently received an error message stating that the “Keyset does not exist” for all scheduled tasks on a Windows 2003 server. This error caused the scheduled tasks from not running, and caused some problems with a few applications. This is the first time I had seen the error, and so I wasn’t sure what the problem was.

While I have experienced Microsoft Word Errors in the past, this was a first for cryptography in Windows 2003. The error caused the inability to view the “Run as” user ID, let alone change it to something else. Because of this, the tasks couldn’t run, so I had to find a solution to fix it. Fortunately, the solution was easy, and only took a few minutes to implement.

Keyset Does Not Exist Solution

windows 2003 logo How to Fix Keyset does not exist for Scheduled Tasks in Windows

The full error that I received when accessing the schedule tasks was:

General page initialization failed.
The specific error is:
0×80090016: Keyset does not exist
An error has occurred attempting to retrieve task account information.
You may continue editing the task object, but will be unable to change the task account information.

I haven’t seen this error before, it it prevented my schedule task from running. I went online to see what I could find and eventually found a solution that worked for me. I outline the steps to the solution below.

Steps to Correct the Keyset Does Not Exist Issue

After performing some research, I found out that the local system private keys used by the “Cryptographic Services” service had become corrupted. I simply used the following steps to correct the issue:

  1. I stopped the “Cryptographic Services” service.
  2. I then double-clicked “My Computer”, and then clicked “Folder Options” on the “Tools” menu.
  3. On the “View” tab, I clicked “Show hidden files and folders”, and then clicked “OK”.
  4. I deleted all of the files in the “C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\S-1-5-18″ folder.
  5. I then restarted the “Cryptographic Services” service.

I’m not sure what actually caused the issue, but the above fix should be able to correct the error if it appears again. After performing the above steps, the “Keyset does not exist” error reported in the Task Scheduler had disappeared, and I could see and change the “Run as” user ID.

Tags: , ,

You may also like:

Windows 2003 Logo

Windows Installer Fix: Error 1718. File was rejected by digital signature policy

No thumbnail image

Replacing an Application with Another in Windows

No thumbnail image

Fix: ASP.Net Client-side Validation

Should You Disable the Windows Pagefile?

Rebuild the Icon Cache in Windows Vista and Windows 7

13 people had something to say about “How to Fix “Keyset does not exist” for Scheduled Tasks in Windows”:

Comments


  1. Thanks – microsoft’s own kb was worthless for me in this instance – it showed me an article on win2k (not 03) that said to start a service and you should be good. well that service was already running, and it wasn’t the crypto service. thanks for this – saved me a bunch of time/hassle!

    only thing i would add – for existing scheduled tasks that had stopped working, i had to go in and set the password for the user again. after that, the tasks would run – both on schedule and manually (right-click, run).


  2. Give persmission to Everyone on the C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys folder.

    This should resolve the “Keyset does not exist” error.


    • Thanks for an additional solution, Jay.


      • I had the same problem with the Keyset does not exist issue. However after deleting the S-1-5-18 folder I now get 0×80070005: access is denied.

        Anyone got any ideas?


        • You shouldn’t have deleted S-1-5-18 folder, only contents of it.


  3. From a programmatic point of view, I found this link to be EXTREMELY helpful:

    http://code.google.com/p/libfenc/source/browse/trunk/pbc-0.5.8/arith/init_random.win32.c?r=55

    This code sample presented my problem exactly and its solution, calling CryptAcquireContext with flag CRYPT_NEWKEYSET worked.


  4. Interesting. I never had this kind of problem before. But I guess this can be very helpful in case it happen.
    Andrew Walker recently posted…Unique Golfing Experiences in ArizonaMy Profile


  5. THANK YOU! This did the trick :)

    I’ve had this problem for so long and couldn’t find any way to fix it before I found your articel. My day just got better.


    • No problem. I’m glad I could help.


  6. Thanks for the very informative tips.. it work wonderful..


  7. A less intrusive method I found using Paul’s findings was to check the ACLs on each file in the S-1-5-18 directory. One of the files had no permission entries. Not only that, the Summary tab was missing from the Properties dialog. The other files in that directory had entries for local Administrators (R/E) and SYSTEM (Full). To test my theory, I stopped the Cryptographic Services service, and added the following permission entires to the suspect file:

    -(local) Administrators: Read, Read & Execute
    -SYSTEM: Full Control

    Restarted the Cryptographic Services service and checked my tasks.

    Thanks Paul!


  8. Good solution. The solution from MS was crap. In addition to your instructions I restarted the server but my backups still didn’t run. I then reentered the password on all my NTbackups. This seemed to work.
    Timmmmmmmmmmmmmmmmmmmm

Do you have something to say? Let everyone know!

Commenting policy: All comments are moderated for spam. You must use your real name and not your website name or keywords. If a comment is deemed to be spam, then it will be deleted or edited. Links to your website within the comment body is not permitted, but you are free to use CommentLuv to add a link to your latest post. If you wish to add a link to your website, you can always contact me about submitting a guest post.






CommentLuv badge
This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 5 approved comments. Use your real name and then @ your keywords (maximum of 3)

Previous Post:

Next Post: