Build a Domain Controller only
The first and lightest environment to build with labbuildr is the Domaincontroller Only setup ( -DConly )
A Domaincontroller, if not present, is always being built automatically if required.
The minimum parameter for a DC is
.\labbuildr.ps1 -DConly -Master 2012R2UEFIMASTER
where -Master specifys the operatingsystem mastertemplate to use ( in this case a Server2012R2 Uefi )
If you want to use the same master each time, use -savedefaults to store the mastersetting.
here is a list of all parameters for -DConly
[-DConly] [-Gateway] [-Master <Object>] [-VMnet <Object>] [-savedefaults] [-defaults] [-Size
<Object>] [-BuildDomain <String>] [-NW] [-nw_ver <Object>] [-NoDomainCheck] [-MySubnet <Object>] [-AddressFamily <Object>]
[-IPV6Prefix <Object>] [-IPv6PrefixLength <Object>] [-Driveletter <String>] [-Noautomount] [-ConsoleLog] [<CommonParameters>]
To get help on each parameter, use get-help labbuildr.ps1 -parameter [parametername]
This Video demonstrates a Minimum -DConly with -savedfaults:
After the DC is installed, you might try some VMX commands:
get-vmx | ft vmxname, state, template
get-vmx | where template -eq $true | get-vmxsnapshot
get-vmx | stop-vmx
get-vmx | get-vmxscenario