Error on defragmentation disk script

We get this error most of the time on defrag disk’s.

Data: Traceback (most recent call last):
File “”, line 75, in
File “”, line 23, in install
File “C:\Program Files (x86)\COMODO\Comodo ITSM\lib\subprocess.py”, line 710, in init
errread, errwrite)
File “C:\Program Files (x86)\COMODO\Comodo ITSM\lib\subprocess.py”, line 958, in _execute_child
startupinfo)
WindowsError: [Error 5] Access is denied

@monster-it ,

We would like to know if this is the procedure that you’ve used https://scripts.itarian.com/frontend/web/topic/disk-defragmentation

Did you try to execute the procedure as System or Logged in User?

using both types. and yes it was the default defrag.

@monster-it ,

Our Scripts team did s quick check on the procedure. In order to execute this specific command on OS prompt, the user account needs to have sufficient privileges. Can you please try with other user accounts that have elevated privilege or admin privilege.