Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.47 KB

File metadata and controls

48 lines (32 loc) · 1.47 KB

Initialize-NetworkLab

PowerShell script built to configure Windows Server 2022 as a network lab.

Run NetCalc

You can run NetCalc without saving the file to disk using this command.

iwr https://raw.githubusercontent.com/JamesKehr/Initialize-NetworkLab/main/NetCalc.ps1 | iex

OR

iwr https://aka.ms/NetCalc | iex

Generic Setup

The script can be run live using this command from an elevated (Run as administrator) PowerShell console. This does not perform any computer renaming or IP address configuration of the RED, BLUE, or GREEN networks.

iwr https://raw.githubusercontent.com/JamesKehr/Initialize-NetworkLab/main/Initialize-NetworkLab.ps1 | iex

iwr is the alias for Invoke-WebRequest.

iex is the alias for Invoke-Expression.

RX Setup

Use these commands to setup the RX (reciever) computer.

iwr https://raw.githubusercontent.com/JamesKehr/Initialize-NetworkLab/main/Initialize-NetworkLab.ps1 -OutFile "$ENV:USERPROFILE\Desktop\Initialize-NetworkLab.ps1"
Set-Location "$ENV:USERPROFILE\Desktop"
.\Initialize-NetworkLab.ps1 -RX [-DnsServer <DNS Server IP>]

TX Setup

Use these commands to setup the TX (transmit) computer.

iwr https://raw.githubusercontent.com/JamesKehr/Initialize-NetworkLab/main/Initialize-NetworkLab.ps1 -OutFile "$ENV:USERPROFILE\Desktop\Initialize-NetworkLab.ps1"
Set-Location "$ENV:USERPROFILE\Desktop"
.\Initialize-NetworkLab.ps1 -TX [-DnsServer <DNS Server IP>]