I know this has been asked in different ways a few times, but nothing has helped me for my specific case.
This is all done on a Windows 7 Home Premium desktop computer through Windows Command Line. I was attempting to create a simple batch program using schtasks to open a bunch of programs automatically upon my logon. However, when I attempt to create the task it says that the access is denied for my batch file.
schtasks /create /tn Startup /tr "C:\ComputerStartup.bat" /sc onlogin
ERROR: Access is denied.
So I tried to give my authentication (I am running this as an administrator user).
schtasks /create /s Jackson-HP /u Jackson /sc onlogon /tn Startup /tr C:\ComputerStartup.bat
It prompted for a password for my user. I don't have a password for my computer so I just pressed enter, and it said:
ERROR: User credentials are not allowed on the local machine.
I'm not sure how to fix this. I'm still new to creating batch files, so I may be making a newbie mistake. I appreciate any help you can give, thanks.
/u mycomputername\Jackson
– GangwayCommand Prompt
inAll Programs\Accessories
, right click it and chooseRun as administrator
– that'll give you a command prompt with elevated rights. (The window title will (should) then also readAdministrator: Command Prompt
.) – Ekg