(PsExec): Logon failure: the user has not been granted the requested logon type at this computer.

Hassan Khan 6 Reputation points
2021-02-19T20:02:22.263+00:00

Hi,

I am using PsExec v2.32 version

C:\PSTools>psexec \end-user-pc -u Administrator cmd.exe

PsExec v2.32 - Execute processes remotely
Copyright (C) 2001-2021 Mark Russinovich
Sysinternals - www.sysinternals.com

Password:

PsExec could not start cmd.exe on end-user-pc:
Logon failure: the user has not been granted the requested logon type at this computer.

I would appreciate if any concern person provide assistance in this issue.
Thank you..

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

3 answers

Sort by: Most helpful
  1. JEmlay 21 Reputation points
    2022-01-20T02:30:35.277+00:00

    And of course 2 seconds later I find a solution....

    When logging in as Admin you also need the -h flag if you want full admin privileges.

    So from my previous example:

    PsExec.exe -i -h \XXXXXX -u XXXXXX\Administrator -p YYYYYY "C:\Program Files......."

    3 people found this answer helpful.

  2. Alex Mihaiuc 716 Reputation points
    2021-03-03T15:11:12.707+00:00

    The -i flag is also required to run the remote command with redirected IO for PsExec v2.3+.


  3. Costi Nechifor 1 Reputation point
    2021-07-26T15:32:13.037+00:00

    Had the same problem the -i flag did not work.

    0 comments No comments