PowerShell script built to configure Windows Server 2022 as a network lab.
You can run NetCalc without saving the file to disk using this command.
iwr https://raw.githubusercontent.com/JamesKehr/Initialize-NetworkLab/main/NetCalc.ps1 | iexOR
iwr https://aka.ms/NetCalc | iexThe 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 | iexiwr is the alias for Invoke-WebRequest.
iex is the alias for Invoke-Expression.
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>]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>]