Author: Peter Whyte
-
How to Rename a Computer that Hosts SQL Server
When changing the hostname of a computer that is running SQL Server, we have to update system metadata so that remote connections and applications do not lose…
-
PowerShell For Each Loop Example
Looping is a fundamental concept in PowerShell, and in programming in general. It's needed for various situations where we need to work with one object at a…
-
Get Estimated Database Backup/Restore Example
When you're waiting on a database backup or restore to complete in SQL Server, we can run the script below to get an estimated time of how long the backup has…
-
How to Check Windows Firewall Status with PowerShell
Want to quickly check whether your Windows Firewall is enabled or disabled? This guide shows you how to use PowerShell to get the status of your local Windows…
-
How to Enable Windows Firewall with PowerShell (Set-NetFirewallProfile)
Run Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True in an admin PowerShell window, then check with Get-NetFirewallProfile. What to check first, and what stops working once it is on.
-
How to Disable Windows Firewall with PowerShell
This post provides a demo on how to disable Windows Firewall with PowerShell on a Windows computer.
-
The Best Terminal for Windows
The best terminal for Windows is Windows Terminal. How to open it from Start, and what you get: tabs, a profile for every shell, shortcuts, split panes and the command palette.
-
Advanced File and Folder Creation with PowerShell
This post contains an advanced guide for creating and managing files and folders in PowerShell. It builds on the basics introduced in my previous post…
-
How to Restart WSL (wsl --shutdown and wsl --terminate)
Run wsl –shutdown to restart all of WSL, or wsl –terminate to restart one distro, then open it again. Which one you need after a .wslconfig change, and why it can start again by itself.