thatguy2223 Posted March 18, 2011 Posted March 18, 2011 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") ExitRemoteCMD Binary-Source.zip
ThMaStEr Posted March 20, 2011 Posted March 20, 2011 Hi I try it and it didnt connect to my brother pc (in the same network) but on my local pc works fine ?
enaiman Posted March 20, 2011 Posted March 20, 2011 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 :)
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