PowerShell

PowerShell Tag Archive

PowerShell

Use -SearchBase with Get-ADComputer for faster results

Using -SeachBase with PowerShell’s Get-ADComputer cmdlet gives faster results when querying Active Directory Domain Services (AD DS) with PowerShell. You can use this for your own advantage, here is a little example to speed up AD DS queries.

PowerShell PowerShell 5.0

Install Windows Server Servicing Stack Updates (SSU) using PowerShell

Install Servicing Stack Updates (SSU) for Windows Server 2012R2, 2016 and Windows Server 2019 using PowerShell, without downtime. Because they must be installed prior to normal Windows Server security updates you can install an SSU anytime you want to during the day. Here’s a small PowerShell example to do so.

Windows Server

How to uninstall and remove Adobe Flash Player in Windows Server

How to uninstall and remove Adobe Flash Player in Windows Server.Ever wondered why Windows Server Update Services (WSUS) offers Flash updates for Windows Server? Adobe Flash Player is installed on Windows Server 2016 / 2019 if you have the Remote Desktop Session Host (RDSH) role installed. Yikes! I can imagine you want to delete Adobe Flash Player without deleting the RDSH role, and here is how.

PowerShell

Working with file attributes in PowerShell

Here is how to use Get-Item and Get-ItemProperty in PowerShell to perform and streamline day to day tasks like installing or updating software based on file versions. Working with PowerShell’s Get-ItemProperty to get file attributes may boost your work productivity. It’s often easier to getting things done if you have a more generic way of doing something. I also address changing timestamps on files in short.

Windows Server

Windows Server 2016 on Hyper-V stuck at stopping

If a Windows Server 2016 guest VM on Hyper-V hangs while stopping after Windows Updates, and it won’t reboot, it might be caused by the recovery debug information type set. Especially when you have moved the Windows PageFile to a different partition/VHDX.

Windows Server

List all SPNs used in your Active Directory

A service principal name (SPN) is a unique identifier of a service instance. Listing duplicate SPNs is fairly easy, but how do you find out which SPNs are used for which users, computers and services? Start troubleshooting SPNs here and learn how to use setspn.exe to list all SPNs used in your Active Directory.

Windows Server

How to: Determine which .NET Framework versions are installed

Users can install and run multiple .NET Framework versions on their computers. When you develop or deploy your app, you might need to know which .NET versions are installed on the user’s computer. To get an accurate list of the .NET Framework versions installed on a computer, you can view the registry or query the registry in code. Note that the .NET Framework consists of two main components, which are versioned separatel

Windows Server WSUS Application Pool IIS Advanced Settings

WsusPool keeps crashing: stops again and again

Is Windows Server Update Services (WSUS) slow or is WSUSPool application pool constantly crashing or restarting? Are client computers checking for Windows Update erroring out with code 0x80244021? This indicates the client is unable to reach WSUS. Here is how to improve Windows Server Update Services (WSUS) availability.

PowerShell

How to detect ethernet network speed in Windows

Detect the ethernet network speed using PowerShell or WMI is perfect for Windows Server Core. If you ever need to lookup the speed of your ethernet network card in Windows, on the command-line, use one of the following WMIC commands on your PowerShell prompt

Windows Server

DisableNSRecordsAutoCreation with Dnscmd

This post explains how to restrict automatic NS resource record registration in Windows Server DNS using Dnscmd. This prevents Windows Server DNS to automatically create NS records for zones that it hosts on the server.

Windows Server Clean-up rituals after the parade

5 Extra ways to clean up disk space in Windows Server

Disk cleanup in Windows Server using DISM is one of the most popular posts here on Saotn.org. It is still valid for Windows Server 2016 and up. So apparently, disk space usage is an issue in Windows Server. Which made me wonder: what more ways to clean up disk space in Windows Server are there?