Trying to use PSEXEC to run a command on a 2003 server, but am getting access denied.

Posted on 2010-01-06
Last Modified: 2012-05-08
I'm trying to run a command remotely on a 2003 server using PSEXEC.  When I run the command I get an error saying that:

Couldn't access server1:
Access is denied

I also get this no matter which ps tool I try to use.  I tried something simple like PSLIST -m \\server1 and also get an access error.  

If I open the command prompt as a domain admin all the ps tools work against the 2003 server.  My question is, what permissions need to be assigned on the 2003 server to allow someone to run a remote command on it?  

I don't want to use the -u and -p parameters in PSEXEC because I don't want users seeing the clear text passwords nor do I want to worry about that password changing.  Thanks...
Question by:HomerSimpson
    1 Comment
    LVL 7

    Accepted Solution

    PSExec uses the ADMIN$ share to install itself on the remote host, I would really think twice about allowing "any user" to run psexec against any of my hosts.

    You could "schedule" a task, that will run with admin credentials, the task can be scheduled for a date way in the future ==> the end user can then right clik on the task and choose "run now" without needing to log in.  If any one changes the command it will ask them for the admin password.  You still need to be careful about how you use this approach - you may open up access to things that you hadn't thought about.

    Hope this helps


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
    Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now