Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > PsTools
  New Posts New Posts RSS Feed - Psexec - Access is denied - for admin
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Psexec - Access is denied - for admin

 Post Reply Post Reply
Author
Message
WurzelSepp View Drop Down
Newbie
Newbie
Avatar

Joined: 18 January 2017
Location: Germany
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote WurzelSepp Quote  Post ReplyReply Direct Link To This Post Topic: Psexec - Access is denied - for admin
    Posted: 15 February 2017 at 2:44pm
Hi, there are many posts with same issue but no proposal works:
i have to connect to remote Server with psexec to execute bat-file.
both Systems are located in same Domain and my user is domainadmin. However i get access denied error:
2017-02-15 15:09:26 003 DEBUG [PSEXECConnector::psexecuteCommand] Complete psexec string: psexec.exe \\XX.X.XXX.XX /accepteula -s -c tmp_1469_2040.0003.bat -u DOMAIN\USER -p PASS
PsExec v1.96 - Execute processes remotely
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals -
www.sysinternals.com
Access is denied.
Connecting to XX.X.XXX.XX...
                                                                             
Connecting to XX.X.XXX.XX...
                                                                             
Couldn't access XX.X.XXX.XX:
2017-02-15 15:09:26 003 WARN [PSEXECConnector::psexecuteCommand] Problems with remote command:
psexec exited with Errorcode: 5.
because of security guidelines, it is not possible to change the registry key as proposed many times. also i tried many different versions of psexec :)
 
if i run the psexec command twice, batch is running without error.
 
are there any ideas?
thx


Edited by WurzelSepp - 15 February 2017 at 2:49pm
Back to Top
WurzelSepp View Drop Down
Newbie
Newbie
Avatar

Joined: 18 January 2017
Location: Germany
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote WurzelSepp Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2017 at 1:18pm
Does no one have an idea?
Back to Top
Youks View Drop Down
Newbie
Newbie


Joined: 11 April 2017
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Youks Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2017 at 9:51pm
Try this

psexec \\XX.X.XXX.XX /accepteula -u username -p password -s -c tmp_1469_2040.0003.bat
Back to Top
WurzelSepp View Drop Down
Newbie
Newbie
Avatar

Joined: 18 January 2017
Location: Germany
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote WurzelSepp Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2017 at 7:05am
What is the difference between original:
psexec.exe \\XX.X.XXX.XX /accepteula -s -c tmp_1469_2040.0003.bat -u DOMAIN\USER -p PASS
and your proposal:
psexec \\XX.X.XXX.XX /accepteula -u username -p password -s -c tmp_1469_2040.0003.bat
except order of parameters?

btw. it does`nt working.
Back to Top
Youks View Drop Down
Newbie
Newbie


Joined: 11 April 2017
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Youks Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2017 at 6:55pm
Try this: 

And srry for the last suggestion. I´m still learning how it works.


Edited by Youks - 20 April 2017 at 10:43pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.06
Copyright ©2001-2016 Web Wiz Ltd.