Use PowerShell function to get reboot details remotely

In this article you will find useful function which will help you get reboot details from remote machines. Script use Get-WinEvent command to find reboot related log entries. Additionally it also check last reboot time and calculate it’s up time. Script will collect following information: – BootUpTime – UpTime – RebootDate – UserName – Action – Process – Reason Write-Host command has been used for displaying “UpTime” and “BootUpTime” values …

Using Out-GridView with -PassThru parameter to select multiple objects

If you were wondering how to select multiple objects from pop-up window using PowerShell then this post might be interesting for you šŸ™‚ I would like to show you how you can easily select your servers with Out-GridView command. In this example I’ve created simple script where you can choose multiple servers for example for post patching reboots. On the beginning I added some short title: When you press enter …

Reboot server remotely via PowerShell

I guess that all of the server administrators had this situation when server was not responding. If you don’t have access to iDRAC, iLO .etc the only way to fix the issue will be rebooting server remotely. So today I would like to show you couple of ways to do that. The easiest way is to run cmd as an administrator and use command: SHUTDOWN /r /f /t 0 /mĀ \\servernameĀ /c …