viernes, 3 de abril de 2020

WINDOWS. PS. How was the last type of start in my Windows host

Purpose

Check how was the last tyepe of start in my host 

Steps


Command: Get-WinEvent -ProviderName Microsoft-Windows-Kernel-boot -MaxEvents 50 | Where-Object {$_.id -like "27"}



Exit codes:

0x0: cold start from total PC shutdown.
0x1: hybrid start, fast start.
0x2: Boot from the computer's hibernation state


Check at Windows 2012 R2 & W10
by GoN | Published: April 3, 2020 | Last Updated:

WINDOWS. PS. Test-Connection check Port


Purpose

Check if a port is open or close

Steps


Command: Test-Connection  HOST -port PORTNUMBER



Links  

https://gonsystem.blogspot.com/2017/08/windows-ps-test-connection-new-ping.html

https://gonsystem.blogspot.com/2018/04/windows-ps-how-is-my-public-ip.html


Check at Windows 2012 R2 & W10
by GoN | Published: April 3, 2020 | Last Updated: