Windows Server

How to create a shortcut for Windows scheduled task

On how to create a scheduled task on Windows Server 2019, see https://techdirectarchive.com/2020/03/24/how-to-create-a-scheduled-task-on-windows-server-2019/

Below are the steps to create a shortcut on a Desktop for a scheduled job.
– Create a desktop shortcut. On how to create a shortcut, see the following link https://techdirectarchive.com/2020/03/08/how-to-create-a-shortcut-in-windows/. On how to make a shortcut available to all users, see https://techdirectarchive.com/2019/05/11/how-to-make-a-desktop-shortcut-available-for-all-users-in-windows-7-and-10/

  • Right-click on the desktop
  • Click on New
  • Click on Shortcut
  • When you create the shortcut, in the “Type the location of the item” field, type the following command and enter the appropriate task name.
schtasks.exe /run /tn "Task Name".

I had to open my task scheduler program in order to get my task name as shown below “WindowsUpdate”.

Note: Task Name needs to be the actual name of the task.
– Click on next as shown below

Type a name for your shortcut and press Finish as shown below

Now the shortcut has been created, If you would like to change the icon, see https://techdirectarchive.com/2020/03/14/how-to-change-a-desktop-icon-shortcut-in-windows-10/

As shown below, the desktop icon as been created. When you double-click on the shortcut, it runs the selected file with administrator permissions, without triggering a UAC prompt.

For a similar shortcut task “how to create a desktop shortcut in Windows 10 to switch User Accounts – Fast user switching (Session Disconnection Utility)“, see https://techdirectarchive.com/2020/03/14/how-to-create-a-desktop-shortcut-in-windows-10-to-switch-user-accounts-fast-user-switching-session-disconnection-utility/

Advertisements

Leave a Reply

%d bloggers like this: