Even to this day...
In Windows I will drop to a command prompt and type:
hostname
And then manually shut it down after comfirming it's the machine I expect it to be with something like
shutdown /s /t 0 /f (substuting various /s /r etc as required)