Link to home
Start Free TrialLog in
Avatar of joukiejouk
joukiejouk

asked on

How can I deploy a ripper tool (a .exe file) to have it initiated on remote systems

McAfee provided this ripper tool because we are running into many problems with uninstalling McAfee VSE locally on Windows 2003 servers. I need to deploy this ripper tool to 400 remote machines (all the same with same OS version, Server 2003), and have it execute on the remote machines. Is there a script like psexec I can run to accomplish this? If so, can someone detail the steps? I have domain admin rights, and I am thinking I need to enter my credentials somewhere within the script perhaps.

Let me detail what I hope to accomplish. We can use the below example to write the script or bat file.

1. From the ePO server (server name is "ePO1"), I placed the ripper tool in the following path: "C:\VSEripper" folder. The ripper tool is named "rip.exe".
2. I want to execuite the ripper tool from the "ePO1" server. Need the ripper tool to execute on a few remote servers. E.g. - server1, server2, and server3. How would I write a script to accomplish this?
Avatar of telczj9
telczj9

You could copy the ripper via a batch script and then set a schedule task to run a couple of minutes later.  

The schedule task would run in the local context of each server.

Cheers!
Avatar of joukiejouk

ASKER

Would be nice if I can get a sample batch script using my example above.
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just want to know if I am entering the psexec command correctly. I created a text call "servers.txt", and input the servernames in the text file.  I entered the following from a command prompt:

C:\>psexec @\\epo01\c$\servers.txt -u abc\user1 -p itguy35 \\epo1\c$\vseripper\rip.exe

I get "Network path was not found" message in return.

If I am not able to execute the ripper tool remotely, then I would need to go with plan b, which is to place the ripper tool on all the desktops of the remote computers, and rdp into each one of theme to execute it from the local desktop of each server.  If I have to do that, what psexec command would I use to deploy the ripper to and place it on the desktops of all the servers? For example, I want to deploy it to server1, server2, and server3. what psexec command would I use? Please provide the command. Thank you.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, from the ePO01, I can browse the path \\epo01\c$\servers.txt. From the remote servers (server1, 2, and 3), I can browse the same path.

I ran the psexec command as mentioned: psexec @\\epo01\c$\servers.txt -u abc\user1 -p itguy35 -c \\epo1\c$\vseripper\rip.exe. It seem to just sit at a state that says copying and starting, but does nothing. Does this psexec command deploy the .exe and at the same time runs the .exe on the remote computers?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So I entered the psexec command as follows:

C:\>psexec @\\epo01\c$\servers.txt -u abc\user1 -p itguy35 \\epo1\c$\vseripper\rip.exe -d

However, it seems to sit and wait for one to complete before it move to the next. Also, does not give me any status if it succeeded or failed. Am I entering the psexec command correctly?
You could create a log file by adding the following at the end of the line.

>> \\epo1\c$\rip_install.txt 2>&1

This will create a file in the same location as the servers.txt that should show the results of each run. Someone can correct me if I'm wrong.
You need to put the -d somewhere before the call of the remote application:
psexec @\\epo01\c$\servers.txt -u abc\user1 -p itguy35 -d \\epo1\c$\vseripper\rip.exe

Open in new window

The tool is not interactive in any way, hopefully? That will not work, you cannot display a GUI or even control it remotely.
When i deploy the ripper tool, i checked locally on system, but it did not remove McAfee VSE like it's suppose to. I know that if I run the tool locally, it will remove McAfee VSE for sure. I'm noticing in Task Manager under the Processes tab, that the rip tool is shown and remain in there. But seem to just not do anything. Anyone have any thoughts?
i take that back, seems like it does remove it. Let me take a more detailed look.
You guys rock!