Jump to content

Remote CMD


thatguy2223
 Share

Recommended Posts

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

Link to comment
Share on other sites

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 :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...