Here is a selection of commands I find useful when using a Windows system.
To know what machine you're connected on:
To check the connectivity towards a machine, allows to detect missing routes, and other bumps in the road, such as turned off devices.
To check the connectivity to a port and the possibility to connect to a host:
Test-Connection HOSTNAME -port PORT
Invoke-WebRequest -UseBasicParsing HOSTNAME:PORT
To get the date
To start powershell from cmd
# use exit or CTRL-D to exit
To list running processes
To list directories and search for something
dir /s filename_to_match
To view a file's content
To find content in a file bashstyle
Get-Content filename.txt | finstr SEARCHPATTERNShare on Twitter Share on Facebook