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: 196  
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 check if process is running report
by  Randomusername   Go to last post Go to first unread
Last post: Yesterday at 8:00:49 PM(UTC)
Lansweeper Active Assets Versus Non-Active
by  RC62N  
Go to last post Go to first unread
Last post: Yesterday at 4:57:18 PM(UTC)
Lansweeper Top 10 users submitting tickets
by  ChuckSchurman   Go to last post Go to first unread
Last post: Yesterday at 3:53:21 AM(UTC)
Lansweeper Identifying weak protocols
by  Jason Tree  
Go to last post Go to first unread
Last post: 8/20/2019 3:06:03 PM(UTC)
Lansweeper Ticket Report Overview
by  briangmiller   Go to last post Go to first unread
Last post: 8/20/2019 1:49:35 PM(UTC)
Lansweeper switch ports with multiple assets
by  FischbachM  
Go to last post Go to first unread
Last post: 8/19/2019 9:10:42 AM(UTC)
Lansweeper Modify "....less than 1GB free HD..." Report
by  Cripple.Zero   Go to last post Go to first unread
Last post: 8/15/2019 7:11:10 PM(UTC)
Lansweeper Individual asset compliance
by  ToeCutter  
Go to last post Go to first unread
Last post: 8/15/2019 11:40:57 AM(UTC)