Category filter

Script to Clear Browsing History on Windows devices

In institutions such as hotels, hospitals, and schools, the devices may be shared among multiple users. In such instances, other users may gain access to the users’ internet surfing history. Hence, organizations may require to delete the browsing history from the devices to protect the privacy of each user. However, manually clearing browsing history from every device will be a cumbersome process. Hexnode lets you remotely do this on Windows devices by executing custom scripts from the portal.

Note:


Supported Versions:

The scripts given below will be supported on the following versions:

  • Windows 10 v1607+ (Pro, Enterprise, Education)
  • Windows 11 (Pro, Enterprise, Education)

Disclaimer:

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

Batch script

1) Clear browsing history of Google Chrome

Replace “Username” with actual username.

2) Clear browsing history of Microsoft Edge

Windows Batch script to delete browsing history of Microsoft Edge returns the output in the Action History tab of Hexnode.

Replace %Username% with actual username.

PowerShell script

1) Clear browsing history of Google Chrome

Replace “Username” with your username.

2) Clear browsing history of Microsoft Edge

Windows PowerShell script to delete browsing history of Microsoft Edge returns the output in the Action History tab of Hexnode.

Replace “Username” with actual username.

How to View Script Output in Hexnode

To review the execution results, navigate to the Action History tab of the specific device in your Hexnode UEM portal. Locate the script entry in the Subject column and click the Show Output button next to the status field to view the returned data.

Notes:

  • The script works only when the browser is closed.
  • 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