PowerTip: Get the Last Boot Time with PowerShell | Scripting Blog

PowerTip: Get the Last Boot Time with PowerShell

Summary: Learn how to get the last boot time for your computer.

Hey, Scripting Guy! Question How can I find the last boot time for my computer by using Windows PowerShell?

Hey, Scripting Guy! Answer In Windows PowerShell 3.0, use the Get-CimInstance cmdlet, and select the LastBootUptime property from the Win32_Operatingsystem WMI class:

PS C:\> Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime

csname                                     lastbootuptime

——                                     ————–

EDLT                                       3/22/2013 11:27:01 AM

Hey, Scripting Guy! Answer In Windows PowerShell 2.0 and Windows PowerShell 1.0, use the Get-WmiObject cmdlet, and then translate the returned date to a readable format:

PS C:\> Get-WmiObject win32_operatingsystem | select csname, @{LABEL=’LastBootUpTime’

;EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}}

csname                                     LastBootUpTime

——                                     ————–

EDLT                                       3/22/2013 11:27:01 AM

Source: PowerTip: Get the Last Boot Time with PowerShell | Scripting Blog

How to Disable Bing Search in Windows 10’s Start Menu

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer

If it doesn’t exist, and you’re stuck in the “Windows” folder, simply right-click on the right-hand sidebar and create a new key. Name it “Explorer,” without the quotes. Click on that new key in the left-hand sidebar, and then right-click again on the right-hand sidebar and create a new DWORD (32-bit value). Name it “DisableSearchBoxSuggestions,” without the quotes or the comma. Then, double-click on it and set its value to 1. Finally, reboot your computer.

Download reg file

Source: How to Disable Bing Search in Windows 10’s Start Menu