Windows Server Admin
Windows Server Admin blog which includes guides to boost performance and efficiency, written by an experienced Microsoft SQL DBA, Peter Whyte.
-
Create a Firewall Rule with PowerShell (New-NetFirewallRule)
Create a Windows Firewall rule with New-NetFirewallRule, check it with Get-NetFirewallRule, then change, disable or remove it, with the SQL Server rules a DBA actually needs.
-
How to Run PowerShell Scripts with Task Scheduler
Automating PowerShell scripts is a much needed task for Windows Administrators. The Task Scheduler provides a reliable way to execute scripts on a predefined…
-
Restart a Service on Multiple Servers With PowerShell
📜Part of the PowerShell Complete Guide, every PowerShell post on this site, grouped by the job you are doing. To restart a service on several servers at once, run Restart-Service inside Invoke-Command with a list of computer names. Each server runs the command at the same time and the results come back to your console. […]
-
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…
-
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.
-
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.