Schtasks.exe gives Access Denied error when trying to access remote computer using a local admin account
22,589
Check your Windows Firewall is off or not blocking.
Author by
user247702
I'm a senior software engineer at Practice Fusion. Want to hire me? Check out my StackOverflow Careers CV
Updated on September 17, 2022Comments
-
user247702 over 1 year
When I execute
schtasks /query /s serverName /u serverName\user /p password
I get anAccess is denied
error.serverName\user
is in the Administrators group on server.Any ideas?
-
Tom almost 12 yearsSo many things can go wrong here. Could you elaborate more how you are executing this program? Is schtasks run on your PC? Do you start it in elevated mode? Do you run it in a command prompt? Do you run it in a script? Are you sure you did not misspell the password? Did you check that the user has "Logon as batch job"-rights? Why don't you use the task scheduler console? On which OS are you running the command? Do you have any logfiles that contain more information than "access denied" (Security Log on server, maybe)?
-
-
user247702 about 13 yearsYeah...I found that out for this problem: serverfault.com/questions/241825/…