--- title: "Enable or Disable WinRE on Windows devices" slug: "enable-or-disable-winre-on-windows-devices" updated: 2024-02-02T13:31:40Z published: 2024-02-02T13:31:40Z canonical: "help.scalefusion.com/enable-or-disable-winre-on-windows-devices" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.scalefusion.com/llms.txt > Use this file to discover all available pages before exploring further. # Enable or Disable WinRE on Windows devices Windows Recovery Environment (WinRE) is a specialized, minimal operating system designed to help troubleshoot and repair issues that may prevent normal Windows startup. It plays a crucial role in system recovery, allowing users to perform troubleshooting steps and restore their system to a functional state. The following PowerShell script helps the IT Admins to enable or disable WinRE on managed Windows devices. 1. Create a file on your desktop, for example, **enable_WinRE.ps1**/ **disable_WinRE. ps1** and open it in a text editor like notepad++ 2. Copy the contents below to the file. 1. To enable or disable WinRE please change the script as below. ```powershell reagentc /enable ``` ```powershell reagentc /disable ``` 3. Follow [our guide](/docs/deploy-powershell-scripts-using-scalefusion) to upload & publish the PowerShell script using Scalefusion Dashboard. > [!CAUTION] > #### > > Please note that to use the PowerShell scripts, the Scalefusion MDM Agent Application must be installed on the device(s). Please follow [our guide](/docs/scalefusion-mdm-agent-application) to publish and install the Scalefusion MDM Agent Application. > [!CAUTION] > #### Notes: > > 1. The scripts and their contents are sourced from various albeit authenticated Microsoft sources and forums. > 2. Please validate the scripts on a test machine before deploying them on all your managed devices. > 3. Scalefusion has tested these scripts, however, Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the incorrect usage of these scripts.