VMware Horizon Community
VMvvol
Enthusiast
Enthusiast
Jump to solution

Regarding error message: flexutils::executecommand: Error 2 calling " ... "

Experts!

I am trying to run one log-off task to force delete some files from one folder and it was not working and I found the below log from UEM debug log's

Error message: flexutils::executecommand: Error 2 calling del \\fileshare\path /q

any idea why I am getting this message?

Thank you,

Volga

1 Solution

Accepted Solutions
DEMdev
VMware Employee
VMware Employee
Jump to solution

Hi VMvvol,

del is a built-in command of cmd.exe – you can't just call it like that.

To call built-in commands, you need to prefix them with cmd.exe /c , so in your case something like cmd.exe /c del \\fileshare\path /q.

View solution in original post

7 Replies
Sravan_k
Expert
Expert
Jump to solution

Hi VMvvol,

Have checked the user have permission to delete files?

can you do a quick test by running that log-off task command from CMD on that particular user machine?

may I know why you are planning to delete thous files?

Regards,

Vkmr.

VMvvol
Enthusiast
Enthusiast
Jump to solution

Have checked the user have permission to delete files?

Yes, User is local admin.

can you do a quick test by running that log-off task command from CMD on that particular user machine?

Yes I can run my logoff task command from CMD with out any issues using switch /q

may I know why you are planning to delete thous files?

Actually, I am trying to delete downloads from user profile under downloads as we are redirecting download folder from GPO

is there any options where we can delete downloaded items at log-off?

0 Kudos
DEMdev
VMware Employee
VMware Employee
Jump to solution

Hi VMvvol,

del is a built-in command of cmd.exe – you can't just call it like that.

To call built-in commands, you need to prefix them with cmd.exe /c , so in your case something like cmd.exe /c del \\fileshare\path /q.

Sravan_k
Expert
Expert
Jump to solution

Got it,

please follow the UEMdev recommendation and it will work out and please provide your positive feedback!

Regards,

Vkmr.    

VMvvol
Enthusiast
Enthusiast
Jump to solution

Hi Vkmr/UEMdev,

It was working now after editing my command.

Do you know why it did not worked before with out cmd.exe? and how can we understand error messages like this

Thank you,

Volga. 

0 Kudos
Sravan_k
Expert
Expert
Jump to solution

Hi Volga,

Thanks for providing your positive feedback!!!!

As UEMdev said del is designed for cmd.exe, UEM flex engine can not understand your command with out proper syntax or incomplete command.

Now coming to error message, as we know that your command is not complete flex engine can not execute your command ["I think 'executecommand' is one of the flexengine utility"].

UEMdev, please also add your view on this comment!

Regards,

Vkmr. 

VMvvol
Enthusiast
Enthusiast
Jump to solution

Thanks for your quick response! it makes sense now

You guys are so helpful

Regards,

Volga.

0 Kudos