Manually install OpenSSH in Windows Server
How to install OpenSSH Server in Windows Server Core using PowerShell. In this tutorial, you’ll learn how to install Microsoft SSH Server in Windows Server 2022
PowerShell Tag Archive
How to install OpenSSH Server in Windows Server Core using PowerShell. In this tutorial, you’ll learn how to install Microsoft SSH Server in Windows Server 2022
Emulate ternary or conditional operator in PowerShell 5. It takes three operands: a condition followed by a question mark (?), then an expression to execute if the condition is truthy followed by a colon (:), and finally the expression to execute if the condition is falsy. This operator is frequently used as an alternative to an if…else statement.
No more need for Windows Server IIS? Want to remove IIS completely from Windows Server using PowerShell? Here is how. As a bonus, you’ll learn to create a backup first.
When WSUS downloads are slow. WSUS uses BITS for downloading updates, and it does so in background mode. Unfortunately, this utilizes remaining bandwidth of the server instead of its full capacity. To speed up WSUS downloads, you can configure BITS in WSUS to use foreground.
How to find all symbolic links, junction points and hard links in a folder in Windows Server quickly? Use dir /al /s /b, or LinkType in PowerShell
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!
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. Example WMI filters for you to use in Group Policy Objects (GPOs) to target and manage specific Windows Server versions like 2012R2, 2016, 2019 and Windows Server 2022.
In this post I’ll show you how to configure an IP whitelist for IIS FTP Server using PowerShell iisadministration and webadministration modules. Secure your Windows Server FTP service (FTPSvc)
how to remove phantom application folders from websites in IIS using PowerShell? Today I wanted to remove application folders from the website configuration in IIS whose physical path on the filesystem was removed. E.g when the application folder “/test1” in the website example.com should point to z:\sites\example.com\www\test1 but was removed. Here is now.
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.
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 your normal Windows Server security updates, you can install them anytime you want to during the day. Here’s a small PowerShell example to do so.
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.
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.
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.
Listing duplicate SPNs is fairly easy, but how do you find out which SPNs are used for which users and which for computers? Start troubleshooting SPNs here and learn how to use setspn.exe to list all SPNs used in your Active Directory.