Hi
I am attempting to remove an application during computer startup using a script and group policy. The client is Windows 7 and the server is 2012.
I have created a very basic batch file:
msiexec /x {product GUID} /quiet
If I manually run this as a normal user, it fails since we have UAC enabled and don't let our standard users have local admin group membership. Which is fine and to be expected.
If I manually run it as an admin, it works.
So now I want to automate the process, so I have created a Group Policy Object, linked it to the OU where my test computer exists, and edited the policy. I have browsed to Computer Configuration -> Policies -> Windows Settings -> Scripts (Startup/Shutdown) -> Startup, and added the batch file.
The file is located in \\domain.com\SYSVOL\domain.com\Policies\{product GUID}\Machine\Scripts\Startup, as per Microsoft recommendation.
I have confirmed the policy is applied to the computer using gpresult.
The script does not appear to run no matter how many times I restart the computer. I cannot see any sign of it being processed in the event logs.
I have tried enabling the setting 'Always wait for the network at computer startup and logon' but this has not helped.
Since startup scripts run under the Local System account, I have used psexec to run an explorer session as the system account, then browsed to the batch file and tried to run it, but I get the following error:
Product: FortiClient SSLVPN v4.0.2277 -- Error 1730. You must be an Administrator to remove this application. To remove this application, you can log on as an Administrator, or contact your technical support group for assistance.
Any help is much appreciated.
Cheers
You cannot run explorer as system. Retry with cmd
psexec -s -I cmd
then, inside cmd, call that script.