"The handle is invalid" while running PsExec command

This is one of the usual error which people come across while running the PsExec command on windows.

Probable reasons :
1. User doesn't have administrator privilege.
    This can be easliy fixed by using and adminstrator account or assign the user to admin group.

2. UAC

    -  This is a two layered approach
        1. Turn off the UAC
            -  User Account Control Settings ->Set to"Never Notify"

        2. Turn off "User Account Control: Run all administrators in admin approval mode"
            - Go to Edit group Policy --> Computer config -->Windows settings --> Security settings --> Local policy --> Security options
           
            - Set "User Account Control: Run all administrators in admin approval mode
Set to Disabled" to disable

            - Reboot (And you are all set.. Yay !)
      

Comments

Post a Comment