Windows | I do stuff sometimes.

Ramblings about things.

Archives

Windows: Server stuck in shutdown after installing patches


One of my servers in my labenvironment refused to gently reboot after installing a ton of patches that I.. uhm.. forgot to install. The “restart-computer -computername DC1” cmdlet wouldn’t do anything, as it returns with : Restart-Computer : Failed to restart the computer dc1 with the following message: A system shutdown is in progress. Figures,…

Read More

Windows: Autologon for Domain User


I have some machines in my lab at home that, due to heavy testing and other stuff, reboots often. Some of my applications are dependent on the user beeing logged on to function properly – so instead of manually logging on each time my server boots, I fiddled around in registry to make the domain…

Read More

List Windows Server OS


I always forget the correct line for listing these things with WMI. Therefore, it’s now perpetuated on Fuffle.net. =) cls $servers = get-content “C:tempserverlist.txt” foreach ($s in $servers){ $gwmi = (Get-WmiObject -ComputerName $s -class win32_operatingsystem -ErrorAction SilentlyContinue).caption write-host “$s – IP:”([System.Net.Dns]::GetHostAddresses($s)) – $gwmi -foregroundcolor “green”} -F

Read More

  • Archives