01Powershell Basics

Test-NetConnection

The following commands are used on Windows PowerShell devices. The command, Test-NetConnection is case sensitive and uses capitals unlike netcat. Test-NetConnection (host) (port) Example command: Test-NetConnection -ComputerName google.com -Port 80 Tests ping connectivity and displays diagnostic information for a connection from the host google.com on port 80

Get-Service

  • Get-Service will give you a full rundown of all active Services and Programmes that are running on your Computer
  • We can Start and Stop services by running Start-Service and Stop-Service Respectively

Running EXE from the CLi ?

Self-extractor packages are executable files (.exe) that are run in the Windows interface by clicking on them or running from the command line. Software installed by an IT professional onto an end user’s computer will likely use this format. Software installation package, update package, or hotfix package created with the Microsoft Self-Extractor, can be executed using the following command lines:

/extract:[path]: Extracts the content of the package to the path folder. If a path isn’t specified, then a Browse dialog box appears. /log:[path to log file]: Enables verbose logging (more detailed information recorded in the log file) for the update installation. /lang:lcid: Sets the user interface to the specified locale when multiple locales are available in the package. /quiet: Runs the package in silent mode. /passive: Runs the update without any interaction from the user. /norestart: Prevents prompting of the user when a restart of the computer is needed. /forcerestart: Forces a restart of the computer as soon as the update is finished. You can always type /?, /h, or /help from the command line to view these options. Get-Help is your best friend

This is me editing and writing my first ever plain txt HTML file from scratch using Visual Code.

"One must always remember to close brackets"

Me

I then uploaded the html file to Github to deploy there

the root index file is case sensisitive so remember to change or edit your file before uploading

I then reran all of the deployments to make sure the file successfully uploaded https://soggyteabag.github.io/Toms-Domain/