PSEXEC - Access is denied - remote admin credentials

I'm trying to open a command prompt on a remote server (Windows 2008 server).  As I understand it, I must have admin rights on the remote machine, but it only works when logged in as an admin user on the local machine (2003).  If I login as a standard user on the local machine PSEXEC fails with "Access is denied".

The command is:
psexec \\servername -u username -p password cmd.exe

Any help appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

That is correct, PSEXEC is to be launch with elevated rights, in addition to this PSEXEC is also to be copied to the SYSTEM32 folder on the remote server.
I know it works because i use it :)
I hope this helps.
From a run prompt you can also launch cmd locally as an admin on a remote server using the below:-
runas /user:DOMAIN\USER cmd
When this is running as the Administrative account, you can then use PSEXEC and launch CMD without further usernames or passwords.
Assume that you are currently sitting at, or logged in to the local computer, computer A.  You want to use psexec to run a process on computer B which is the remote computer.

First step:
psexec is a program and runs locally on computer A.  It has to execute to be able to do it's fun remote magic.  So it will run as the locally logged on user unless you do run it special like using runas as MichaelIanClaridge posted above.  If the user running psexec doesn't have the correct permissions to run psexec as a program locally then you will be denied permission.

psexec runs on computer A, but connects and starts to make changes to computer B.  When connecting to computer B psexec will use the current user account running psexec, or the user specified by the psexec "-u domain\user" parameter if it was supplied.  This means psexec needs to either be running on computer A as a user with admin rights to computer B or needs to have been started with the -u parameter to specify an admin user on computer B.  If not, you will also get permission denied.

If you wanted to copy the text in your command prompt when you try to run psexec we can help pinpoint where the issue is and help provide the correct solution.  Right click in the command window, select "Mark".  Then highlight the text and right click to copy it to the clipboard.  Then you can paste it here.
markservAuthor Commented:
Thanks everyone for your input.  I can't seem to get 'runas' to work, but in any case it probably isn't suitable as I want non-admin users to open a command prompt on a remote server.  Let me explain further.  We use Windows 2003 Terminal Services (TS) for our desktop environment, but users run CPU intensive batch jobs that slow down the TS machine, so I want these batch jobs to run on another server.  Currently users open a command prompt under their TS login and execute batch files, so I was hoping to emulate this using PSexec - which would open a command prompt on the remote server and use a network share to access the same disk users see under their TS session.  I don't want the users to have admin rights, so at the very least I need to hide admin password from users.  If PSexec can't achieve this, are there any other solutions?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Utilities

From novice to tech pro — start learning today.