T h e s y s t e m a d m i n i s t r a t o r h a s s e t p o l i c i e s t o p r e v e n t t h i s i n s t a l l a t i o n .
I trying to do a simple msiexec.exe uninstall using a command script or Executable With parameters. They both have the same problem. The script looks like this:
msiexec.exe /uninstall MyApp.msi /qn
When running this script TeamCity responds: T h e s y s t e m a d m i n i s t r a t o r h a s s e t p o l i c i e s t o p r e v e n t t h i s i n s t a l l a t i o n .
I have administrative rights on this PC. Is there something missing? My BuildAgent is not a service so the Java script is running as me.
Please sign in to leave a comment.
Ok I figured out this is because I'm trying to run a command that requires administrator priviledges. Anyway to tell TeamCity to run the script as administrator??
Ok since I'm running all my tests in VM machines which are in secured network, I went ahead and disabled admin check by doing this.
Go localpol
In Local Policies/ Security Options/ User Account Control, disable "Run all administrators in admin approval mode".
After this, you can run your commands and whatever in administrator mode without having to approve or select administrators. You account needs to be in the administrator group.