AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PsExec (GUI Front End) - Remote Process Execution
Goto page Previous  1, 2
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Oct 22, 2008 2:42 pm    Post subject: Re: Excellent work! Reply with quote

@Jon: Great little script! I use psexec all the time, and this GUI frontend will help things greatly. Thanks!!Very Happy

@ Alphaechocharlie: Great idea, but in addition to the changes you proposed:
alphaechocharlie wrote:

...
Code:
If rb_CompList = 1
  Computers = \\%CompList%
Else
  Computers = @"%CompFile%"

...


You need to also add this:
Code:
stringreplace, CompList, CompList, `,, `,\\, all


This will append the \\ to all of the computer names, not just the first one.Wink
Back to top
bqw371



Joined: 26 Nov 2008
Posts: 32

PostPosted: Tue Dec 09, 2008 5:58 am    Post subject: Reply with quote

Thanks for the great tool.
Back to top
View user's profile Send private message
Luka
Guest





PostPosted: Sat Jan 17, 2009 6:45 pm    Post subject: How to open the GUI ? Reply with quote

Hi,

sorry I'm not an expert, how can I run the script ?
What is the programming language ?

Thank you !
Back to top
Tom
Guest





PostPosted: Wed Aug 19, 2009 7:29 pm    Post subject: Re: How to open the GUI ? Reply with quote

Luka wrote:
Hi,

sorry I'm not an expert, how can I run the script ?
What is the programming language ?

Thank you !


I have been given a task at work, and was supplied with an earler version of PSexec.exe, I have never used this tool before, every thing I have tried so far is hopeless, this gui is just what might save my bacon. I have copied the script data to notepad, saved it as .vbs and as .bat I am unable to get it to run, please can advise how this is suppose to activated.

thanx
Back to top
tangy
Guest





PostPosted: Fri Oct 30, 2009 6:21 pm    Post subject: gui Reply with quote

Tom,

I had the same issue and after some digging here I found you need to install the autohotkey program on your computer, copy the script into notepad and save as *.ahk.

Once you do that you can right-click on the script and turn it into an .exe file.

This is an awesome tool.
Back to top
csaborio
Guest





PostPosted: Tue Nov 10, 2009 1:45 am    Post subject: Wow, just wow. Reply with quote

This is an amazing script, I was looking for something exactly like this and just found your wrapper, thank you thank you thank you!!! Smile
Back to top
schmultzburger
Guest





PostPosted: Wed Mar 31, 2010 8:52 pm    Post subject: Reply with quote

Is this a dead project?

I can't get this to run in Win7 x64. I don't know if the problem is with compatibility with the latest version of PsExec (as someone else posted a while back) or my system.

I get an error:
Code:
Error at line 1.

Line Text: ÿþ;
Error: This line does not contain a recognized action.

The program will exit.

but with the actual "odd" characters where I put the html codes.

TIA
Back to top
Rabbit
Guest





PostPosted: Tue Oct 05, 2010 8:49 pm    Post subject: Trying to start Backup Exec Remote Agent Service Remotely Reply with quote

While looking at the services running on a server, I noticed that Backup Exec Remote Agent had stopped. How can I start the service remotely from the computer in my office, either thru command prompt, script, batch file, etc.. Thanks for the help.

Service name: beremote.exe
Path: \\servername\c$\program files\symantec\backup exec\raws\beremote.exe

I tried the following, but did not work: ERROR CODE 0
\\%var%\c$\psexec /accepteula \\%var% -s "C:\Program Files\Symantec\Backup Exec\RAWS\beremote.exe"

If you need more info., let me know.
Back to top
MacroMan!



Joined: 28 Aug 2009
Posts: 595
Location: Brighton, UK

PostPosted: Wed Oct 06, 2010 11:07 am    Post subject: Re: Trying to start Backup Exec Remote Agent Service Remotel Reply with quote

Rabbit wrote:
While looking at the services running on a server, I noticed that Backup Exec Remote Agent had stopped. How can I start the service remotely from the computer in my office, either thru command prompt, script, batch file, etc.. Thanks for the help.

Service name: beremote.exe
Path: \\servername\c$\program files\symantec\backup exec\raws\beremote.exe

I tried the following, but did not work: ERROR CODE 0
\\%var%\c$\psexec /accepteula \\%var% -s "C:\Program Files\Symantec\Backup Exec\RAWS\beremote.exe"

If you need more info., let me know.


From the command line (cmd) you can run:

Code:
sc \\CompName start ServiceName


Note that ServiceName is not what is shown as the name in the Services control panel, you have to look at the properties of the service to get the correct name.

Details of the SC function here

David
_________________
I'm still here.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rabbit
Guest





PostPosted: Wed Oct 06, 2010 3:01 pm    Post subject: Re: Trying to start Backup Exec Remote Agent Service Remotel Reply with quote

From the command line (cmd) you can run:

Code:
sc \\CompName start ServiceName


Note that ServiceName is not what is shown as the name in the Services control panel, you have to look at the properties of the service to get the correct name.

Details of the SC function here

David[/quote]

Thank for responding to my question..!
I am able to see this service or process by managing the computer and looking at the service pane. Also, by using the task manager, I'm able to see this process active/running.

I tried to use: sc \\CompName start ServiceName[/code]
But, it does not find this process running.
I really do appreciate your input. Many thanks...!
I willcontinue beating my head against the wall 'till I find a solution.
If you have any more input on this, it will be greatly appreciated.
Back to top
MacroMan!



Joined: 28 Aug 2009
Posts: 595
Location: Brighton, UK

PostPosted: Wed Oct 06, 2010 4:37 pm    Post subject: Reply with quote

You could try running this from the command line on the machine where the service is/should be running:

Code:
sc query ServiceName


This will tell you what sc thinks of the service.

If it tells you the service doesn't exist, find the service in the services control panel applet (or manage computer) and right-click -> properties to get the actual service name rather than the display name:



The use that in the sc command. e.g.:

Code:
sc query stisvc


David
_________________
I'm still here.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rabbit
Guest





PostPosted: Thu Oct 07, 2010 1:22 pm    Post subject: STARTING OR STOP A SERVICE REMOTELY Reply with quote

[quote="me01273"]You could try running this from the command line on the machine where the service is/should be running:

Code:
sc query ServiceName


This will tell you what sc thinks of the service.

If it tells you the service doesn't exist, find the service in the services control panel applet (or manage computer) and right-click -> properties to get the actual service name rather than the display name:


me01273, you are abolutely right.
I got it now. It was tricky for me to get the name of the service and not the display name or file specified in the path.
I was able to start the service using the SC command. And I was also able to start the service using the famous: PSEXEC.
I would like to take the oportunity to thank you so much.
This forum is awesome...!
Thanks me01273...!
Back to top
MacroMan!



Joined: 28 Aug 2009
Posts: 595
Location: Brighton, UK

PostPosted: Thu Oct 07, 2010 4:58 pm    Post subject: Reply with quote

No problem whatsoever my friend,

and your right, this forum is awesome.

David
_________________
I'm still here.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MrShortcut



Joined: 21 Jul 2009
Posts: 112

PostPosted: Wed Jul 13, 2011 8:23 pm    Post subject: Reply with quote

Does anyone know how this could be tweaked to allow it to pipe the results?
Back to top
View user's profile Send private message
Bartimus



Joined: 10 Nov 2005
Posts: 164
Location: Texas

PostPosted: Thu Jul 21, 2011 3:10 pm    Post subject: Reply with quote

MrShortcut wrote:
Does anyone know how this could be tweaked to allow it to pipe the results?


PsExec doesn't have a method of outputting it's results that I'm aware of. I've tried the standard piping method and all you get is a blank text file.

Anyways, PsExec switch syntax can be found here:
http://technet.microsoft.com/en-us/sysinternals/bb897553

If you can figure out how to capture it, I'd be interested too.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group