Notification

Icon
Error

Execute scripts/command on remote machine - Unable to make it work, help!

Posted: Tuesday, March 12, 2019 12:30:49 PM(UTC)
Saulo Benigno

Saulo Benigno

Member Original PosterPosts: 7
0
Like
This is my script:

Quote:
Command:
Xcopy "{PackageShare}\Installers\uninstall.exe" c:\remotefolder /I /A /R /Y

Command:
Xcopy "{PackageShare}\Installers\executeFile.bat" c:\remotefolder /I /A /R /Y

Command:
c:\remotefolder \executeFile.bat


The bat files contains the uninstall command inside that execute the uninstall tool.

But the .bat file does not work. The uninstall.exe does not execute.

I tried one bat with a "msg * test ok" command and it does execute, tried one with a "dir > s.txt" but the s.txt file it's not created.

Why some commands execute on the remote machine and others not?

CyberCitizen
#1CyberCitizen Member Posts: 354  
posted: 3/20/2019 7:15:54 AM(UTC)
It is hard to tell without seeing what your trying to uninstall, but I would go away from using a bat file as it won't pass error codes through etc. I would create it as a deployment package with each step etc so you can see where it's failing, its a little extra work at the start but makes things alot easier.

Active Discussions

Lansweeper Edit Work Time Enhancements
by  pipapo   Go to last post Go to first unread
Last post: Yesterday at 3:41:25 PM(UTC)
Lansweeper software authorization based on "name" AND "version"
by  deejay3670  
Go to last post Go to first unread
Last post: Yesterday at 2:53:28 PM(UTC)
Lansweeper HP Warranty scan - broken for some products
by  JérômeS   Go to last post Go to first unread
Last post: Yesterday at 2:34:13 PM(UTC)
Lansweeper Helpdesk Report for unresolved tickets
by  Walter  
Go to last post Go to first unread
Last post: Yesterday at 2:08:39 PM(UTC)
Lansweeper Certificate status & end dates
by  Antoine EVRARD   Go to last post Go to first unread
Last post: Yesterday at 1:01:37 PM(UTC)
Lansweeper Assign switch port to location map
by  cycleheat  
Go to last post Go to first unread
Last post: 5/26/2020 5:21:54 PM(UTC)
Lansweeper Email Link back to ticket
by  TruckDriverTurnedIT   Go to last post Go to first unread
Last post: 5/26/2020 5:20:08 PM(UTC)
Lansweeper LSAgent not Scanning or Reporting all Software
by  cycleheat  
Go to last post Go to first unread
Last post: 5/26/2020 4:15:05 PM(UTC)