Skip to content

Task Scheduler – A Specified Logon Session Does Not Exist

January 7, 2013

The above error can appear when you try to create/modify a scheduled task to run as a specific user (schtasks /CHANGE /TN <task name> /RU <user> /RP <password>)

The cause of the error is a specific security policy on the machine.

It can be resolved via either the Local Group Policy Editor, or the Registry Editor (which is handy if you want to script it).

Local Group Policy Editor

set the following value to ‘Disabled‘ in the local group policy editor:

Security Settings | Local Policies | Security Options | Network access: Do not allow storage of passwords and credentials for network authentication 

You don’t need to reboot/relogin – simpy run the command to create/update the task.

You can change the value back to ‘Enabled‘ immediately after, and again, no need to reboot/relogin.

Registry Editor


VALUE: disabledomaincreds

SETTING: 0 – disabled, 1 – enabled

Here, as well, no need to relogin or reboot in order for the change to take effect.



  1. n0psl3d permalink

    Keep in mind if this is allowed, the storage of those credentials will be in plain text within the registry.

    • evald permalink

      @n0psl3d which are the keys where it is stored?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: