Microsoft Automatic Updates are an essential part of keeping your computer up to date and secure. By enabling this feature, your computer will automatically download and install important updates from Microsoft. In this article, we will guide you on how to opt-in to Microsoft Automatic Updates using PowerShell.
Step 1: Open PowerShell
PowerShell is a powerful scripting language and command-line shell provided by Microsoft. To open PowerShell, follow these steps:
- Press the Windows key on your keyboard.
- Type "PowerShell" in the search bar.
- Click on the "Windows PowerShell" app to open it.
Step 2: Run PowerShell as Administrator
To make changes to the Windows Update settings, you need administrative privileges. Here's how you can run PowerShell as an administrator:
- Right-click on the "Windows PowerShell" app.
- Select "Run as administrator" from the context menu.
Step 3: Enable Automatic Updates
Now that you have PowerShell open with administrative privileges, you can enable Automatic Updates by running the following command:
Set-MpPreference -SignatureDisableUpdateAutomatic $false
This command will set the "SignatureDisableUpdateAutomatic" preference to false, enabling Automatic Updates for Microsoft Defender Antivirus.
Step 4: Verify the Changes
To verify that the changes have been applied successfully, you can run the following command in PowerShell:
Get-MpPreference | Select-Object SignatureDisableUpdateAutomatic
If the command returns "False," it means that Automatic Updates are now enabled.
Step 5: Close PowerShell
Once you have verified that Automatic Updates are enabled, you can close PowerShell by clicking on the "X" button in the top-right corner of the window.
That's it! You have successfully opted in to Microsoft Automatic Updates using PowerShell. Your computer will now download and install important updates automatically, keeping your system secure and up to date.
References
| Number | Source |
|---|---|
| 1 | Microsoft Docs - Set-MpPreference |
| 2 | Microsoft Docs - Get-MpPreference |