ITHELPSUPPORT
HOME
  • Downloads
  • Linux News
  • Windows
  • Mac
  • Website
  • Tech News
  • Reviews
  • AI
No Result
View All Result
  • Downloads
  • Linux News
  • Windows
  • Mac
  • Website
  • Tech News
  • Reviews
  • AI
No Result
View All Result
ITHelpSupport
No Result
View All Result
Home Windows

How to Enable Windows Security with PowerShell

by Anshika
August 21, 2024
117
1
168
SHARES
526
VIEWS
Share on FacebookShare on Whatsapp

Windows 11 Security is a critical feature that helps protect your device from malware, viruses, and other threats. While you can enable it through the standard graphical interface, using PowerShell provides a powerful and efficient way to automate the process, especially useful for IT professionals managing multiple devices. In this article, we’ll walk you through the steps to enable Windows 11 Security using PowerShell.

Why Use PowerShell to Enable Windows Security?

PowerShell is a command-line tool that allows for advanced automation and scripting, making it ideal for managing Windows systems at scale. By using PowerShell, you can enable or configure Windows Security across multiple devices quickly, ensuring consistent security settings without manual intervention.

Prerequisites

Before you begin, ensure that:

  • You have administrative privileges on the device.
  • Windows PowerShell is installed on your system (it comes pre-installed on Windows 11).
  • Windows Security features are not disabled by Group Policy.

Steps to Enable Windows Security with PowerShell

Step 1: Open PowerShell with Administrative Privileges

To perform security-related tasks, you’ll need to run PowerShell as an administrator:

  1. Right-click the Start button and select Windows Terminal (Admin) or Windows PowerShell (Admin).
  2. If prompted by User Account Control (UAC), click Yes to grant administrative access.

Step 2: Enable Windows Defender Antivirus

Windows Defender Antivirus is a core component of Windows Security. To enable it, use the following PowerShell command:

Enable Windows Defender Antivirus

powershell
Set-MpPreference -DisableRealtimeMonitoring $false

This command ensures that real-time monitoring, which scans files and processes in real-time, is active.

Step 3: Enable Windows Firewall

Windows Firewall helps block unauthorized network traffic. To enable it, run the following command:

Read:  Kmspico Windows 10 Activator

Enable Windows Firewall

powershell
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

This command enables the firewall for all network profiles: Domain, Public, and Private.

Step 4: Enable Tamper Protection

Tamper Protection prevents unauthorized changes to essential security settings. You can enable it with this command:

powershell
Set-MpPreference -DisableTamperProtection $false

This command ensures that critical security settings are protected from being altered by malicious software.

Step 5: Enable Cloud-Delivered Protection

Cloud-delivered protection offers rapid updates and cloud-based security intelligence. Enable it using this command:

powershell
Set-MpPreference -MAPSReporting Advanced

This command sets the Microsoft Active Protection Service (MAPS) to the advanced level, providing enhanced cloud-based protection.

Step 6: Enable Automatic Sample Submission

Automatic sample submission allows Windows Defender to send suspicious files to Microsoft for analysis. To enable it, run:

powershell
Set-MpPreference -SubmitSamplesConsent SendSafeSamples

This command configures Windows Defender to automatically submit safe samples, ensuring that suspicious files are analyzed without user intervention.

Step 7: Verify Windows Security Status

After enabling the necessary components, it’s important to verify that Windows Security is fully operational. Run the following command:

powershell
Get-MpComputerStatus

This command displays the current status of Windows Defender Antivirus, including real-time protection, virus definitions, and other key settings.

Automating the Process with a Script

If you manage multiple devices, you can automate the entire process by creating a PowerShell script. Here’s an example script that combines all the commands:

powershell
# Enable Windows Defender Antivirus Real-time Monitoring
Set-MpPreference -DisableRealtimeMonitoring $false
# Enable Windows Firewall for all profiles
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

# Enable Tamper Protection
Set-MpPreference -DisableTamperProtection $false

# Enable Cloud-Delivered Protection
Set-MpPreference -MAPSReporting Advanced

Read:  Office Network Printer Discovery Free Tools

# Enable Automatic Sample Submission
Set-MpPreference -SubmitSamplesConsent SendSafeSamples

# Output Windows Security Status
Get-MpComputerStatus

Save this script with a .ps1 extension (e.g., EnableWindowsSecurity.ps1) and run it as an administrator to apply the settings across multiple systems.

Conclusion

Enabling Windows 11 Security using PowerShell is a straightforward process that can be easily automated for managing multiple devices. By following these steps, you can ensure that your Windows 11 systems are protected against a wide range of threats. PowerShell’s automation capabilities make it an essential tool for IT administrators looking to enforce consistent security policies across an organization.

For ongoing security, remember to regularly check the status of Windows Security features and keep your system up to date with the latest security patches.

Get real time update about this post categories directly on your device, subscribe now.

Unsubscribe
Previous Post

Got a New Windows 11 PC or Laptop? Do These 10 Steps to Protect Your Device

Next Post

Synthetic Media and AI-Generated Content: Transforming the Future of Digital Media

Anshika

Anshika

Anshika is the computing editor of ITHelpSupport. If you need to know anything about computing components, PC gaming or the best laptops on the market, If you have any questions or concerns about the matter above, please don't hesitate to comment...

Related Posts

Fix Blue Screen of Death on Windows 11
Windows

How to Fix Blue Screen of Death on Windows 11 (Step-by-Step Guide)

by Raju Gujar
February 11, 2025
0

The Blue Screen of Death (BSOD) is one of the most frustrating errors Windows users can encounter. It appears when your system...

Read moreDetails
Got a New Windows 11 PC or Laptop? Do These 10 Steps to Protect Your Device

Got a New Windows 11 PC or Laptop? Do These 10 Steps to Protect Your Device

August 21, 2024
Windows 11 Slowness

How can I optimize Windows 11 for better performance

May 15, 2024

The Great Windows 11 Upgrade: Should You Make the Leap?

May 10, 2024
Load More
Next Post
Synthetic Media and AI-Generated Content

Synthetic Media and AI-Generated Content: Transforming the Future of Digital Media

Comments 1

  1. Pingback: Got a New Windows 11 PC or Laptop? Do These 10 Steps to Protect Your Device - ITHelpSupport.com

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

  • Deepnude App

    Deepnude App | Cloth Remover App

    950 shares
    Share 380 Tweet 237
  • Free AI Clothes Remover Websites

    493 shares
    Share 189 Tweet 118
  • iPhone 15 Pro | Pro Max Tips and Tricks

    412 shares
    Share 138 Tweet 87
  • Nokia Edge 2022 Price And Release Date 2023

    305 shares
    Share 122 Tweet 76
  • Nokia 7610 5G Review: Pros and Cons 2023

    298 shares
    Share 119 Tweet 75

© 2018-2023 ITHelpSupport.com

ITHelpSupport.com

  • Privacy-Policy
  • Terms & Conditions
  • Contact Us
  • About Us

Follow Us

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Windows
  • Linux News
  • Mac News
  • Website
  • Downloads
  • Tech News
  • AI
  • Review
    • Mobile Phone
    • Gadget
    • Apps
    • Laptop
    • Watch

© 2018-2023 ITHelpSupport.com

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.