PSTools Error

TommyVercetti 0 Reputation points
2024-05-08T03:53:41.0366667+00:00

I have a win11 computer with no access to the internet.

cmd is run as administrator.


After trying to open a task scheduler via the PSTools on my desktop (psexec.exe -i -s %windir%\system32\mmc.exe /s taskschd.msc) I am getting the following error:

Error creating key file on DESKTOP-12345:

The network location cannot be reached. For information about network troubleshooting, see Windows Help.


iShot_2024-05-08_06.46.29

Is there any way to fix this?

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,100 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 32,091 Reputation points
    2024-05-08T22:11:30.7066667+00:00

    That worked on my laptop, even with wifi turned off. So I traced it with Process Monitor. I see it using the Admin$ share, presumably because it is designed to work on another pc. The help output says, "PsExec executes a program on a remote system". So it would appear that whatever network configuration you have, does not implement an Admin$ share.

    User's image

    Why do you need to run the task scheduler as the system account?

    Create a scheduled task, that runs as the system account, and use the command line schtasks.exe or a Powershell script to do whatever you need to do.