PowerShell Scripts
Use PowerShell to remove Malicious Software | Viruses.
PowerShell can be a powerful tool for removing malicious software, but it is not typically used as a standalone antivirus solution. Instead, you can combine PowerShell with Windows Defender (the built-in antivirus on Windows) to scan for and remove viruses. Below is a PowerShell script that uses Windows Defender to perform a full system scan…
Read MoreUse PowerShell to Manage & Download Windows Updates.
You can use PowerShell to manage and download Windows updates by leveraging the PSWindowsUpdate module, which provides cmdlets for managing updates. Here’s a step-by-step guide to install the module and use it to check for, download, and install updates. Step 1: Install the PSWindowsUpdate Module Step 2: Import the PSWindowsUpdate Module After the module is…
Read MorePowerShell Script to Delete Temp Files.
You can use a PowerShell script to automatically delete temporary files from your system. Here’s a simple script that targets common temporary file directories such as the Windows Temp folder and the user’s Temp folder. PowerShell Script to Delete Temp Files How to Use This Script: Explanation: You can schedule this PowerShell script using Task…
Read More