diff --git a/Guests/MACS/MACSRV-01.txt b/Guests/MACS/MACSRV-01.txt new file mode 100644 index 0000000..09f4f68 Binary files /dev/null and b/Guests/MACS/MACSRV-01.txt differ diff --git a/Guests/MACS/temp.txt b/Guests/MACS/temp.txt new file mode 100644 index 0000000..f2ef42a Binary files /dev/null and b/Guests/MACS/temp.txt differ diff --git a/Guests/MACS/test.csv b/Guests/MACS/test.csv new file mode 100644 index 0000000..ba2ef05 --- /dev/null +++ b/Guests/MACS/test.csv @@ -0,0 +1,8 @@ +"ClassId2e4f51ef21dd47e99d3c952918aff9cd","pageHeaderEntry","pageFooterEntry","autosizeInfo","shapeInfo","groupingEntry" +"033ecb2bc07a4d43b5ef94ed5a35d280",,,,"Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo", +"9e210fe47d09416682b841769c78b8a3",,,,, +"27c87ef9bbda4f709f6b4002fa4af63c",,,,, +"27c87ef9bbda4f709f6b4002fa4af63c",,,,, +"27c87ef9bbda4f709f6b4002fa4af63c",,,,, +"4ec4f0187cb04f4cb6973460dfe252df",,,,, +"cf522b78d86c486691226b40aa69e95c",,,,, diff --git a/Host/Infra-Standard.ps1 b/Host/Infra-Standard.ps1 index ccffacb..7d7b654 100644 --- a/Host/Infra-Standard.ps1 +++ b/Host/Infra-Standard.ps1 @@ -2,6 +2,7 @@ echo "Shamefully made by Alexandre Simao. Pardon-me M. Stallman" # SRV-01 +# TODO: Export Mac/Name to import it on VMS $VMName = "SRV-01" cp D:\VHD\Base_dif\Base_server_g2.vhdx D:\VHD\$VMName.vhdx @@ -46,7 +47,7 @@ $vms = @{ New-VM @vms Set-VMMemory $VMName -DynamicMemoryEnabled $true -MinimumBytes 512MB -StartupBytes 1024MB -MaximumBytes 2GB Add-VMNetworkAdapter -VMName $VMName -SwitchName "Arc-CLI" -Add-VMNetworkAdapter -VMName $VMName -SwitchName "WAN" +Add-VMNetworkAdapter -VMName $VMName -SwitchName "WAN"Attends # RTR-02 @@ -95,5 +96,22 @@ New-VM @vms Set-VMMemory $VMName -DynamicMemoryEnabled $true -MinimumBytes 512MB -StartupBytes 1024MB -MaximumBytes 2GB Add-VMNetworkAdapter -VMName $VMName -SwitchName "Aston" +$VMName = "SRV-01" +$MACSRV01 = (Get-VMNetworkAdapter -VMName SRV-01).MacAddress +echo "$MACSRV01" | Out-file -FilePath D:\scripts\Guests\MACS\MAC$VMName.txt + +$VMName = "RTR-01" +$MACRTR01 = (Get-VMNetworkAdapter -VMName RTR-01).MacAddress +echo "$MACRTR01" | Out-file -FilePath D:\scripts\Guests\MACS\MAC$VMName.txt + +$VMName = "RTR-02" +$MACRTR02 = (Get-VMNetworkAdapter -VMName RTR-02).MacAddress +echo "$MACRTR02" | Out-file -FilePath D:\scripts\Guests\MACS\MAC$VMName.txt + +$VMName = "RTR-03" +$MACRTR03 = (Get-VMNetworkAdapter -VMName RTR-03).MacAddress +echo "$MACRTR03" | Out-file -FilePath D:\scripts\Guests\MACS\MAC$VMName.txt + + Start-VM -Name RTR* Start-VM -Name SRV*