Access denied. Only machine administrators are allowed to create administration service job definitions of type.


The error is due to the user that ran the script does not have machine administrator privileges.


Please find solutions below to resolve the issue.


You will get the needed permissions as a Machine Administrator when you start the particular application with “Run As Administrator”.

Solution 2:

Configure the UAC (UserAccountControl) in a way to always be Machine Administrator.

To do this you need to turn off UAC (User Account Control) via the registry by changing the DWORD "EnableLUA" from 1 to 0 in


Reboot the server once the update is done.

See more at: