PC & Mobile

The specified account name is not valid – Task Scheduler Error

Some PC customers could encounter the error message The specified account name is not valid when making an attempt to edit (eg; including a brand new set off), disable, or delete an already current process or create and save a brand new automated scheduled process utilizing Task Scheduler on Windows laptop. This submit supplies essentially the most appropriate options affected PC customers can apply to simply resolve the difficulty.

You are more likely to encounter this error on the system as a result of there’s a permissions situation or inadequate rights assigned to the Windows consumer account or administrator account that is getting used. When this error happens in your machine, the next full error message is displayed:

An error has occurred for process <TaskName>. Error message: The specified account name is not valid.

The specified account name is not valid – Task Scheduler Error

If you will have obtained the error message The specified account name is not valid while you attempt performing sure actions — for instance, disable, delete or edit by including a brand new set off to a process you efficiently created beforehand or when making an attempt to create/save a brand new scheduled process from scratch utilizing Task Scheduler in your Windows 11/10 laptop, you then’re on the proper place! Any of our confirmed and efficient options offered under in no specific order ought to provide help to resolve this situation in your system.

  1. Run Task Scheduler with admin privilege
  2. Manually enter the trail to the consumer account
  3. Troubleshoot utilizing the inbuilt Administrator account
  4. Create the duty utilizing PowerShell
  5. Use the icacls command
  6. Perform System Restore
  7. Use a Local account

Let’s take a look at the outline of the method because it pertains to every of the listed options. Before you proceed with the options that we are going to describe under for you, be certain the consumer making an attempt to create the scheduled process is logged in as an administrator or has been granted administrator privileges or if a normal consumer, have a consumer with admin privileges on the pc change the usual account to admin account.

1] Run Task Scheduler with admin privilege

Run Task Scheduler with admin privilege

From all indications, the Task Scheduler error The specified account name is not valid is a consumer account situation that might be resulting from inadequate, no, or inappropriate permission for the consumer on the system. The consumer requires admin privilege. So, if for some purpose, the logged-in consumer does not have admin rights on the system, the consumer can run Task Scheduler with admin privilege, after which see if they will create or modify a scheduled process.

For this, the consumer can do the next:

  • Click Start.
  • Open the All apps listing.
  • From the listing, click on the Administrative Tools folder or scroll down the listing and click on the Windows Tools (relying on if you happen to’re operating Windows 10 for the previous or Windows 11 for the latter) folder.

You also can open Control Panel, change View by to Large icons on the highest proper of the window, then choose Administrative Tools or Windows Tools because the case could also be.

  • In the folder that opens, right-click Task Scheduler and choose Run as Administrator.

Alternatively, you may press the Windows key + R to invoke the Run dialog. In the Run dialog field, sort taskschd.msc after which press the CTRL+SHIFT+ENTER key combo to open Task Scheduler in admin mode.

Read: How to run Scheduled Task after one other Task completes

2] Manually enter the trail to the consumer account

For this process, you may first run the whoami command in Command Prompt. Whatever reveals up within the output is the name that Task Scheduler is searching for – you need to use that because the username and use the password that you just use to go online to your Windows laptop. The username that reveals within the WHOAMI utility output could appear to be a truncated a part of your precise username, but it surely ought to work and can help you make and save the adjustments.

Do the next:

  • If creating the scheduled process for the primary time, and the present Windows consumer account isn’t working.
    1. Switch or change to a special administrator account.
      • If operating on a website enter the area name first (Example: domainadministrator or username)
      • If operating on a workgroup attempt getting into the pc name after which the account name (instance: DesktopNameAdministrator or username or ServerNameAdministrator or username)
    2. Enter the password for this account.
    3. Click OK.
  • If the scheduled process was already created and trying to switch the presently scheduled process:
    1. In Task Scheduler right-click on the process and choose Properties.
    2. On the General tab, click on Change User or Group.
    3. Enter a totally different administrator account.
      • If operating on a website enter the area name first as proven above.
        • If unable to search out click on on the Advanced Button and click on Find to look the area account.
      • If operating on a workgroup, enter the pc name after which the account name as proven above.
        • If unable to search out one other consumer click on on the Advanced button and click on Find to look the pc for an alternate account.  If none are current, you could have to create a brand new administrator profile.
    4. Enter the password for this account.
    5. Click OK.

If the above steps fail to resolve the difficulty, it’s possible you’ll have to contact your system administrator to troubleshoot this situation. Some affected PC customers reported they have been in a position to resolve the difficulty by following this straightforward step:

  • Edit the consumer account for the duty to run as a SYSTEM.
  • Save the duty.
  • Edit the duty.
  • Edit the consumer account for the duty to run because the consumer you need.
  • Finally, save the duty.

3] Troubleshoot utilizing the inbuilt Administrator account

