PSEXEC error: The specified application is not on the path

Phillip Parker 1 Reputation point
2022-12-16T21:41:34.37+00:00

When I run the following:
C:\Windows\System32>c:\windows\System32\psexec \main -h -f -accepteula -u main\asd-p 123 -c c:\windows\system32\wbadmin

I receive error: The specified application is not on the path.
However when I run the following:
C:\Windows\System32>c:\windows\System32\psexec \main -h -f -accepteula -u main\asd-p 123 -c c:\windows\system32\whoami
It runs fine with no errors
I can also run
C:\Windows\System32>c:\windows\System32\psexec \main -h -f -accepteula -u main\asd -p 123 -c c:\windows\system32\ipconfig
And it runs correctly and shows data from ipconfig.

I have been unable to figure out the problem with wbadmin. I run all the above with admin privledges. My local computer is win 11 and the remote is win 10. When my local computer was win 10 wbadmin worked fine. I have admin credentials on both machines pointing to the other. I have checked every permission that I can think of and all are ok.

Help
Frustrated in Arizona

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,239 questions
Windows for business Windows Client for IT Pros User experience Other
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2022-12-16T23:03:23.317+00:00

    Don't use the -f and -c switches.

         -c         Copy the specified program to the remote system for  
                    execution. If you omit this option the application  
                    must be in the system path on the remote system.  
         -f         Copy the specified program even if the file already  
                    exists on the remote system.  
    

    My test.

    C:\Temp\Tdrive>psexec \\test10 -h  -accepteula -u admin -p admin  wbadmin.exe get status  
      
    PsExec v2.4 - Execute processes remotely  
    Copyright (C) 2001-2022 Mark Russinovich  
    Sysinternals - www.sysinternals.com  
      
      
    wbadmin 1.0 - Backup command-line tool  
    (C) Copyright Microsoft Corporation. All rights reserved.  
      
    ERROR - No backup or recovery operation is currently running.  
      
    wbadmin.exe exited on test10 with error code -2.  
      
    C:\Temp\Tdrive>  
    
    0 comments No comments

  2. Phillip Parker 1 Reputation point
    2022-12-19T22:54:06.467+00:00

    I think I am ready to give up. I used to have a win10 machine for local computer and for 2 years the local and remote (also a win 10 and still is) talked on a regular basis and exchanged data back and forth. My new local computer is a win 11 and nothing works. PSEXEC won't talk to the remote and if I go to the remote it won't send anything back to local. I have tried everything that I can think of, changing permissions, adding credentials, changing local security policy and group policy, running SFC and DISM on both computers. They all just give different errors but nothing works like it did before.

    Disillusioned in Arizona


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.