Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
The solution for 2.30+ is to add the -i flag for interactive session.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am trying to run the following command within a domain using an account with Domain Admin on to computers within the domain:
psexec64 @Phil .txt -u domain\adminaccount "\server\share\file.cmd"
I enter the password when prompted and PsExec attempts to connect to the hostnames in my .txt but it just returns:
PsExec could not start \server\share\file.cmd on COMPUTERNAME
Logon failure: the user has not been granted the requested logon type at this computer.
I would appreciate your assistance.
Thank you.
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
The solution for 2.30+ is to add the -i flag for interactive session.
Its due to a bug in psexec 2.32 (the current version). I've raised this already, but please add your voice to it. The previous version (2.20) works fine.
PSEXEC tries to connect to the Admin$ share of the remote computer, in order to copy on the remote machine the PSEXecSVC.exe, which is the binary of the Service that will run remotely.
If using a domain admin account you are not able to perform a network type logon like this one on the remote machine it is probably because the Admin$ share has been disable via a policy/registry key.
Try by yourself running a cmd as that Domain Admin user and then from that CMD issuing a net use \ComputerName\Admin$. You should get the same error.
HTH
-mario