MatthewL Posted June 21, 2010 Posted June 21, 2010 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.
vikpaw Posted June 21, 2010 Posted June 21, 2010 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.
vikpaw Posted June 21, 2010 Posted June 21, 2010 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.
MatthewL Posted June 21, 2010 Author Posted June 21, 2010 What I am trying to do is run the mstsc file from a server that is on one of the two server suites.
strawberry Posted June 21, 2010 Posted June 21, 2010 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.
MatthewL Posted June 21, 2010 Author Posted June 21, 2010 Thanks Strawberry. I'll just RDP to a server then RDP off that, trying to make things simple!
srochford Posted June 22, 2010 Posted June 22, 2010 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.
MatthewL Posted June 22, 2010 Author Posted June 22, 2010 We have the bandwidth just a pain having to hop via another box. I will just have to live with it!
vikpaw Posted June 22, 2010 Posted June 22, 2010 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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now