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,163 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 33,736 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.


  2. pop 0 Reputation points
    2024-08-05T09:38:51.75+00:00

    Try to open the following system service and make sure you have enough admin privileges

    1.Server 2.TCP/IP NetBIOS Helper 3.WindowsEventLog 4.TaskScheduler 5.RemoteProcedureCall

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.