Mes couilles

This commit is contained in:
Alex 2021-04-20 17:28:39 +02:00
parent 63b8c6eda1
commit 9f1dd7894d
4 changed files with 27 additions and 1 deletions

BIN
Guests/MACS/MACSRV-01.txt Normal file

Binary file not shown.

BIN
Guests/MACS/temp.txt Normal file

Binary file not shown.

8
Guests/MACS/test.csv Normal file
View File

@ -0,0 +1,8 @@
"ClassId2e4f51ef21dd47e99d3c952918aff9cd","pageHeaderEntry","pageFooterEntry","autosizeInfo","shapeInfo","groupingEntry"
"033ecb2bc07a4d43b5ef94ed5a35d280",,,,"Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo",
"9e210fe47d09416682b841769c78b8a3",,,,,
"27c87ef9bbda4f709f6b4002fa4af63c",,,,,
"27c87ef9bbda4f709f6b4002fa4af63c",,,,,
"27c87ef9bbda4f709f6b4002fa4af63c",,,,,
"4ec4f0187cb04f4cb6973460dfe252df",,,,,
"cf522b78d86c486691226b40aa69e95c",,,,,
1 ClassId2e4f51ef21dd47e99d3c952918aff9cd pageHeaderEntry pageFooterEntry autosizeInfo shapeInfo groupingEntry
2 033ecb2bc07a4d43b5ef94ed5a35d280 Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo
3 9e210fe47d09416682b841769c78b8a3
4 27c87ef9bbda4f709f6b4002fa4af63c
5 27c87ef9bbda4f709f6b4002fa4af63c
6 27c87ef9bbda4f709f6b4002fa4af63c
7 4ec4f0187cb04f4cb6973460dfe252df
8 cf522b78d86c486691226b40aa69e95c

View File

@ -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*