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
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.
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.
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?
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.
Got it,
please follow the UEMdev recommendation and it will work out and please provide your positive feedback!
Regards,
Vkmr.
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.
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.
Thanks for your quick response! it makes sense now
You guys are so helpful
Regards,
Volga.