Hi all.. Having weird issue..
I have a task that monitors a remote folder for old files and deletes them. Robotask is running on a domain joined server and is running on the domain administrator desktop in application mode. The remote folder is found on a second domain joined server, it is shared rw for everyone and domain admin group has full control security access.. The script can see the file, it sends an email alerting me that it is going to delete the file but when it runs the delete action, it fails. Yet, I can delete it from the share manually when logged in as the domain administrator. I have run as administrator selected in the robotask options.
Thoughts?
Thanks,
Rob
I: 6/6/2025 6:34:25 PM: ****** Starting task: Monitor Audition Import for _FAILED or _REJECTED Extensions or Invalid Files ******************
I: 6/6/2025 6:34:25 PM: Executing "1.File Loop (All Files)"
I: 6/6/2025 6:34:25 PM: Executing "2.Time Difference"
I: 6/6/2025 6:34:25 PM: Executing "3.If Extension Contains _failed or _rejected"
I: 6/6/2025 6:34:25 PM: Executing "7.ElseIf Then"
I: 6/6/2025 6:34:25 PM: Executing "8.Log Message"
-: 6/6/2025 6:34:25 PM: \\server\Import\Adobe\COMEE4V.wav found
I: 6/6/2025 6:34:25 PM: Executing "9.Send Email (Special Extension)"
I: 6/6/2025 6:34:26 PM: Executing "10.Delete File (Special Extension)"
W: 6/6/2025 6:34:26 PM: File "\\server\Import\Adobe\COMEE4V.wav" can't be deleted
W: 6/6/2025 6:34:26 PM: Access is denied.
I: 6/6/2025 6:34:26 PM: Executing "11.End If"
I: 6/6/2025 6:34:26 PM: Executing "12.End Loop"
Access denied
Re: Access denied
I think you got a conflict of permissions.
If you want to use domain administrator permissions there are two ways:
1-st way
Login as domain administrator on computer and run RoboTask with such task in this session.
2-nd way
use the action Run Program as User with domain administrator permissions.
The command line to delete file
there is also 3-d way
Give permissions to delete files in this folder to a user in your session. The option to start "As Administrator" should be removed. It is not necessary.
I think that this option is not domain administrator. This option means local administrative permissions.I have run as administrator selected in the robotask options.
If you want to use domain administrator permissions there are two ways:
1-st way
Login as domain administrator on computer and run RoboTask with such task in this session.
2-nd way
use the action Run Program as User with domain administrator permissions.
The command line to delete file
Code: Select all
cmd.exe /c del "<file_name>"
Give permissions to delete files in this folder to a user in your session. The option to start "As Administrator" should be removed. It is not necessary.
Oleg Yershov