Last active
January 24, 2022 19:04
-
-
Save codaamok/ed8cef3cad671ddee05a984e48d05f5f to your computer and use it in GitHub Desktop.
https://sysmansquad.com/2020/06/15/getting-started-with-automatedlab/ - Getting started with AutomatedLab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Module AutomatedLab | |
Param ( | |
[Parameter(Mandatory=$true)] | |
$LabName, | |
[Parameter(Mandatory=$true)] | |
$Domain | |
) | |
New-LabDefinition -Name $LabName -DefaultVirtualizationEngine HyperV | |
$PSDefaultParameterValues = @{ | |
'Add-LabMachineDefinition:Network' = $LabName | |
'Add-LabMachineDefinition:OperatingSystem'= 'Windows Server 2019 Standard (Desktop Experience)' | |
'Add-LabMachineDefinition:DomainName'= $Domain | |
'Add-LabMachineDefinition:Memory'= 4GB | |
'Add-LabMachineDefinition:MinMemory'= 1GB | |
'Add-LabMachineDefinition:MaxMemory'= 4GB | |
'Add-LabMachineDefinition:Processors'= 1 | |
} | |
Add-LabVirtualNetworkDefinition -Name $LabName -AddressSpace 192.168.123.0/24 | |
Add-LabMachineDefinition -Name "DC01" -IpAddress 192.168.123.1 -Roles RootDC | |
Add-LabMachineDefinition -Name "GENSRV-01" -IpAddress 192.168.123.2 | |
Add-LabMachineDefinition -Name "GENSRV-02" -IpAddress 192.168.123.3 | |
Install-Lab | |
Show-LabDeploymentSummary -Detailed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment