Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for windows

June 15, 2020

Powershell Test Network Connection

Here’s the command to test a network connection in Powershell.

C:> test-netconnection server -port 443

C:> test-netconnection server -port 443

Result:

ComputerName     : server
RemoteAddress    : 10.0.0.5
RemotePort       : 443
InterfaceAlias   : Ethernet 0
SourceAddress    : 10.1.1.34
TcpTestSucceeded : True

ComputerName : server RemoteAddress : 10.0.0.5 RemotePort : 443 InterfaceAlias : Ethernet 0 SourceAddress : 10.1.1.34 TcpTestSucceeded : True

January 14, 2020

Windows Route Add

Here’s how to add a route in Windows. Open CMD as Administrator.

route add 10.10.10.10 mask 255.255.255.0 10.10.10.254

route add 10.10.10.10 mask 255.255.255.0 10.10.10.254

To make it persistent, add -p.

route add 10.10.10.10 mask 255.255.255.0 10.10.10.254

route add 10.10.10.10 mask 255.255.255.0 10.10.10.254

To display. Specifies IP 4 only.

route print -4

route print -4

December 2, 2019

Windows Boot Time

Here’s how to find when a Windows server was last rebooted.

systeminfo | find /i "boot time"

systeminfo | find /i "boot time"

November 19, 2019

Tail A File in Windows Server

Linux has tail command. What about Windows? You can use Powershell to tail a file.

Get-Content myLog.log –Wait

Get-Content myLog.log –Wait

September 18, 2019

Windows + Tab

Found another gem to display all Windows by using …

Windows + Tab

Windows + Tab

  • 1
  • 2
  • 3
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021