This answer requires you to troubleshoot utilizing the inbuilt Administrator account to isolate the difficulty. To do that, it is advisable to allow the inbuilt Administrator account, then reboot your machine. On boot, login into the inbuilt admin account and see if you happen to can efficiently create/modify a scheduled process. If you don’t encounter the difficulty on the built-in administrator account, then it’s possible you’re coping with a corrupt file. To affirm this, you may log into one other consumer account that has admin privileges and see if the difficulty at hand persists. If so, then it is advisable to create a brand new consumer account after which switch your recordsdata/knowledge from the previous account to the brand new account or you may see if repairing the corrupt consumer profile solves your drawback.

4] Create the duty utilizing PowerShell

Create scheduled task using PowerShell

Another viable answer or workaround extra of, to the difficulty you’re presently dealing with, is to see if you happen to’ll be capable to edit or create the scheduled process utilizing PowerShell with out the necessity of ever opening the Task Scheduler graphical consumer interface.

Read: System Scheduler: Task Scheduler different for Windows PC

5] Use the icacls command

Task Scheduler stored Tasks in File Explorer

The icacls Windows command-line utility is principally utilized by IT or system admins to view and as properly change entry management lists (ACLs) on recordsdata and folders. So, if the consumer doesn’t have sufficient entry rights on the duty as seems to be the case right here, the difficulty could be mounted by utilizing ICACLS from the command immediate in elevated/admin mode. On Windows 11/10, duties appear to be saved in two folders:

  • C:WindowsTasks
  • C:WindowsSystem32Tasks

You’ll have to grant the required permission to the consumer account for the duties in each folders. The syntax ought to look one thing like this:

icacls C:WindowsTasks /grant <YourWindowsUserName>:f
icacls C:WindowsTasks*.* /grant <YourWindowsUserName>:f
icacls C:WindowsSystem32Tasks /grant <YourWindowsUserName>:f
icacls C:WindowsSystem32Tasks*.* /grant <YourWindowsUserName>:f

Where the F parameter is full entry (Edit_Permissions+Create+Delete+Read+Write) — be certain to interchange the <YourWindowsUserName> placeholder with the precise username. If utilizing this command didn’t be just right for you and the error in spotlight happens for a scheduled process that is not working the way in which it’s meant and you’ll now not edit, disable, or delete the duty, you may open File Explorer and browse to both of the listing (recognized above) for Task Scheduler saved duties, after which delete the duty in query. Once completed, you may launch Task Scheduler and recreate the duty with the brand new settings.

6] Perform System Restore

If the error at hand happens while you attempt to edit an already current process otherwise you have been in a position to beforehand create new duties till just lately, then it’s possible the system has undergone some adjustments which can have been caused by a brand new system replace particularly if you happen to began to expertise the difficulty after a latest Windows replace was put in in your laptop. In this case, you may uninstall any latest replace or use System Restore — a restoration software for Windows that lets you reverse sure sorts of adjustments made to the working system. System Restore is used to return necessary Windows recordsdata and settings—like drivers, registry keys, system recordsdata, put in packages, and extra—again to earlier variations and settings. That stated, remember that all functions and adjustments made earlier than the date chosen will probably be eliminated and must be re-installed if wanted.

7] Use a Local account

This answer appeared to have labored for affected laptop customers that have been logged in with their Microsoft account and making an attempt to create a scheduled process. The situation was reproduced by making an attempt to arrange a scheduled process to run Windows Defender each day while logged in with a Microsoft account and the error occurred.

The answer was to log into an area account (you may create an area account with admin privilege) or change from a Microsoft account to an area account on the pc and create the duty. Using an area account, it seems one of many settings can run even when not logged in — a attainable clarification is that the Microsoft account has a website (public or non-public) as its e mail handle and that appears to trigger a safety drawback, and utilizing an area account lets you work across the situation.

If you had migrated to a Microsoft account from an area account, it’s possible your consumer listing is nonetheless within the name of the native account. In this case, what labored in line with some affected customers is to make use of the Microsoft account password to log into the native account and you must now be capable to create or modify any scheduled duties on the system.

Hopefully, you discover this submit useful!

How do I repair Task Scheduler not working?

If Task Scheduler is not operating, triggering, or beginning packages in your Windows 11/10 laptop, amongst different potential fixes, you may first make sure the Task Scheduler service is operating. Open the Services supervisor. Find and double-click to open Task Scheduler Properties. Ensure that the Service standing is Running. If it is not operating, it is advisable to set the Startup sort to Automatic. Then click on Start > Apply > OK to activate the Task Scheduler service.

How do I alter my username in Task Scheduler?

To change your username in Task Scheduler for a process in your Windows 11/10 laptop, merely open Task Scheduler, then double-click Scheduled Tasks. Now, discover after which right-click the name of the scheduled process you wish to modify choose Properties and choose the Task tab. In the Run as field, sort the account name to make use of and save adjustments.

Read subsequent: One or extra of the specified arguments are not valid Task Scheduler Error

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button