Jump to content
Sign in to follow this  
thatguy2223

Remote CMD

Recommended Posts

thatguy2223

I wrote a quick script to start a remote CMD session with psexec.exe.

I figured someone may find this useful.

If Not FileExists("./psexec.exe") Then
Msgbox(0,"Missing","Psexec.exe was not found." &@CRLF&  "Please go to http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx" &@CRLF&  "Place Psexec.exe in the same folder as RemoteCMD.exe")
;FileInstall("./psexec.exe","./psexec.exe",0)

$Computer = InputBox("RemoteCMD","Computer Name","","",100,10)
If @Error = 1 Then
Exit
Endif
RunWait("psexec \\"&$Computer&" cmd.exe")
Exit

RemoteCMD Binary-Source.zip

Share this post


Link to post
Share on other sites
ThMaStEr

Hi

I try it and it didnt connect to my brother pc (in the same network) but on my local pc works fine ?

Share this post


Link to post
Share on other sites
enaiman

psexec is an awesome tool but not very easy to work with.

You can have a script working fine in WinXP but not working at all in Win7/Vista.

If you have Win7/Vista and psexec fails, it is because of some credentials conflict and you will have to play with starting cmd.exe as a different user, being sure that "that" user has access rights on the remote computer ...etc

You will need to check sysinternals forums for solutions and be prepared for quite a serious trial-and-error run.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.