Category filter

Script to restart Google Chrome on Windows devices

Google Chrome is an essential part of all our work lives. But the zillion tabs we keep open for days on end can harm the device, making it slower, less efficient and prone to security threats, which is why IT admins need to restart Chrome on their managed devices from time to time. A restart could also be necessary in case of a Chrome update or as part of a troubleshoot. With the help of Hexnode UEM’s Execute Custom Script action, IT admins can deploy the script given below to restart Google Chrome remotely on Windows devices.

Disclaimer:


The sample scripts provided below are adapted from third-party open-source sites.

PowerShell script to restart Google Chrome:

The script uses Task Scheduler to automate the restart. The file path following –FilePath and –WorkingDirectory has to be modified according to the location of the app on the devices.

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository