Skip to content

cloudURBANE/PS-NetTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

PS-NetTools: Remote Configuration of Windows Defender Using PowerShell 🔒

A simple yet impactful PowerShell script project designed to demonstrate proficiency in configuring Windows Defender remotely, a crucial task for IT support, helpdesk, and system administrators. PS-NetTools provides hands-on experience with scripting automation, PowerShell, and Windows security configurations, making it an excellent showcase for hiring managers looking for expertise in these areas.


Project Overview

PS-NetTools aims to remotely configure Windows Defender settings using PowerShell. It allows administrators to control key security features, such as enabling real-time protection, setting exclusions, and updating virus definitions, without direct access to the end user's device. By completing this project, you'll gain a solid understanding of how PowerShell can be utilized for practical IT security tasks, reinforcing your value as a capable and resourceful technician.

Benefits of This Project

  • 🛡️ Security Expertise: Learn the ins and outs of Windows Defender's security features.
  • 🤓 Scripting Proficiency: Improve your PowerShell skills, a highly sought-after talent in IT support roles.
  • 💡 Automation Insight: Understand how to automate administrative tasks to save time and reduce errors.

Setup & Walkthrough (7 Steps)

Step 1: Prerequisites

Ensure you have administrative privileges on both your machine and the remote machine. Enable PowerShell Remoting by running the following command in PowerShell as an Administrator:

Enable-PSRemoting -Force

Step 2: Verify Defender Status

Use PowerShell to verify if Windows Defender is running on the remote system. Run:

Get-MpComputerStatus

Step 3: Configure Real-Time Protection

Enable or disable real-time protection on the remote system using the following command:

Set-MpPreference -DisableRealtimeMonitoring $false

Step 4: Set Exclusions

Add specific folder or file exclusions to reduce unnecessary scans and improve system performance. For example:

Set-MpPreference -ExclusionPath "C:\Temp"

Step 5: Update Defender Virus Definitions

Make sure Windows Defender is using the latest definitions:

Update-MpSignature

Step 6: Schedule Scans

Schedule a daily quick scan using Task Scheduler via PowerShell. Use the command below to automate scans:

schtasks /create /tn "DailyQuickScan" /tr "powershell.exe -command Start-MpScan -ScanType QuickScan" /sc daily /st 09:00

Step 7: Disable PowerShell Remoting (Optional)

For added security, disable PowerShell Remoting if it is no longer needed:

Disable-PSRemoting -Force

Usage Example

PS-NetTools provides a PowerShell script that can be run to automatically apply all of the above configurations to any Windows machine accessible via the network, with minimal user intervention. This script makes managing Windows Defender both efficient and secure.


Key Learnings

  • PowerShell Automation: Learned how to automate essential security configurations.
  • Remote Management: Enhanced ability to remotely manage Windows devices without GUI access.
  • Windows Security: Gained a deeper understanding of how to configure and secure Windows Defender using scripting.

Future Enhancements

  • Add logging to keep records of all changes made during the script execution.
  • Extend the script to allow configuration of other antivirus solutions through PowerShell.

Contact

For questions or collaboration, feel free to reach out:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors