Windows Server Admin
Windows Server Admin blog which includes guides to boost performance and efficiency, written by an experienced Microsoft SQL DBA, Peter Whyte.
-
How to Shut Down a Computer with PowerShell and CMD
Shut down a Windows computer or server from PowerShell with Stop-Computer or from CMD with shutdown /s, check it first with -WhatIf, and cancel a scheduled shutdown with shutdown /a.
-
How to Check the Last Reboot Time of a Windows Computer
Check the last reboot time of a Windows computer with Get-Uptime in PowerShell 7, Get-CimInstance in Windows PowerShell 5.1, systeminfo in the Command Prompt, or Task Manager, and find out why it restarted.
-
PowerShell curl: Why -Uri and -OutFile Stopped Working
In Windows PowerShell 5.1 curl is an alias for Invoke-WebRequest. In PowerShell 7 it is not, it runs curl.exe, and the old flags either error or sit there asking for a password. Here is what to run in each.
-
Copy Files to a Remote Host with PowerShell
Copy-Item has no -ComputerName parameter, which is why the command you copied off the internet fails. The working form is -ToSession with a PSSession, and here is how to do it for one host and for several.
-
SSH Keys for GitHub on Windows With the OpenSSH Agent
Generate an ed25519 key, turn on the built-in Windows ssh-agent service, add the key to GitHub, point Git at the Windows OpenSSH so git push stops asking for the passphrase, and switch remotes to SSH.
-
Windows Administration: The Complete Guide
Every Windows administration post on this site in one place: building servers, domains and DNS, installing the tools you actually use, and the built-in commands that answer most questions before you start guessing.
-
Get-WUList Is Not Recognized: Install the PSWindowsUpdate Module
"Get-WUList is not recognized as the name of a cmdlet" means the PSWindowsUpdate module is not installed. Install-Module fixes it on Windows PowerShell 5.1, no PowerShell 7 upgrade needed.
-
How to Get and Set Environment Variables in PowerShell
Environment variables store key information on your system that programs can use to influence their behavior. For example, the AWS CLI uses the AWS_REGION…
-
How to Get Environment Variables on Windows
Environment variables in Windows contain information about the system’s environment, such as the directories containing executables or the system’s PATH. Programs can use these variables to find resources on the computer. They can be set at the system level or for individual user accounts and can be modified through the Control Panel or the command […]