How to know the last boot time with PowerShell

Sometimes we need to know when was the last time that a server was rebooted, you can get this information with the follow cmdlet:

Get-CimInstance using the class win32_operatingsystem in this case I only want to know the server name and everything related to the boot.

please leave a comment


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s