Skip to main content

Copilot - Enable/Disable

Summary

This script will uninstall and disable the Microsoft Copilot and Microsoft 365 copilot as well as its functionality in the Edge browser. It has the revert option available too to revert the changes to its original state. The Copilot changes stores to the computer-EDF from where the data populates to the DV. The revert and disable can be scheduled using Autofix monitors.

**Note: please make sure to get the below hash whitelisted if there is any blocking security application:

F02B553A62B90CE5720647FDADB568E8

EEE454AAB028DE1528935E8962FBD775

Sample Run

Set_Environment Copilot_Revert Normal_Execution

Dependencies

Monitor_Copilot_Disable_&_Uninstall

Monitor_Copilot_Revert_Deployment

DV_Copilot_Enable_Disable

User Parameters

NameExampleRequiredDescription
Revert1FalseRevert the Copilot changes to enable and install it on the agents where script has disabled and uninstalled it in the past.
Set_Envrionment1FalseThis is required to be run during import with value 1 so that the EDFs got imported for the solution to run properly.

EDFs

NameLevelTypeSectionExampleDescription
Copilot_StatusComputerTextCopilotDisabled -- 2025-02-28 00:00:00This stores the Copilot status after script completion with the script ran date and time
Exclude Copilot RevertComputerCheckboxExclusions1 or 0This excludes the copilot revert action for the computer where it is checked
Exclude Copilot RevertLocationCheckboxExclusions1 or 0This excludes the agents of the location where it is checked
Exclude Copilot DisableComputerCheckboxExclusions1 or 0This excludes the agent from getting its copilot disabled and uninstalled
Exclude Copilot DisableLocationCheckboxExclusions1 or 0This excludes the agents of the location from getting its copilot disabled and uninstalled
Copilot Revert EnableClientCheckboxCopilot1 or 0This check box allows the agents of clients to revert the Copilot disabling and uninstallation
Copilot Disable and UninstallClientCheckboxCopilot1 or 0This checkbox sets the agents of the client to disable its copilot and uninstall it completely

Output

  • Script log
  • Computer EDF
  • Local file directory
  • Dataview