+ Post New Thread
Results 1 to 9 of 9
How do you do....it? Thread, PsTools - PsExec in Technical; I have PSExec on my PC and want to run a RDP command remotely as from where I work I ...
  1. #1

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66

    PsTools - PsExec

    I have PSExec on my PC and want to run a RDP command remotely as from where I work I cannot access all our servers so have to RDP to one of two sites then RDP again.

    What I want to do it run mstsc from one of our servers that is at one of the two locations.

    At the moment I have this command but it runs the mstsc on the server not on my machine: C:\PsTools\PsExec.exe \\nl-it-01 mstsc

    Does anyone know what I have to run to get this to run on my machine?

    Thanks in advance.

  2. #2

    vikpaw's Avatar
    Join Date
    Sep 2006
    Location
    Saudi Arabia
    Posts
    5,843
    Thank Post
    671
    Thanked 1,381 Times in 1,143 Posts
    Rep Power
    349
    maybe try -a or -i flags. i thought you'd have to specify the full path to the file on the remote machine, but could be mistaken.

  3. #3

    vikpaw's Avatar
    Join Date
    Sep 2006
    Location
    Saudi Arabia
    Posts
    5,843
    Thank Post
    671
    Thanked 1,381 Times in 1,143 Posts
    Rep Power
    349
    misread what you're doing.
    mstsc will run for you and give you a window to one server. then from that console you can run it again local to that server to open a session on the other server. is that what you're trying to do.
    you shouldn't need psexec. you can try it without the \\compname parameter if you want it to run local, but then there's no point running psexec.

  4. #4

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    What I am trying to do is run the mstsc file from a server that is on one of the two server suites.

  5. #5

    Join Date
    Mar 2007
    Posts
    1,748
    Thank Post
    79
    Thanked 288 Times in 219 Posts
    Rep Power
    70
    you cant, the only gui you can bring from a computer your controlling with psexec is the command line. vnc might be a better option for what your trying to do.

  6. #6

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    Thanks Strawberry.

    I'll just RDP to a server then RDP off that, trying to make things simple!

  7. #7

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    That will work but, depending on bandwidth, it might not give a good experience!

    If you can find command line equivalents for what you're trying to do then those will work with psexec and will be much smoother. Obviously not everything can be done from the command line but lots of things can and it's worth investigating.

  8. #8

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    We have the bandwidth just a pain having to hop via another box. I will just have to live with it!

  9. #9

    vikpaw's Avatar
    Join Date
    Sep 2006
    Location
    Saudi Arabia
    Posts
    5,843
    Thank Post
    671
    Thanked 1,381 Times in 1,143 Posts
    Rep Power
    349
    Quote Originally Posted by MatthewL View Post
    Thanks Strawberry.

    I'll just RDP to a server then RDP off that, trying to make things simple!
    That's sort of what i meant in my 2nd post. Nest RDP works well, i do it all the time, sometimes 3 deep, as everywhere i log in, i'm often rdp'ing to somewhere else, so if i work from home, they all nest together. So long as you're careful not to create a loop it's fine!

SHARE:
+ Post New Thread

Similar Threads

  1. PSEXEC error code 1
    By bladedanny in forum Windows
    Replies: 5
    Last Post: 23rd June 2010, 08:34 PM
  2. psexec, msiexec, domain, permissions etc
    By sparkeh in forum Windows
    Replies: 5
    Last Post: 27th February 2009, 08:06 PM
  3. USING PSEXEC
    By Admiral208 in forum How do you do....it?
    Replies: 3
    Last Post: 22nd January 2009, 11:06 PM
  4. psexec
    By chrbb in forum Windows
    Replies: 1
    Last Post: 21st April 2008, 03:05 PM
  5. Using PSexec To Install
    By Pear in forum Windows
    Replies: 18
    Last Post: 29th November 2005, 02:30 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •