posts-powershell

Automating Defender Antivirus (Part 2)

Automating Defender Antivirus (Part 2)

On Windows, PowerShell comes with cmdlets to automate the built-in antivirus engine “Defender”. In this second part, let’s take a look at how you...

Automating Defender Antivirus (Part 2)

Converting Wavelength to RGB

PowerShell is a generic script language so you can do all kinds of stuff with it. Below is a function that takes a light wavelength and converts it...

Automating Defender Antivirus (Part 2)

Querying Advanced Printer Info via SNMP

Many network printer support SNMP to query information about the device, i.e. its serial number, the status and paper sizes of installed trays, or...

Automating Defender Antivirus (Part 2)

Using BITS to Download Files (Part 1)

What Is BITS (Background Intelligent Transfer System)? BITS (Background Intelligent Transfer System) is the technique used by Windows to download...

Automating Defender Antivirus (Part 2)

Identifying Windows Type

WMI returns a cryptic code number of every distinct Windows SKU: PS> Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object...

Automating Defender Antivirus (Part 2)

Launching PowerShell Scripts Invisibly

There is no a built-in way to launch a PowerShell script hidden: even if you run powershell.exe and specify -WindowStyle Hidden, the PowerShell...

Automating Defender Antivirus (Part 2)

Simple PowerShell Chat

Creating a Simple Multi-Channel Chat Room with PowerShell Here’s a fun PowerShell script that you can use to create a simple multi-channel chat...

Automating Defender Antivirus (Part 2)

Converting SecureString to Text

It can be very useful to be able to convert an encrypted SecureString back to a plain text. This way, for example, you can use PowerShell’s “masked...

1 2 3 11