You are here: Sysadmins of the North » PowerShell » Page 2

PowerShell

PowerShell Tag Archive

You are here: Sysadmins of the North » PowerShell » Page 2

Windows Defender: Turn off routine remediation

Long story short: During the transition of antivirus software to Windows Defender Antivirus (WinDefend), I don’t want Windows Defender remediation on threats it might find. Later, when I have more information about potential threats, I can always choose to remediate that threat, e.g. quarantaine or remove it. Unfortunately, there is no PowerShell cmdlet to configure this. Here is how to (temporarily) turn off routine remediation.

Increase WMI memory to support large volume of queries

Since I started expanding my Zabbix scripts and templates for monitoring Windows Server instances – AD, IIS and SQL Server – I found WMI was failing more and more. WMI stopped working: WmiPrvse.exe would just crash after hitting some memory limit of 512 MB. If you run into the same issue with Windows Management Instrumentation, here is how you can increase WMI Provider Service’s memory quota. Doing so resolved my issues.

Install and setup IIS Manager for Remote Administration in Windows Server IIS (step by step)

IIS Manager for Remote Administration in Windows 10

Learn how to install and configure IIS Manager for Remote Administration of your Windows Server IIS web server, in Windows 10 and Windows 11. Step by step. You can use IIS Manager to administer various components of your website through a graphical user interface (GUI) if it’s hosted in Windows Server IIS.

Getting more out your Windows Performance Counters monitoring for web applications – part 3

Zabbix logo

This is part 3 about Zabbix monitoring for your websites and ASP.NET applications in IIS. This time I’ll show you how to get data from Win32_PerfRawData_PerfProc_Process counter, fast, for everey application pool This counter is notorious for its slowness, but you can get data a bit faster. IIS AppPool Insights in Zabbix – because there is always more than one way.

ASP.NET web application monitoring in Zabbix, part 2

Zabbix logo

When you host multiple websites in IIS, and you need to monitor them, Zabbix is one of your options. In Zabbix, you can take advantage of Windows Servers performance counters using perf_counter and perf_counter_en. In this article, I’ll show you some important Windows performance counters to monitor your ASP.NET web application in Zabbix.

Quickly view all symbolic links, junctions points and hard links in a folder

birds eye view of asphalt road

When you are migrating a file server to a new server, and transfer data to your new SMB share, you may need to recreate junction points, as they can’t be copied using (for example) Robocopy. Therefore it’s a must to know where you have junction points, and that’s where plain old DIR comes to the rescue.

Find vulnerable WordPress plugin versions fast using PowerShell

source code WordPress security plugin

On a daily bases, new vulnerabilities are found in WordPress plugins. And when you host thousands of WordPress sites, you can count on the fact you have some customers using that vulnerable version of that particular plugin. So you need to find those vulnerable versions on your servers fast. On Windows Server, PowerShell is a perfect tool for the job!

WMI Filters for Group Policy to manage Windows Server versions

WMI Query GPMC WMI Filter

This post contains some example WMI filters for you to use in Group Policy Objects (GPOs) to target and manage specific Windows Server versions like 2012R2, 2016 and Windows Server 2019. Using the Windows Management Infrastructure, or WMI, Windows admins can create filters to apply GPOs more granular on specific versions of Windows Server. In this post I provide some basic examples.

Scroll to Top