├── .gitattributes ├── .gitignore ├── Build ├── Automate │ ├── AddHosts.ps1 │ ├── BootFloppies │ │ ├── CS1-Config.iso │ │ ├── CS2-Config.iso │ │ ├── DC-Config.iso │ │ ├── Nested10.flp │ │ ├── Nested2008.flp │ │ ├── Nested2012.flp │ │ ├── Nested2016.flp │ │ ├── Nested7.flp │ │ ├── Nested8.flp │ │ ├── SS-Config.iso │ │ ├── V1.flp │ │ ├── VBR.flp │ │ ├── VC-Config.iso │ │ └── vmscsi-1.2.0.4.flp │ ├── CS1 │ │ ├── Build.cmd │ │ ├── Build.ps1 │ │ ├── ConfigView.ps1 │ │ └── Shortcuts.vbs │ ├── CS2 │ │ ├── Build.cmd │ │ ├── Build.ps1 │ │ └── Shortcuts.vbs │ ├── DC │ │ ├── DCPromo.ps1 │ │ ├── DCpromo.txt │ │ ├── DropDBs.txt │ │ ├── MBOOT.C32 │ │ ├── MakeDB.txt │ │ ├── MakeDB41.txt │ │ ├── Phase2.cmd │ │ ├── Phase2.ps1 │ │ ├── SQLTCP.reg │ │ ├── SetupCA.ps1 │ │ ├── Shortcuts.vbs │ │ ├── TFTP-Root │ │ │ ├── pxelinux.0 │ │ │ └── pxelinux.cfg │ │ │ │ ├── CHAIN.C32 │ │ │ │ ├── ESXi41.menu │ │ │ │ ├── ESXi50.menu │ │ │ │ ├── ESXi51.menu │ │ │ │ ├── ESXi55.menu │ │ │ │ ├── ESXi60.menu │ │ │ │ ├── ESXi65.menu │ │ │ │ ├── ESXi67.menu │ │ │ │ ├── MENU.C32 │ │ │ │ ├── VESAMENU.C32 │ │ │ │ ├── default │ │ │ │ ├── memdisk │ │ │ │ └── reboot.c32 │ │ ├── Tftpd64_SE │ │ │ ├── EUPL-EN.pdf │ │ │ ├── Tftpd64_SE-uninstall.exe │ │ │ ├── license-tftpd32_SE.txt │ │ │ ├── tftpd32.chm │ │ │ ├── tftpd32.ini │ │ │ ├── tftpd64_gui.exe │ │ │ └── tftpd64_svc.exe │ │ ├── Upgrade.cmd │ │ ├── VMware-SSL.txt │ │ ├── WWWRoot │ │ │ ├── BusinessView.jpg │ │ │ ├── Default.htm │ │ │ ├── FreeNAS.jpg │ │ │ ├── FreeSCO.jpg │ │ │ ├── Reporter.jpg │ │ │ ├── VMView.jpg │ │ │ └── WebClient.png │ │ ├── ocsetup.exe │ │ └── setupca.vbs │ ├── DC2 │ │ ├── DCPromo.ps1 │ │ ├── DCpromo.txt │ │ ├── DropDBs.txt │ │ ├── MakeDB.txt │ │ ├── Phase2.cmd │ │ ├── Phase2.ps1 │ │ ├── SQLTCP.reg │ │ ├── Shortcuts.vbs │ │ ├── TFTP-Root │ │ │ ├── pxelinux.0 │ │ │ └── pxelinux.cfg │ │ │ │ ├── CHAIN.C32 │ │ │ │ ├── ESXi50.menu │ │ │ │ ├── ESXi51.menu │ │ │ │ ├── ESXi55.menu │ │ │ │ ├── VESAMENU.C32 │ │ │ │ ├── default │ │ │ │ ├── memdisk │ │ │ │ └── reboot.c32 │ │ └── Tftpd64_SE │ │ │ ├── EUPL-EN.pdf │ │ │ ├── Tftpd64_SE-uninstall.exe │ │ │ ├── license-tftpd32_SE.txt │ │ │ ├── tftpd32.chm │ │ │ ├── tftpd32.ini │ │ │ ├── tftpd64_gui.exe │ │ │ └── tftpd64_svc.exe │ ├── Gateway.ps1 │ ├── Hosts │ │ ├── esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib │ │ ├── esx1-4.cfg │ │ ├── esx1-5.cfg │ │ ├── esx11-5.cfg │ │ ├── esx12-5.cfg │ │ ├── esx2-4.cfg │ │ ├── esx2-4c.cfg │ │ ├── esx2-5.cfg │ │ ├── esx3-5.cfg │ │ └── esx4-5.cfg │ ├── NAS_Build.sh │ ├── NewCluster.ps1 │ ├── PSFunctions.ps1 │ ├── PXEMenuConfig.ps1 │ ├── SS │ │ ├── Build.cmd │ │ └── Build.ps1 │ ├── ScriptMenu.ps1 │ ├── ShellVMs │ │ └── TTYLinux │ │ │ ├── TTYLinux-flat.vmdk │ │ │ ├── TTYLinux.nvram │ │ │ ├── TTYLinux.vmdk │ │ │ ├── TTYLinux.vmsd │ │ │ ├── TTYLinux.vmx │ │ │ └── TTYLinux.vmxf │ ├── ShutLab.ps1 │ ├── V1 │ │ └── Build.cmd │ ├── VBR │ │ └── Build.cmd │ ├── VC │ │ ├── AdminPwd.ps1 │ │ ├── Build.cmd │ │ ├── Build.ps1 │ │ ├── Derek-SSL.ps1 │ │ ├── Phase2.ps1 │ │ ├── PuTTY.reg │ │ ├── PuTTY │ │ │ ├── LICENCE │ │ │ ├── README.txt │ │ │ ├── pageant.exe │ │ │ ├── plink.exe │ │ │ ├── pscp.exe │ │ │ ├── psftp.exe │ │ │ ├── putty.chm │ │ │ ├── putty.cnt │ │ │ ├── putty.exe │ │ │ ├── putty.hlp │ │ │ ├── puttygen.exe │ │ │ ├── unins000.dat │ │ │ ├── unins000.exe │ │ │ └── website.url │ │ ├── Shortcuts.vbs │ │ ├── VC41.cmd │ │ ├── VC50.cmd │ │ ├── WinTemplate.nvram │ │ ├── bfi-nu2lic.txt │ │ ├── bfi.exe │ │ ├── mkisofs.exe │ │ ├── sshAutoConnect │ │ │ ├── sshAutoConnect.dll │ │ │ └── sshAutoConnect.xml │ │ ├── vCenter6DB.reg │ │ ├── vCenterDB.reg │ │ ├── vCentre60.json │ │ └── vSphereClient.reg │ ├── VC2 │ │ ├── Build.cmd │ │ ├── Build.ps1 │ │ ├── PuTTY.reg │ │ ├── PuTTY │ │ │ ├── LICENCE │ │ │ ├── README.txt │ │ │ ├── pageant.exe │ │ │ ├── plink.exe │ │ │ ├── pscp.exe │ │ │ ├── psftp.exe │ │ │ ├── putty.chm │ │ │ ├── putty.cnt │ │ │ ├── putty.exe │ │ │ ├── putty.hlp │ │ │ ├── puttygen.exe │ │ │ ├── unins000.dat │ │ │ ├── unins000.exe │ │ │ └── website.url │ │ ├── Shortcuts.vbs │ │ ├── VC41.cmd │ │ ├── VC50.cmd │ │ ├── WinTemplate.nvram │ │ ├── bfi-nu2lic.txt │ │ ├── bfi.exe │ │ ├── mkisofs.exe │ │ ├── vCenterDB.reg │ │ └── vSphereClient.reg │ ├── Validate.ps1 │ ├── Version.txt │ ├── ViewSetup.ps1 │ ├── _Common │ │ ├── Auto2K3.cmd │ │ ├── Auto2K3.sif │ │ ├── AutoXP.cmd │ │ ├── AutoXP.sif │ │ ├── Autologon.exe │ │ ├── CPUBusy.vbs │ │ ├── ExecuPol.reg │ │ ├── ExplorerView.reg │ │ ├── ExtPart.exe │ │ ├── Firefox Setup 59.0.3.exe │ │ ├── IExplorer.reg │ │ ├── Lab2K3.sif │ │ ├── Nested.reg │ │ ├── NoSCRNSave.reg │ │ ├── WASP.dll │ │ ├── XPDrivers │ │ │ ├── disk.tag │ │ │ ├── txtsetup.oem │ │ │ ├── vmscsi.cat │ │ │ ├── vmscsi.inf │ │ │ └── vmscsi.sys │ │ ├── iometer.exe │ │ ├── profile.ps1 │ │ └── wget.exe │ └── automate.ini ├── ChangeLog.txt └── gparted │ └── ReadMe.txt ├── Doc ├── AutoLab 1.1a vSphere Deployment Guide.doc ├── AutoLab 1.5 vSphere Deployment Guide.doc ├── AutoLab 2.0 vSphere Deployment Guide .doc ├── AutoLab 2.6 vSphere Deployment Guide .docx ├── AutoLab_3.0_vSphere_Deployment_Guide.docx ├── AutoLab_3.0_vSphere_Deployment_Guide.pdf └── vSphere 5 AutoLab Deployment Guide.docx ├── LICENSE ├── README.md └── SRC ├── CS1 ├── CS1-Config.iso ├── autoUnattend.xml └── build.cmd ├── CS2 ├── CS2-Config.iso ├── autoUnattend.xml └── build.cmd ├── DC ├── Build.cmd ├── DC-Config.iso └── autoUnattend.xml ├── DC2 ├── Build.cmd ├── DC2.flp └── autoUnattend.xml ├── NAS ├── NASBuild.md └── freenas-FreeNAS-11.1-U5 (8e2a858a1)-20180624160211.db ├── Nested10 ├── Build.cmd ├── Nested10.flp └── autoUnattend.xml ├── Nested2008 └── Nested2008.flp ├── Nested2012 ├── Build.cmd ├── Nested2012.flp └── autoUnattend.xml ├── Nested2106 └── Nested2016.flp ├── Nested7 ├── Build.cmd ├── Nested7.flp └── autoUnattend.xml ├── Nested8 ├── Build.cmd ├── Nested8.flp └── autoUnattend.xml ├── SS ├── SS-Config.iso ├── autoUnattend.xml └── build.cmd ├── VC ├── Build.cmd ├── VC-Config.iso └── autoUnattend.xml └── VC2 ├── Build.cmd ├── VC2.flp └── autoUnattend.xml /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /Build/Automate/AddHosts.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/AddHosts.ps1 -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/CS1-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/CS1-Config.iso -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/CS2-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/CS2-Config.iso -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/DC-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/DC-Config.iso -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/Nested10.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/Nested10.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/Nested2008.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/Nested2008.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/Nested2012.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/Nested2012.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/Nested2016.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/Nested2016.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/Nested7.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/Nested7.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/Nested8.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/Nested8.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/SS-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/SS-Config.iso -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/V1.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/V1.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/VBR.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/VBR.flp -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/VC-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/VC-Config.iso -------------------------------------------------------------------------------- /Build/Automate/BootFloppies/vmscsi-1.2.0.4.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/BootFloppies/vmscsi-1.2.0.4.flp -------------------------------------------------------------------------------- /Build/Automate/CS1/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * Begining Build.cmd as %userdomain%\%username% 4 | echo * Begining Build.cmd as %userdomain%\%username% >> c:\buildlog.txt 5 | echo * Connect to build share 6 | if not exist B:\ net use B: \\192.168.199.7\Build 7 | if not exist c:\temp\ md c:\temp 8 | regedit -s b:\Automate\_Common\ExecuPol.reg 9 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 10 | regedit -s B:\Automate\_Common\ExplorerView.reg 11 | regedit -s b:\Automate\_Common\IExplorer.reg 12 | regedit -s b:\Automate\_Common\Nested.reg 13 | REG ADD "HKCU\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F 14 | REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F 15 | REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments " /V SaveZoneInformation /T REG_DWORD /D 1 /F 16 | copy B:\automate\_Common\wasp.dll C:\windows\system32 17 | echo * Activate Windows >> c:\buildlog.txt 18 | cscript //B "%windir%\system32\slmgr.vbs" /ato 19 | copy B:\Automate\PSFunctions.ps1 C:\ 20 | copy B:\Automate\validate.ps1 C:\ 21 | copy B:\Automate\ViewSetup.ps1 C:\ 22 | copy B:\Automate\%computername%\Build.ps1 c:\ 23 | echo * Starting PowerShell script for Phase 2 completion 24 | echo * Starting PowerShell script for Phase 2 completion >> C:\buildlog.txt 25 | powershell c:\Build.ps1 26 | -------------------------------------------------------------------------------- /Build/Automate/CS1/Shortcuts.vbs: -------------------------------------------------------------------------------- 1 | set WshShell = WScript.CreateObject("WScript.Shell") 2 | 3 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\BuildLog.lnk") 4 | oShortCutLink.TargetPath = "c:\BuildLog.txt" 5 | oShortCutLink.Save 6 | 7 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\View Setup.lnk") 8 | oShortCutLink.TargetPath = "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" 9 | oShortCutLink.Arguments = " c:\ViewSetup.ps1" 10 | oShortCutLink.Save 11 | -------------------------------------------------------------------------------- /Build/Automate/CS2/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * 4 | echo * Begining Build.cmd as %userdomain%\%username% 5 | echo * Begining Build.cmd as %userdomain%\%username% >> c:\buildlog.txt 6 | echo * Connect to build share 7 | echo * Connect to build share >> c:\buildlog.txt 8 | if not exist B:\ net use B: \\192.168.199.7\Build 9 | if not exist c:\temp\ md c:\temp 10 | regedit -s b:\Automate\_Common\ExecuPol.reg 11 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 12 | regedit -s B:\Automate\_Common\ExplorerView.reg 13 | regedit -s b:\Automate\_Common\IExplorer.reg 14 | REG ADD "HKCU\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F 15 | REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F 16 | REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments " /V SaveZoneInformation /T REG_DWORD /D 1 /F 17 | echo * Activate Windows >> c:\buildlog.txt 18 | copy B:\automate\_Common\wasp.dll C:\windows\system32 19 | cscript //B "%windir%\system32\slmgr.vbs" /ato 20 | copy B:\Automate\validate.ps1 C:\ 21 | copy B:\Automate\PSFunctions.ps1 C:\ 22 | copy B:\Automate\%computername%\Build.ps1 c:\ 23 | echo * Starting PowerShell script for Phase 2 completion 24 | echo * Starting PowerShell script for Phase 2 completion >> C:\buildlog.txt 25 | powershell c:\Build.ps1 26 | -------------------------------------------------------------------------------- /Build/Automate/CS2/Build.ps1: -------------------------------------------------------------------------------- 1 | if (Test-Path C:\PSFunctions.ps1) { 2 | . "C:\PSFunctions.ps1" 3 | } else { 4 | Write-Host "PSFunctions.ps1 not found. Please copy all PowerShell files from B:\Automate to C:\ and rerun Build.ps1" 5 | Read-Host "Press to exit" 6 | exit 7 | } 8 | $a = (Get-Host).UI.RawUI 9 | $a.WindowTitle = "CS2 Build Automation" 10 | $b = $a.WindowSize 11 | $b.Height = $a.MaxWindowSize.Height - 1 12 | $a.WindowSize = $b 13 | Import-Module C:\windows\system32\WASP.dll 14 | Select-Window -Title "CS2 Build Automation" | set-windowposition -left 75 -top 3 15 | 16 | if (Test-Path "B:\Automate\automate.ini") { 17 | Write-BuildLog "Determining automate.ini settings." 18 | $viewinstall = ((Select-String -SimpleMatch "ViewInstall=" -Path "B:\Automate\automate.ini").line).substring(12) 19 | Write-BuildLog " VMware View install set to $viewinstall." 20 | $timezone = ((Select-String -SimpleMatch "TZ=" -Path "B:\Automate\automate.ini").line).substring(3) 21 | Write-BuildLog " Timezone set to $timezone." 22 | tzutil /s "$timezone" 23 | $AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "B:\Automate\automate.ini").line).substring(9) 24 | $emailto = ((Select-String -SimpleMatch "emailto=" -Path "B:\Automate\automate.ini").line).substring(8) 25 | $SmtpServer = ((Select-String -SimpleMatch "SmtpServer=" -Path "B:\Automate\automate.ini").line).substring(11) 26 | } 27 | if ((Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain -eq $False) { 28 | Write-BuildLog "Joining domain" 29 | B:\automate\_Common\Autologon administrator lab $AdminPWD 30 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Build.cmd" /f 31 | $password = $AdminPWD | ConvertTo-SecureString -asPlainText -Force 32 | $credential = New-Object System.Management.Automation.PSCredential("administrator",$password) 33 | $null = Add-Computer -DomainName "lab.local" -Credential $credential -restart 34 | read-host "Wait for restart" 35 | } else { 36 | regedit /s b:\Automate\_Common\ExecuPol.reg 37 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 38 | Write-BuildLog "Change default local administrator password" 39 | net user administrator $AdminPWD 40 | B:\automate\_Common\Autologon administrator lab $AdminPWD 41 | reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /f 42 | } 43 | If ((([System.Environment]::OSVersion.Version.Major *10) + [System.Environment]::OSVersion.Version.Minor) -ge 62) { 44 | Write-BuildLog "Disabling autorun of ServerManager at logon." 45 | Start-Process schtasks -ArgumentList ' /Change /TN "\Microsoft\Windows\Server Manager\ServerManager" /DISABLE' -Wait -Verb RunAs 46 | Write-BuildLog "Disabling screen saver" 47 | set-ItemProperty -path 'HKCU:\Control Panel\Desktop' -name ScreenSaveActive -value 0 48 | Write-BuildLog "Install admin tools" 49 | $null = Add-WindowsFeature RSAT-Feature-Tools,RSAT-DHCP,RSAT-DNS-Server,RSAT-AD-AdminCenter 50 | Write-BuildLog "Enable remote management through firewall" 51 | Netsh firewall set service RemoteAdmin 52 | Netsh advfirewall set currentprofile settings remotemanagement enable 53 | } 54 | 55 | if (Test-Path "C:\VMware-view*") { 56 | $Files = get-childitem "C:\" 57 | for ($i=0; $i -lt $files.Count; $i++) { 58 | If ($Files[$i].Name -like "VMware-view*") {$Installer = $Files[$i].FullName} 59 | } 60 | switch ($viewinstall) { 61 | 75 { 62 | Write-BuildLog "Install View 7.5 Connection Server" 63 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local VDM_IP_PROTOCOL_USAG=IPv4 HTMLACCESS=1"' -verb RunAs 64 | if ([System.Environment]::OSVersion.Version.Major -ge 9) { 65 | C:\Windows\Microsoft.NET\Framework64\v4.0.30319 \InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 66 | }else { 67 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 68 | } 69 | } 70 { 70 | Write-BuildLog "Install View 7.0 Connection Server" 71 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local"' -verb RunAs 72 | if ([System.Environment]::OSVersion.Version.Major -ge 9) { 73 | C:\Windows\Microsoft.NET\Framework64\v4.0.30319 \InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 74 | }else { 75 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 76 | } 77 | } 78 | 60 { 79 | Write-BuildLog "Install View 6.0 Connection Server" 80 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local"' 81 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 82 | } 83 | 53{ 84 | Write-BuildLog "Install View 5.3 Connection Server" 85 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local"' 86 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 87 | } 88 | 52 { 89 | Write-BuildLog "Install View 5.2 Connection Server" 90 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local"' 91 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 92 | } 93 | 51 { 94 | Write-BuildLog "Install View 5.1 Connection Server" 95 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local"' 96 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 97 | } 98 | 50 { 99 | Write-BuildLog "Install View 5.0 Connection Server" 100 | Start-Process $Installer -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME=cs1.lab.local"' 101 | C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe "C:\Program Files\VMware\VMware View\Server\bin\PowershellServiceCmdlets.dll" 102 | } 103 | } 104 | reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /f 105 | if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none")){ 106 | Write-BuildLog "Emailing log" 107 | $mailmessage = New-Object system.net.mail.mailmessage 108 | $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 25) 109 | $mailmessage.from = "AutoLab" 110 | $mailmessage.To.add($emailto) 111 | $Summary = "Completed AutoLab VM build.`r`n" 112 | $Summary += "The build of $env:computername has finished, installing VMware Tools and rebooting`r`n" 113 | $Summary += "The build log is attached`r`n" 114 | $mailmessage.Subject = "$env:computername VM build finished" 115 | $mailmessage.Body = $Summary 116 | $attach = new-object Net.Mail.Attachment("C:\buildlog.txt") 117 | $mailmessage.Attachments.Add($attach) 118 | $SMTPClient.Send($mailmessage) 119 | } 120 | Exit 121 | } 122 | 123 | browserAndFlash 124 | 125 | Write-BuildLog "Setup Firewall" 126 | netsh advfirewall firewall add rule name="All ICMP V4" dir=in action=allow protocol=icmpv4 127 | netsh advfirewall firewall set rule group="remote desktop" new enable=Yes 128 | netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes 129 | Write-BuildLog "Setup persistet route to other subnet for SRM and View" 130 | route add 192.168.201.0 mask 255.255.255.0 192.168.199.254 -p 131 | Write-BuildLog "Cleanup" 132 | regedit /s b:\Automate\_Common\ExecuPol.reg 133 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 134 | Write-BuildLog "Copy Connection server install and setup recall" 135 | $Files = get-childitem "b:\view$viewinstall" 136 | for ($i=0; $i -lt $files.Count; $i++) { 137 | If ($Files[$i].Name -like "VMware-viewconnectionserver*") {$Installer = $Files[$i].FullName} 138 | } 139 | copy $Installer C:\ 140 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Build.cmd" /f 141 | Write-BuildLog "Install VMware Tools" 142 | b:\VMTools\Setup64.exe /s /v "/qn" 143 | Read-Host "Reboot?" 144 | 145 | 146 | -------------------------------------------------------------------------------- /Build/Automate/CS2/Shortcuts.vbs: -------------------------------------------------------------------------------- 1 | set WshShell = WScript.CreateObject("WScript.Shell") 2 | 3 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\BuildLog.lnk") 4 | oShortCutLink.TargetPath = "c:\BuildLog.txt" 5 | oShortCutLink.Save 6 | 7 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\View Setup.lnk") 8 | oShortCutLink.TargetPath = "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" 9 | oShortCutLink.Arguments = " c:\ViewSetup.ps1" 10 | oShortCutLink.Save 11 | -------------------------------------------------------------------------------- /Build/Automate/DC/DCPromo.ps1: -------------------------------------------------------------------------------- 1 | #Install-Windowsfeature AD-Domain-Services,DNS -IncludeManagementTools 2 | Add-WindowsFeature -name ad-domain-services -IncludeManagementTools 3 | Write-Host "Convertto-SecureString" 4 | $safemodeadminpwd = ConvertTo-SecureString -String "VMware1!" -asplaintext -force 5 | 6 | Write-Host "Install-ADDSForest" 7 | Install-ADDSForest -DomainName "lab.local" -ForestMode Win2008R2 -DomainMode Win2008R2 -SafeModeAdministratorPassword $safemodeadminpwd -Force 8 | -------------------------------------------------------------------------------- /Build/Automate/DC/DCpromo.txt: -------------------------------------------------------------------------------- 1 | [DCInstall] 2 | InstallDNS = yes 3 | DomainNetBiosName = lab 4 | NewDomain=forest 5 | NewDomainDNSName = lab.local 6 | RebootOnCompletion = yes 7 | ReplicaOrNewDomain = Domain 8 | SiteName = "Lab" 9 | SafeModeAdminPassword="VMware1!" 10 | -------------------------------------------------------------------------------- /Build/Automate/DC/DropDBs.txt: -------------------------------------------------------------------------------- 1 | drop database vCenter 2 | go 3 | drop database VUM 4 | go 5 | drop database ViewEvents 6 | go 7 | drop database ViewComposer 8 | go 9 | drop database SRM 10 | go 11 | drop database SRMRep 12 | go 13 | drop database RSA 14 | go 15 | -------------------------------------------------------------------------------- /Build/Automate/DC/MBOOT.C32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/MBOOT.C32 -------------------------------------------------------------------------------- /Build/Automate/DC/MakeDB.txt: -------------------------------------------------------------------------------- 1 | Create Login vpx WITH PASSWORD = 'VMware1!' 2 | Go 3 | create Database vCenter 4 | Go 5 | use vCenter 6 | go 7 | sp_addrolemember @rolename = 'db_owner', @membername = 'vpx' 8 | go 9 | use MSDB 10 | go 11 | sp_addrolemember @rolename = 'db_owner', @membername = 'vpx' 12 | go 13 | use master 14 | go 15 | sp_addrolemember @rolename = 'db_owner', @membername = 'vpx' 16 | go 17 | grant VIEW SERVER STATE to vpx 18 | go 19 | GRANT VIEW ANY DEFINITION TO vpx 20 | go 21 | create database VUM 22 | GO 23 | ALTER AUTHORIZATION ON DATABASE::vCenter TO vpx 24 | ALTER AUTHORIZATION ON DATABASE::VUM TO vpx 25 | ALTER AUTHORIZATION ON DATABASE::msdb TO vpx 26 | Go 27 | Create Login VMview WITH PASSWORD = 'VMware1!' 28 | Go 29 | create database ViewEvents 30 | GO 31 | create database ViewComposer 32 | GO 33 | ALTER AUTHORIZATION ON DATABASE::ViewEvents TO VMview 34 | ALTER AUTHORIZATION ON DATABASE::ViewComposer TO VMview 35 | go 36 | Create Login VMSRM WITH PASSWORD = 'VMware1!' 37 | Go 38 | create database SRM 39 | GO 40 | create database SRMRep 41 | GO 42 | ALTER AUTHORIZATION ON DATABASE::SRM TO VMSRM 43 | ALTER AUTHORIZATION ON DATABASE::SRMRep TO VMSRM 44 | Go 45 | EXEC master..sp_addsrvrolemember @loginame = 'lab\VI-admin', @rolename = 'sysadmin' 46 | Go 47 | USE MASTER 48 | GO 49 | CREATE DATABASE RSA ON PRIMARY( 50 | NAME='RSA_DATA', 51 | FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\RSA_DATA.mdf', 52 | SIZE=10MB, 53 | MAXSIZE=UNLIMITED, 54 | FILEGROWTH=10%), 55 | FILEGROUP RSA_INDEX( 56 | NAME='RSA_INDEX', 57 | FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\RSA_INDEX.ndf', 58 | SIZE=10MB, 59 | MAXSIZE=UNLIMITED, 60 | FILEGROWTH=10%) 61 | LOG ON( 62 | NAME='translog', 63 | FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\translog.ldf', 64 | SIZE=10MB, 65 | MAXSIZE=UNLIMITED, 66 | FILEGROWTH=10% ) 67 | GO 68 | SP_DBOPTION 'RSA', 'autoshrink', true 69 | GO 70 | EXEC SP_DBOPTION 'RSA', 'trunc. log on chkpt.', true 71 | GO 72 | CHECKPOINT 73 | GO 74 | USE MASTER 75 | GO 76 | CREATE LOGIN RSA_DBA WITH PASSWORD = 'VMware1!', DEFAULT_DATABASE = RSA 77 | GO 78 | CREATE LOGIN RSA_USER WITH PASSWORD = 'VMware1!', DEFAULT_DATABASE = RSA 79 | GO 80 | USE RSA 81 | GO 82 | ALTER AUTHORIZATION ON DATABASE::RSA TO [RSA_DBA] 83 | GO 84 | CREATE USER RSA_USER FOR LOGIN [RSA_USER] 85 | GO 86 | CHECKPOINT 87 | GO 88 | -------------------------------------------------------------------------------- /Build/Automate/DC/MakeDB41.txt: -------------------------------------------------------------------------------- 1 | Create Login vpx WITH PASSWORD = 'VMware1!' 2 | Go 3 | create Database vCenter 4 | Go 5 | create database VUM 6 | GO 7 | ALTER AUTHORIZATION ON DATABASE::vCenter TO vpx 8 | ALTER AUTHORIZATION ON DATABASE::VUM TO vpx 9 | ALTER AUTHORIZATION ON DATABASE::msdb TO vpx 10 | Go 11 | Create Login VMview WITH PASSWORD = 'VMware1!' 12 | Go 13 | create database ViewEvents 14 | GO 15 | create database ViewComposer 16 | GO 17 | ALTER AUTHORIZATION ON DATABASE::ViewEvents TO VMview 18 | ALTER AUTHORIZATION ON DATABASE::ViewComposer TO VMview 19 | go 20 | Create Login VMSRM WITH PASSWORD = 'VMware1!' 21 | Go 22 | create database SRM 23 | GO 24 | create database SRMRep 25 | GO 26 | ALTER AUTHORIZATION ON DATABASE::SRM TO VMSRM 27 | ALTER AUTHORIZATION ON DATABASE::SRMRep TO VMSRM 28 | Go 29 | EXEC master..sp_addsrvrolemember @loginame = 'lab\VI-admin', @rolename = 'sysadmin' 30 | Go 31 | -------------------------------------------------------------------------------- /Build/Automate/DC/Phase2.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo * Begining Phase2.cmd as %userdomain%\%username% 3 | echo * Begining Phase2.cmd as %userdomain%\%username% >> c:\buildlog.txt 4 | net use B: \\192.168.199.7\Build 5 | ver | find "6.1" > nul 6 | if %ERRORLEVEL% == 0 goto ver_2K8 7 | ver | find "6.2" > nul 8 | if %ERRORLEVEL% == 0 goto ver_2K12 9 | ver | find "6.3" > nul 10 | if %ERRORLEVEL% == 0 goto ver_2K12 11 | ver | find "10.0" > nul 12 | if %ERRORLEVEL% == 0 goto ver_2K16 13 | Exit 14 | :ver_2K8 15 | echo * Install services on Windows 2008 16 | echo * Install services on Windows 2008 >> c:\buildlog.txt 17 | Dism /online /enable-feature /featurename:DHCPServerCore >> c:\buildlog.txt 18 | Dism /online /enable-feature /featurename:DNS-Server-Full-Role >> c:\buildlog.txt 19 | sc config dhcpserver start= auto >> c:\buildlog.txt 20 | :ver_2K12 21 | :ver_2K16 22 | echo ** 23 | echo * Connect to build share 24 | echo * Connect to build share >> c:\buildlog.txt 25 | net use b: \\192.168.199.7\Build 26 | echo ** 27 | echo * Copy PowerShell files 28 | echo * Copy PowerShell files >> c:\buildlog.txt 29 | copy B:\Automate\validate.ps1 C:\ 30 | copy B:\Automate\PSFunctions.ps1 C:\ 31 | copy B:\Automate\PXEMenuConfig.ps1 C:\ 32 | copy B:\Automate\DC\Phase2.ps1 C:\ 33 | regedit -s B:\Automate\_Common\ExecuPol.reg 34 | regedit -s B:\Automate\_Common\NoSCRNSave.reg 35 | regedit -s B:\Automate\_Common\ExplorerView.reg 36 | regedit -s b:\Automate\_Common\Nested.reg 37 | copy B:\automate\_Common\wasp.dll C:\windows\system32 38 | echo * Activate Windows >> c:\buildlog.txt 39 | cscript //B "%windir%\system32\slmgr.vbs" /ato 40 | echo * Starting PowerShell script for Phase 2 completion 41 | echo * Starting PowerShell script for Phase 2 completion >> C:\buildlog.txt 42 | powershell c:\Phase2.ps1 43 | exit 44 | -------------------------------------------------------------------------------- /Build/Automate/DC/SQLTCP.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/SQLTCP.reg -------------------------------------------------------------------------------- /Build/Automate/DC/Shortcuts.vbs: -------------------------------------------------------------------------------- 1 | set WshShell = WScript.CreateObject("WScript.Shell") 2 | 3 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\BuildLog.lnk") 4 | oShortCutLink.TargetPath = "c:\BuildLog.txt" 5 | oShortCutLink.Save 6 | 7 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\Validate.lnk") 8 | oShortCutLink.TargetPath = "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" 9 | oShortCutLink.Arguments = " c:\validate.ps1" 10 | oShortCutLink.Save 11 | 12 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\Upgrade.lnk") 13 | oShortCutLink.TargetPath = "\\nas\Build\Automate\DC\Upgrade.cmd" 14 | oShortCutLink.Save 15 | -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/TFTP-Root/pxelinux.0 -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/CHAIN.C32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/CHAIN.C32 -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi41.menu: -------------------------------------------------------------------------------- 1 | ENU TITLE ESX 4.1 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi50.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 5.0 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx50 9 | KERNEL /esxi50/mboot.c32 10 | APPEND -c /esxi50/bootm.cfg 11 | MENU LABEL ESXi 5.0 Manual Install 12 | 13 | label esx1-5 14 | KERNEL /esxi50/mboot.c32 15 | APPEND -c /esxi50/Besx1-5.cfg 16 | MENU LABEL Host1 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi50/mboot.c32 20 | APPEND -c /esxi50/Besx2-5.cfg 21 | MENU LABEL Host2 Automated Install 22 | 23 | 24 | -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi51.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 5.1 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx51 9 | KERNEL /esxi51/mboot.c32 10 | APPEND -c /esxi51/bootm.cfg 11 | MENU LABEL ESXi 5.1 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi51/mboot.c32 15 | APPEND -c /esxi51/Besx1-5.cfg 16 | MENU LABEL Host1 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi51/mboot.c32 20 | APPEND -c /esxi51/Besx2-5.cfg 21 | MENU LABEL Host2 Automated Install 22 | 23 | Label ESX3-5 24 | KERNEL /esxi51/mboot.c32 25 | APPEND -c /esxi51/Besx3-5.cfg 26 | MENU LABEL Host3 Automated Install 27 | 28 | -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi55.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 5.5 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx51 9 | KERNEL /esxi55/mboot.c32 10 | APPEND -c /esxi55/bootm.cfg 11 | MENU LABEL ESXi 5.5 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi55/mboot.c32 15 | APPEND -c /esxi55/Besx1-55.cfg 16 | MENU LABEL Host1 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi55/mboot.c32 20 | APPEND -c /esxi55/Besx2-55.cfg 21 | MENU LABEL Host2 Automated Install 22 | 23 | Label ESX3-5 24 | KERNEL /esxi55/mboot.c32 25 | APPEND -c /esxi55/Besx3-55.cfg 26 | MENU LABEL Host3 Automated Install 27 | 28 | Label ESX4-5 29 | KERNEL /esxi55/mboot.c32 30 | APPEND -c /esxi55/Besx4-55.cfg 31 | MENU LABEL Host4 Automated Install -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi60.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 6.0 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx51 9 | KERNEL /esxi60/mboot.c32 10 | APPEND -c /esxi60/bootm.cfg 11 | MENU LABEL ESXi 6.0 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi60/mboot.c32 15 | APPEND -c /esxi60/Besx1-60.cfg 16 | MENU LABEL Host1 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi60/mboot.c32 20 | APPEND -c /esxi60/Besx2-60.cfg 21 | MENU LABEL Host2 Automated Install 22 | 23 | Label ESX3-5 24 | KERNEL /esxi60/mboot.c32 25 | APPEND -c /esxi60/Besx3-60.cfg 26 | MENU LABEL Host3 Automated Install 27 | 28 | Label ESX4-5 29 | KERNEL /esxi60/mboot.c32 30 | APPEND -c /esxi60/Besx4-60.cfg 31 | MENU LABEL Host4 Automated Install -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi65.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 6.5 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx51 9 | KERNEL /esxi65/mboot.c32 10 | APPEND -c /esxi65/bootm.cfg 11 | MENU LABEL ESXi 6.5 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi65/mboot.c32 15 | APPEND -c /esxi65/Besx1-65.cfg 16 | MENU LABEL Host1 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi65/mboot.c32 20 | APPEND -c /esxi65/Besx2-65.cfg 21 | MENU LABEL Host2 Automated Install 22 | 23 | Label ESX3-5 24 | KERNEL /esxi65/mboot.c32 25 | APPEND -c /esxi65/Besx3-65.cfg 26 | MENU LABEL Host3 Automated Install 27 | 28 | Label ESX4-5 29 | KERNEL /esxi65/mboot.c32 30 | APPEND -c /esxi65/Besx4-65.cfg 31 | MENU LABEL Host4 Automated Install -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/ESXi67.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 6.7 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/menu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx51 9 | KERNEL /esxi67/mboot.c32 10 | APPEND -c /esxi67/bootm.cfg 11 | MENU LABEL ESXi 6.7 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi67/mboot.c32 15 | APPEND -c /esxi67/Besx1-67.cfg 16 | MENU LABEL Host1 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi67/mboot.c32 20 | APPEND -c /esxi67/Besx2-67.cfg 21 | MENU LABEL Host2 Automated Install 22 | 23 | Label ESX3-5 24 | KERNEL /esxi67/mboot.c32 25 | APPEND -c /esxi67/Besx3-67.cfg 26 | MENU LABEL Host3 Automated Install 27 | 28 | Label ESX4-5 29 | KERNEL /esxi67/mboot.c32 30 | APPEND -c /esxi67/Besx4-67.cfg 31 | MENU LABEL Host4 Automated Install -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/MENU.C32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/MENU.C32 -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/VESAMENU.C32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/VESAMENU.C32 -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/default: -------------------------------------------------------------------------------- 1 | menu title AutoLab PXE Menu 2 | menu tabmsgrow 22 3 | menu cmdlinerow 22 4 | menu endrow 24 5 | 6 | menu color title 1;34;49 #eea0a0ff #cc333355 std 7 | menu color sel 7;37;40 #ff000000 #bb9999aa all 8 | menu color border 30;44 #ffffffff #00000000 std 9 | menu color pwdheader 31;47 #eeff1010 #20ffffff std 10 | menu color hotkey 35;40 #90ffff00 #00000000 std 11 | menu color hotsel 35;40 #90000000 #bb9999aa all 12 | menu color timeout_msg 35;40 #90ffffff #00000000 none 13 | menu color timeout 31;47 #eeff1010 #00000000 none 14 | 15 | prompt 0 16 | noescape 1 17 | timeout 300 18 | default pxelinux.cfg/menu.c32 19 | 20 | label localboot 21 | menu label Boot local hard disk 22 | kernel pxelinux.cfg/chain.c32 23 | append hd0 0 24 | -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/memdisk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/memdisk -------------------------------------------------------------------------------- /Build/Automate/DC/TFTP-Root/pxelinux.cfg/reboot.c32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/reboot.c32 -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/EUPL-EN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/Tftpd64_SE/EUPL-EN.pdf -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/Tftpd64_SE-uninstall.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/Tftpd64_SE/Tftpd64_SE-uninstall.exe -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/license-tftpd32_SE.txt: -------------------------------------------------------------------------------- 1 | TFTPD32 is copyrighted 1998-2011 by Philippe Jounin (philippe@jounin.net) and released under the European Union Public License (see file EUPL-EN.pdf). 2 | -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/tftpd32.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/Tftpd64_SE/tftpd32.chm -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/tftpd32.ini: -------------------------------------------------------------------------------- 1 | [DHCP] 2 | Lease_NumLeases=0 3 | [TFTPD32] 4 | BaseDirectory=C:\TFTP-Root 5 | TftpPort=69 6 | Hide=0 7 | WinSize=0 8 | Negociate=1 9 | PXECompatibility=0 10 | DirText=0 11 | ShowProgressBar=1 12 | Timeout=3 13 | MaxRetransmit=6 14 | SecurityLevel=1 15 | UnixStrings=1 16 | Beep=0 17 | VirtualRoot=0 18 | MD5=0 19 | LocalIP= 20 | Services=1 21 | TftpLogFile= 22 | SaveSyslogFile= 23 | PipeSyslogMsg=0 24 | LowestUDPPort=0 25 | HighestUDPPort=0 26 | MulticastPort=0 27 | MulticastAddress= 28 | PersistantLeases=1 29 | DHCP Ping=1 30 | DHCP LocalIP= 31 | Max Simultaneous Transfers=100 32 | UseEventLog=0 33 | Console Password=tftpd32 34 | Support for port Option=0 35 | Keep transfer Gui=5 36 | Ignore ack for last TFTP packet=0 37 | Enable IPv6=0 38 | -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/tftpd64_gui.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/Tftpd64_SE/tftpd64_gui.exe -------------------------------------------------------------------------------- /Build/Automate/DC/Tftpd64_SE/tftpd64_svc.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/Tftpd64_SE/tftpd64_svc.exe -------------------------------------------------------------------------------- /Build/Automate/DC/Upgrade.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | cls 3 | echo * 4 | echo * Resetting and upgrading DC configuration 5 | echo * This is a best effort script, there will be error messages and warnings 6 | echo * 7 | echo * VC will require a rebuild 8 | echo * 9 | echo * This script must be "Run as Administrator" 10 | echo * 11 | pause 12 | echo * Running AutoLab Upgrade/Reset script >> c:\buildlog.txt 13 | if exist C:\validate.ps1 del c:\validate.ps1 14 | if exist C:\PSFunctions.ps1 del c:\PSFunctions.ps1 15 | if exist C:\PXEMenuConfig.ps1 del c:\PXEMenuConfig.ps1 16 | if exist C:\phase2.ps1 del c:\phase2.ps1 17 | net use B: \\192.168.199.7\Build 18 | copy B:\Automate\validate.ps1 C:\ 19 | copy B:\Automate\PSFunctions.ps1 C:\ 20 | copy B:\Automate\PXEMenuConfig.ps1 C:\ 21 | copy B:\Automate\DC\Phase2.ps1 C:\ 22 | powershell c:\Phase2.ps1 23 | if exist C:\phase2.ps1 del c:\phase2.ps1 24 | -------------------------------------------------------------------------------- /Build/Automate/DC/VMware-SSL.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/VMware-SSL.txt -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/BusinessView.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/WWWRoot/BusinessView.jpg -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/Default.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | AutoLab Portal 4 | 5 |

AutoLab Portal

6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 | 24 | 27 | 28 | 29 | 31 | 33 | 34 | 35 | 41 | 42 | 43 | 45 | 46 |

AutoLab management

15 | vSphere Web Client
vSphere Web Client
16 |
18 |
22 | FreeSCO Project
Router Admin
23 |
25 | FreeNAS
NAS Admin
26 |
30 |

VMware View

32 |
View Administrator Portal View 36 | Administrator Console - CS1
37 |
38 | VMware View Portal View 39 | Portal - CS1
40 |
WANem managemnet 44 |
47 |
48 | -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/FreeNAS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/WWWRoot/FreeNAS.jpg -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/FreeSCO.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/WWWRoot/FreeSCO.jpg -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/Reporter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/WWWRoot/Reporter.jpg -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/VMView.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/WWWRoot/VMView.jpg -------------------------------------------------------------------------------- /Build/Automate/DC/WWWRoot/WebClient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/WWWRoot/WebClient.png -------------------------------------------------------------------------------- /Build/Automate/DC/ocsetup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC/ocsetup.exe -------------------------------------------------------------------------------- /Build/Automate/DC2/DCPromo.ps1: -------------------------------------------------------------------------------- 1 | $null = Add-WindowsFeature -name ad-domain-services -IncludeManagementTools 2 | $AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "B:\Automate\automate.ini").line).substring(9) 3 | $safemodeadminpwd = ConvertTo-SecureString -String $AdminPWD -asplaintext -force 4 | $Cred = New-Object System.Management.Automation.PsCredential "lab\administrator", $safemodeadminpwd 5 | Write-Host "Add to domain" 6 | Add-Computer -DomainName "Lab.local" -Credential $Cred 7 | Write-Host "Promote to domain controller" 8 | Install-ADDSDomainController 9 | -------------------------------------------------------------------------------- /Build/Automate/DC2/DCpromo.txt: -------------------------------------------------------------------------------- 1 | [DCInstall] 2 | UserName=administrator 3 | UserDomain=lab.local 4 | Password=VMware1! 5 | SiteName = "Lab" 6 | ReplicaOrNewDomain=replica 7 | ReplicaDomainDNSName=lab.local 8 | InstallDNS=yes 9 | ConfirmGC=yes 10 | RebootOnCompletion=yes 11 | SafeModeAdminPassword="VMware1!" 12 | -------------------------------------------------------------------------------- /Build/Automate/DC2/DropDBs.txt: -------------------------------------------------------------------------------- 1 | drop database vCenter 2 | go 3 | drop database SRM 4 | go 5 | drop database SRMRep 6 | go 7 | drop database RSA 8 | go 9 | -------------------------------------------------------------------------------- /Build/Automate/DC2/MakeDB.txt: -------------------------------------------------------------------------------- 1 | Create Login vpx WITH PASSWORD = 'VMware1!' 2 | Go 3 | create Database vCenter 4 | Go 5 | ALTER AUTHORIZATION ON DATABASE::vCenter TO vpx 6 | ALTER AUTHORIZATION ON DATABASE::msdb TO vpx 7 | Go 8 | Create Login VMSRM WITH PASSWORD = 'VMware1!' 9 | Go 10 | create database SRM 11 | GO 12 | create database SRMRep 13 | GO 14 | ALTER AUTHORIZATION ON DATABASE::SRM TO VMSRM 15 | ALTER AUTHORIZATION ON DATABASE::SRMRep TO VMSRM 16 | Go 17 | EXEC master..sp_addsrvrolemember @loginame = 'lab\VI-admin', @rolename = 'sysadmin' 18 | Go 19 | USE MASTER 20 | GO 21 | CREATE DATABASE RSA ON PRIMARY( 22 | NAME='RSA_DATA', 23 | FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\RSA_DATA.mdf', 24 | SIZE=10MB, 25 | MAXSIZE=UNLIMITED, 26 | FILEGROWTH=10%), 27 | FILEGROUP RSA_INDEX( 28 | NAME='RSA_INDEX', 29 | FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\RSA_INDEX.ndf', 30 | SIZE=10MB, 31 | MAXSIZE=UNLIMITED, 32 | FILEGROWTH=10%) 33 | LOG ON( 34 | NAME='translog', 35 | FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\translog.ldf', 36 | SIZE=10MB, 37 | MAXSIZE=UNLIMITED, 38 | FILEGROWTH=10% ) 39 | GO 40 | SP_DBOPTION 'RSA', 'autoshrink', true 41 | GO 42 | EXEC SP_DBOPTION 'RSA', 'trunc. log on chkpt.', true 43 | GO 44 | CHECKPOINT 45 | GO 46 | USE MASTER 47 | GO 48 | CREATE LOGIN RSA_DBA WITH PASSWORD = 'VMware1!', DEFAULT_DATABASE = RSA 49 | GO 50 | CREATE LOGIN RSA_USER WITH PASSWORD = 'VMware1!', DEFAULT_DATABASE = RSA 51 | GO 52 | USE RSA 53 | GO 54 | ALTER AUTHORIZATION ON DATABASE::RSA TO [RSA_DBA] 55 | GO 56 | CREATE USER RSA_USER FOR LOGIN [RSA_USER] 57 | GO 58 | CHECKPOINT 59 | GO 60 | -------------------------------------------------------------------------------- /Build/Automate/DC2/Phase2.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Connect to build share 4 | net use B: \\192.168.199.7\Build 5 | type B:\automate\version.txt >> C:\buildlog.txt 6 | echo ** 7 | echo * Copy PowerShell files 8 | echo * Copy PowerShell files 9 | copy B:\Automate\validate.ps1 C:\ 10 | copy B:\Automate\PSFunctions.ps1 C:\ 11 | copy B:\Automate\PXEMenuConfig.ps1 C:\ 12 | copy B:\Automate\DC2\Phase2.ps1 C:\ 13 | regedit -s B:\Automate\_Common\ExecuPol.reg 14 | regedit -s B:\Automate\_Common\NoSCRNSave.reg 15 | regedit -s B:\Automate\_Common\ExplorerView.reg 16 | regedit -s B:\Automate\_Common\Nested.reg 17 | copy B:\automate\_Common\wasp.dll C:\windows\system32 18 | echo * Activate Windows >> c:\buildlog.txt 19 | cscript //B "%windir%\system32\slmgr.vbs" /ato 20 | echo * Starting PowerShell script for Phase 2 completion 21 | echo * Starting PowerShell script for Phase 2 completion >> C:\buildlog.txt 22 | powershell c:\Phase2.ps1 23 | if exist C:\phase2.ps1 del c:\phase2.ps1 24 | if exist c:\phase2.cmd del c:\phase2.cmd -------------------------------------------------------------------------------- /Build/Automate/DC2/SQLTCP.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/SQLTCP.reg -------------------------------------------------------------------------------- /Build/Automate/DC2/Shortcuts.vbs: -------------------------------------------------------------------------------- 1 | set WshShell = WScript.CreateObject("WScript.Shell") 2 | 3 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\BuildLog.lnk") 4 | oShortCutLink.TargetPath = "c:\BuildLog.txt" 5 | oShortCutLink.Save 6 | 7 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\Validate.lnk") 8 | oShortCutLink.TargetPath = "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" 9 | oShortCutLink.Arguments = " c:\validate.ps1" 10 | oShortCutLink.Save 11 | 12 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\Upgrade.lnk") 13 | oShortCutLink.TargetPath = "\\nas\Build\Automate\DC2\Upgrade.cmd" 14 | oShortCutLink.Save 15 | -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/TFTP-Root/pxelinux.0 -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/CHAIN.C32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/TFTP-Root/pxelinux.cfg/CHAIN.C32 -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/ESXi50.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 5.0 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/vesamenu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx50 9 | KERNEL /esxi50/mboot.c32 10 | APPEND -c /esxi50/boot.cfg 11 | MENU LABEL ESXi 5.0 Manual Install 12 | 13 | label esx1-5 14 | KERNEL /esxi50/mboot.c32 15 | APPEND -c /esxi50/Besx11-5.cfg 16 | MENU LABEL Host11 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi50/mboot.c32 20 | APPEND -c /esxi50/Besx12-5.cfg 21 | MENU LABEL Host12 Automated Install 22 | 23 | 24 | -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/ESXi51.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 5.1 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/vesamenu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx51 9 | KERNEL /esxi51/mboot.c32 10 | APPEND -c /esxi51/boot.cfg 11 | MENU LABEL ESXi 5.1 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi51/mboot.c32 15 | APPEND -c /esxi51/Besx11-5.cfg 16 | MENU LABEL Host11 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi51/mboot.c32 20 | APPEND -c /esxi51/Besx12-5.cfg 21 | MENU LABEL Host12 Automated Install 22 | 23 | -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/ESXi55.menu: -------------------------------------------------------------------------------- 1 | MENU TITLE ESXi 5.5 installs 2 | 3 | LABEL Main Menu 4 | MENU LABEL ^Return to Main Menu 5 | KERNEL pxelinux.cfg/vesamenu.c32 6 | APPEND pxelinux.cfg/default 7 | 8 | label esx55 9 | KERNEL /esxi55/mboot.c32 10 | APPEND -c /esxi55/boot.cfg 11 | MENU LABEL ESXi 5.5 Manual Install 12 | 13 | label ESX1-5 14 | KERNEL /esxi55/mboot.c32 15 | APPEND -c /esxi55/Besx11-55.cfg 16 | MENU LABEL Host11 Automated Install 17 | 18 | Label ESX2-5 19 | KERNEL /esxi55/mboot.c32 20 | APPEND -c /esxi55/Besx12-55.cfg 21 | MENU LABEL Host12 Automated Install 22 | 23 | -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/VESAMENU.C32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/TFTP-Root/pxelinux.cfg/VESAMENU.C32 -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/default: -------------------------------------------------------------------------------- 1 | menu title AutoLab PXE Menu 2 | menu tabmsgrow 22 3 | menu cmdlinerow 22 4 | menu endrow 24 5 | 6 | menu color title 1;34;49 #eea0a0ff #cc333355 std 7 | menu color sel 7;37;40 #ff000000 #bb9999aa all 8 | menu color border 30;44 #ffffffff #00000000 std 9 | menu color pwdheader 31;47 #eeff1010 #20ffffff std 10 | menu color hotkey 35;40 #90ffff00 #00000000 std 11 | menu color hotsel 35;40 #90000000 #bb9999aa all 12 | menu color timeout_msg 35;40 #90ffffff #00000000 none 13 | menu color timeout 31;47 #eeff1010 #00000000 none 14 | 15 | prompt 0 16 | noescape 1 17 | timeout 300 18 | default pxelinux.cfg/vesamenu.c32 19 | 20 | label localboot 21 | menu label Boot local hard disk 22 | kernel pxelinux.cfg/chain.c32 23 | append hd0 0 24 | -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/memdisk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/TFTP-Root/pxelinux.cfg/memdisk -------------------------------------------------------------------------------- /Build/Automate/DC2/TFTP-Root/pxelinux.cfg/reboot.c32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/TFTP-Root/pxelinux.cfg/reboot.c32 -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/EUPL-EN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/Tftpd64_SE/EUPL-EN.pdf -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/Tftpd64_SE-uninstall.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/Tftpd64_SE/Tftpd64_SE-uninstall.exe -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/license-tftpd32_SE.txt: -------------------------------------------------------------------------------- 1 | TFTPD32 is copyrighted 1998-2011 by Philippe Jounin (philippe@jounin.net) and released under the European Union Public License (see file EUPL-EN.pdf). 2 | -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/tftpd32.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/Tftpd64_SE/tftpd32.chm -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/tftpd32.ini: -------------------------------------------------------------------------------- 1 | [DHCP] 2 | Lease_NumLeases=0 3 | [TFTPD32] 4 | BaseDirectory=C:\TFTP-Root 5 | TftpPort=69 6 | Hide=0 7 | WinSize=0 8 | Negociate=1 9 | PXECompatibility=0 10 | DirText=0 11 | ShowProgressBar=1 12 | Timeout=3 13 | MaxRetransmit=6 14 | SecurityLevel=1 15 | UnixStrings=1 16 | Beep=0 17 | VirtualRoot=0 18 | MD5=0 19 | LocalIP= 20 | Services=1 21 | TftpLogFile= 22 | SaveSyslogFile= 23 | PipeSyslogMsg=0 24 | LowestUDPPort=0 25 | HighestUDPPort=0 26 | MulticastPort=0 27 | MulticastAddress= 28 | PersistantLeases=1 29 | DHCP Ping=1 30 | DHCP LocalIP= 31 | Max Simultaneous Transfers=100 32 | UseEventLog=0 33 | Console Password=tftpd32 34 | Support for port Option=0 35 | Keep transfer Gui=5 36 | Ignore ack for last TFTP packet=0 37 | Enable IPv6=0 38 | -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/tftpd64_gui.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/Tftpd64_SE/tftpd64_gui.exe -------------------------------------------------------------------------------- /Build/Automate/DC2/Tftpd64_SE/tftpd64_svc.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/DC2/Tftpd64_SE/tftpd64_svc.exe -------------------------------------------------------------------------------- /Build/Automate/Gateway.ps1: -------------------------------------------------------------------------------- 1 | $NICs = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "IPEnabled=TRUE" 2 | $Null = $NICs.SetGateways("192.168.199.2") 3 | $NICs = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "IPEnabled=TRUE" 4 | Write-Host "Added gateway. " 5 | Write-Host "Make sure the lab Router VM is running. " 6 | Read-Host "Press to exit" -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx1-4.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | autopart --firstdisk --overwritevmfs 4 | install nfs --server=192.168.199.7 --dir=/mnt/LABVOL/Build/ESXi41 5 | network --device=vmnic0 --bootproto=static --ip=192.168.199.11 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host1.lab.local --addvmportgroup=1 6 | reboot -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx1-5.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | install --firstdisk --overwritevmfs 4 | network --bootproto=static --ip=192.168.199.11 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host1.lab.local --device=vmnic0 --addvmportgroup=1 5 | reboot 6 | 7 | %firstboot --interpreter=busybox 8 | esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T1:L0 --option "enable_ssd" 9 | esxcfg-nas -a -o 192.168.199.7 -s /mnt/LABVOL/Build Build 10 | esxcli software vib install -v /vmfs/volumes/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f 11 | echo 'vmx.allowNested = "TRUE"' >> /etc/vmware/config -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx11-5.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | install --firstdisk --overwritevmfs 4 | network --bootproto=static --ip=192.168.201.11 --gateway=192.168.201.2 --nameserver=192.168.201.4 --netmask=255.255.255.0 --hostname=host11.lab.local --device=vmnic0 --addvmportgroup=1 5 | reboot 6 | 7 | %firstboot --interpreter=busybox 8 | esxcfg-nas -a -o 192.168.199.7 -s /mnt/LABVOL/Build Build 9 | esxcli software vib install -v /vmfs/volumes/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f 10 | echo 'vmx.allowNested = "TRUE"' >> /etc/vmware/config 11 | -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx12-5.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | install --firstdisk --overwritevmfs 4 | network --bootproto=static --ip=192.168.201.12 --gateway=192.168.201.2 --nameserver=192.168.201.4 --netmask=255.255.255.0 --hostname=host12.lab.local --device=vmnic0 --addvmportgroup=1 5 | reboot 6 | 7 | %firstboot --interpreter=busybox 8 | esxcfg-nas -a -o 192.168.199.7 -s /mnt/LABVOL/Build Build 9 | esxcli software vib install -v /vmfs/volumes/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f 10 | echo 'vmx.allowNested = "TRUE"' >> /etc/vmware/config 11 | -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx2-4.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | autopart --firstdisk --overwritevmfs 4 | install nfs --server=192.168.199.7 --dir=/mnt/LABVOL/Build/ESXi41 5 | network --device=vmnic0 --bootproto=static --ip=192.168.199.12 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host2.lab.local --addvmportgroup=1 6 | reboot -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx2-4c.cfg: -------------------------------------------------------------------------------- 1 | #root Password 2 | rootpw VMware1! 3 | # Authconfig 4 | # authconfig --enableshadow --enablemd5 5 | # BootLoader (Use grub by default.) 6 | bootloader --location=mbr 7 | # Timezone 8 | timezone America/Los_Angeles 9 | #Install 10 | install nfs --server=192.168.199.7 --dir=/mnt/LABVOL/Build/ESX41 11 | #Network install type 12 | network --bootproto=static --ip=192.168.199.12 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host2.lab.local --device=vmnic0 --addvmportgroup=1 13 | #Keyboard 14 | keyboard us 15 | #Reboot after install? 16 | reboot 17 | # Clear partitions 18 | clearpart --firstdisk --overwritevmfs 19 | # Partitioning 20 | part /boot --fstype=ext3 --size=1200 --onfirstdisk 21 | part storage1 --fstype=vmfs3 --size=10000 --grow --onfirstdisk 22 | part None --fstype=vmkcore --size=100 --onfirstdisk 23 | # Create the vmdk on the cos vmfs partition. 24 | virtualdisk cos --size=5000 --onvmfs=storage1 25 | # Partition the virtual disk. 26 | part / --fstype=ext3 --size=3600 --grow --onvirtualdisk=cos 27 | part swap --fstype=swap --size=256 --onvirtualdisk=cos 28 | #VMware Specific Commands 29 | accepteula -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx2-5.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | install --firstdisk --overwritevmfs 4 | network --bootproto=static --ip=192.168.199.12 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host2.lab.local --device=vmnic0 --addvmportgroup=1 5 | reboot 6 | 7 | %firstboot --interpreter=busybox 8 | esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T1:L0 --option "enable_ssd" 9 | esxcfg-nas -a -o 192.168.199.7 -s /mnt/LABVOL/Build Build 10 | esxcli software vib install -v /vmfs/volumes/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f 11 | echo 'vmx.allowNested = "TRUE"' >> /etc/vmware/config -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx3-5.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | install --firstdisk --overwritevmfs 4 | network --bootproto=static --ip=192.168.199.13 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host3.lab.local --device=vmnic0 --addvmportgroup=1 5 | reboot 6 | 7 | %firstboot --interpreter=busybox 8 | esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T1:L0 --option "enable_ssd" 9 | esxcfg-nas -a -o 192.168.199.7 -s /mnt/LABVOL/Build Build 10 | esxcli software vib install -v /vmfs/volumes/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f 11 | echo 'vmx.allowNested = "TRUE"' >> /etc/vmware/config -------------------------------------------------------------------------------- /Build/Automate/Hosts/esx4-5.cfg: -------------------------------------------------------------------------------- 1 | vmaccepteula 2 | rootpw VMware1! 3 | install --firstdisk --overwritevmfs 4 | network --bootproto=static --ip=192.168.199.14 --gateway=192.168.199.2 --nameserver=192.168.199.4 --netmask=255.255.255.0 --hostname=host4.lab.local --device=vmnic0 --addvmportgroup=1 5 | reboot 6 | 7 | %firstboot --interpreter=busybox 8 | esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T1:L0 --option "enable_ssd" 9 | esxcfg-nas -a -o 192.168.199.7 -s /mnt/LABVOL/Build Build 10 | esxcli software vib install -v /vmfs/volumes/Build/Automate/Hosts/esx-tools-for-esxi-9.7.1-0.0.00000.i386.vib -f 11 | echo 'vmx.allowNested = "TRUE"' >> /etc/vmware/config 12 | -------------------------------------------------------------------------------- /Build/Automate/NAS_Build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | mkdir /mnt/cd0 3 | mkdir /mnt/cd1 4 | mount /dev/sr0 /mnt/cd0 5 | mount /dev/sr1 /mnt/cd1 6 | 7 | if [ -f "/mnt/LABVOL/Build/ESXi51/vmware-esx-base-readme" ] 8 | then 9 | echo "Already have ESXi 5.1 installer" 10 | else 11 | if grep -q "VMware ESXi 5.1" "/mnt/cd0/vmware-esx-base-osl.txt" 12 | then 13 | echo "Found ESXi 5.1 installer on CD0" 14 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi51 15 | fi 16 | if grep -q "VMware ESXi 5.1" "/mnt/cd1/vmware-esx-base-osl.txt" 17 | then 18 | echo "Found ESXi 5.1 installer on CD1" 19 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi51 20 | fi 21 | fi 22 | if [ -f "/mnt/LABVOL/Build/ESXi55/vmware-esx-base-readme" ] 23 | then 24 | echo "Already have ESXi 5.5 installer" 25 | else 26 | if grep -q "VMware ESXi 5.5" "/mnt/cd0/vmware-esx-base-osl.txt" 27 | then 28 | echo "Found ESXi 5.5 installer on CD0" 29 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi55 30 | fi 31 | if grep -q "VMware ESXi 5.5" "/mnt/cd1/vmware-esx-base-osl.txt" 32 | then 33 | echo "Found ESXi 5.5 installer on CD1" 34 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi55 35 | fi 36 | fi 37 | if [ -f "/mnt/LABVOL/Build/ESXi60/vmware-esx-base-readme" ] 38 | then 39 | echo "Already have ESXi 6.0 installer" 40 | else 41 | if grep -q "VMware ESXi 6.0" "/mnt/cd0/vmware-esx-base-osl.txt" 42 | then 43 | echo "Found ESXi 6.0 installer on CD0" 44 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi60 45 | fi 46 | if grep -q "VMware ESXi 6.0" "/mnt/cd1/vmware-esx-base-osl.txt" 47 | then 48 | echo "Found ESXi 6.0 installer on CD1" 49 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi60 50 | fi 51 | fi 52 | if [ -f "/mnt/LABVOL/Build/ESXi65/vmware-esx-base-readme" ] 53 | then 54 | echo "Already have ESXi 6.5 installer" 55 | else 56 | if grep -q "6.5.0" "/mnt/cd0/vmware-esx-base-osl.txt" 57 | then 58 | echo "Found ESXi 6.5 installer on CD0" 59 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi65 60 | fi 61 | if grep -q "6.5.0" "/mnt/cd1/vmware-esx-base-osl.txt" 62 | then 63 | echo "Found ESXi 6.5 installer on CD1" 64 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi65 65 | fi 66 | fi 67 | if [ -f "/mnt/LABVOL/Build/ESXi67/vmware-esx-base-readme" ] 68 | then 69 | echo "Already have ESXi 6.7 installer" 70 | else 71 | if grep -q "VMware ESXi 6.7" "/mnt/cd0/vmware-esx-base-osl.txt" 72 | then 73 | echo "Found ESXi 6.7 installer on CD0" 74 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi67 75 | fi 76 | if grep -q "VMware ESXi 6.7" "/mnt/cd1/vmware-esx-base-osl.txt" 77 | then 78 | echo "Found ESXi 6.7 installer on CD1" 79 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi67 80 | fi 81 | fi 82 | 83 | if [ -f "/mnt/LABVOL/Build/VIM_51/autorun.exe" ] 84 | then 85 | echo "Already have vCentre 5.1 installer" 86 | else 87 | if grep -q "VMWARE vCenter Server 5.1" "/mnt/cd0/readme.txt" 88 | then 89 | echo "Found vCentre 5.1 installer on CD0" 90 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_51 91 | fi 92 | if grep -q "VMWARE vCenter Server 5.1" "/mnt/cd1/readme.txt" 93 | then 94 | echo "Found vCentre 5.1 installer on CD1" 95 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_51 96 | fi 97 | fi 98 | if [ -f "/mnt/LABVOL/Build/VIM_55/autorun.exe" ] 99 | then 100 | echo "Already have vCentre 5.5 installer" 101 | else 102 | if grep -q "VMWARE vCenter Server 5.5" "/mnt/cd0/readme.txt" 103 | then 104 | echo "Found vCentre 5.5 installer on CD0" 105 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_55 106 | fi 107 | if grep -q "VMWARE vCenter Server 5.5" "/mnt/cd1/readme.txt" 108 | then 109 | echo "Found vCentre 5.5 installer on CD1" 110 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_55 111 | fi 112 | fi 113 | if [ -f "/mnt/LABVOL/Build/VIM_60/autorun.exe" ] 114 | then 115 | echo "Already have vCentre 6.0 installer" 116 | else 117 | if grep -q "VMWARE vCenter Server 6.0" "/mnt/cd0/readme.txt" 118 | then 119 | echo "Found vCentre 6.0 installer on CD0" 120 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_60 121 | fi 122 | if grep -q "VMWARE vCenter Server 6.0" "/mnt/cd1/readme.txt" 123 | then 124 | echo "Found vCentre 6.0 installer on CD1" 125 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_60 126 | fi 127 | fi 128 | 129 | if [ -f "/mnt/LABVOL/Build/VIM_65/autorun.exe" ] 130 | then 131 | echo "Already have vCentre 6.5 installer" 132 | else 133 | if grep -q "VMWARE vCenter Server 6.5" "/mnt/cd0/readme.txt" 134 | then 135 | echo "Found vCentre 6.5 installer on CD0" 136 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_65 137 | fi 138 | if grep -q "VMWARE vCenter Server 6.5" "/mnt/cd1/readme.txt" 139 | then 140 | echo "Found vCentre 6.5 installer on CD1" 141 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_65 142 | fi 143 | fi 144 | if [ -f "/mnt/LABVOL/Build/VIM_67/autorun.exe" ] 145 | then 146 | echo "Already have vCentre 6.7 installer" 147 | else 148 | if grep -q "VMWARE vCenter Server 6.7" "/mnt/cd0/readme.txt" 149 | then 150 | echo "Found vCentre 6.7 installer on CD0" 151 | cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_67 152 | fi 153 | if grep -q "VMWARE vCenter Server 6.7" "/mnt/cd1/readme.txt" 154 | then 155 | echo "Found vCentre 6.7 installer on CD1" 156 | cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_67 157 | fi 158 | fi 159 | umount -f /dev/sr0 160 | umount -f /dev/sr1 161 | -------------------------------------------------------------------------------- /Build/Automate/NewCluster.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/NewCluster.ps1 -------------------------------------------------------------------------------- /Build/Automate/PXEMenuConfig.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Customizes AutoLab PXE boot menu based on the vSphere and vCloud source files added to TFTP. 4 | .DESCRIPTION 5 | Customizes AutoLab PXE boot menu based on the vSphere and vCloud source files added to TFTP. 6 | .PARAMETER Version 7 | The Version parameter tells the script which PXE boot options to add to the PXE default menu. 8 | .EXAMPLE 9 | C:\PS> PXEMenuConfig.ps1 ESXi51 10 | .EXAMPLE 11 | C:\PS> PXEMenuConfig.ps1 ESXi50 12 | .EXAMPLE 13 | C:\PS> PXEMenuConfig.ps1 ESXi41 14 | .EXAMPLE 15 | C:\PS> PXEMenuConfig.ps1 ESX41 16 | .EXAMPLE 17 | C:\PS> PXEMenuConfig.ps1 vCloud 18 | #> 19 | 20 | param($version) 21 | 22 | . "C:\PSFunctions.ps1" 23 | 24 | switch ($version) { 25 | ESXi67 { 26 | if ((Test-Path "C:\TFTP-Root\ESXi67\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "ESXi 6.7"))) { 27 | Write-BuildLog "Adding ESXi 6.7 option to PXE menu" 28 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 29 | 30 | LABEL ESXi 67 31 | MENU LABEL ESXi 6.7 automated builds 32 | KERNEL pxelinux.cfg/menu.c32 33 | APPEND pxelinux.cfg/ESXi67.menu 34 | "@ 35 | } else { 36 | Write-BuildLog "ESXi 6.7 already in PXE Menu" 37 | } 38 | } 39 | ESXi65 { 40 | if ((Test-Path "C:\TFTP-Root\ESXi65\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "ESXi 6.5"))) { 41 | Write-BuildLog "Adding ESXi 6.5 option to PXE menu" 42 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 43 | 44 | LABEL ESXi 65 45 | MENU LABEL ESXi 6.5 automated builds 46 | KERNEL pxelinux.cfg/menu.c32 47 | APPEND pxelinux.cfg/ESXi65.menu 48 | "@ 49 | } else { 50 | Write-BuildLog "ESXi 6.5 already in PXE Menu" 51 | } 52 | } 53 | ESXi60 { 54 | if ((Test-Path "C:\TFTP-Root\ESXi60\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "ESXi 6.0"))) { 55 | Write-BuildLog "Adding ESXi 6.0 option to PXE menu" 56 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 57 | 58 | LABEL ESXi 60 59 | MENU LABEL ESXi 6.0 automated builds 60 | KERNEL pxelinux.cfg/menu.c32 61 | APPEND pxelinux.cfg/ESXi60.menu 62 | "@ 63 | } else { 64 | Write-BuildLog "ESXi 6.0 already in PXE Menu" 65 | } 66 | } 67 | ESXi55 { 68 | if ((Test-Path "C:\TFTP-Root\ESXi55\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "ESXi 5.5"))) { 69 | Write-BuildLog "Adding ESXi 5.5 option to PXE menu" 70 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 71 | 72 | LABEL ESXi 5.5 73 | MENU LABEL ESXi 5.5 automated builds 74 | KERNEL pxelinux.cfg/menu.c32 75 | APPEND pxelinux.cfg/ESXi55.menu 76 | "@ 77 | } else { 78 | Write-BuildLog "ESXi 5.5 already in PXE Menu" 79 | } 80 | } 81 | ESXi51 { 82 | if ((Test-Path "C:\TFTP-Root\ESXi51\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "ESXi 5.1"))) { 83 | Write-BuildLog "Adding ESXi 5.1 option to PXE menu" 84 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 85 | 86 | LABEL ESXi 5.1 87 | MENU LABEL ESXi 5.1 automated builds 88 | KERNEL pxelinux.cfg/menu.c32 89 | APPEND pxelinux.cfg/ESXi51.menu 90 | "@ 91 | } else { 92 | Write-BuildLog "ESXi 5.1 already in PXE Menu" 93 | } 94 | } 95 | ESXi50 { 96 | if ((Test-Path "C:\TFTP-Root\ESXi50\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "ESXi 5.0"))) { 97 | Write-BuildLog "Adding ESXi 5.0 option to PXE menu" 98 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 99 | 100 | LABEL ESXi 5.0 101 | MENU LABEL ESXi 5.0 automated builds 102 | KERNEL pxelinux.cfg/menu.c32 103 | APPEND pxelinux.cfg/ESXi50.menu 104 | "@ 105 | } 106 | } 107 | ESXi41 { 108 | if (Test-Path "C:\TFTP-Root\ESXi41\*") { 109 | Write-BuildLog "Adding ESXi 4.1 option to PXE menu" 110 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 111 | 112 | LABEL ESXi 4.1 113 | MENU LABEL ESXi 4.1 automated builds 114 | KERNEL pxelinux.cfg/menu.c32 115 | APPEND pxelinux.cfg/ESXi41.menu 116 | "@ 117 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\ESXi41.menu" -Value @" 118 | 119 | label esxi1-4 120 | kernel /ESXi41/mboot.c32 121 | append /ESXi41/vmkboot.gz ks=nfs://192.168.199.7/mnt/LABVOL/Build/Automate/Hosts/esx1-4.cfg --- /ESXi41/vmkernel.gz --- /ESXi41/sys.vgz --- /ESXi41/cim.vgz --- /ESXi41/ienviron.vgz --- /ESXi41/install.vgz 122 | menu Label -- Host1 Automated 123 | 124 | label esxi2-4 125 | kernel /ESXi41/mboot.c32 126 | append /ESXi41/vmkboot.gz ks=nfs://192.168.199.7/mnt/LABVOL/Build/Automate/Hosts/esx2-4.cfg --- /ESXi41/vmkernel.gz --- /ESXi41/sys.vgz --- /ESXi41/cim.vgz --- /ESXi41/ienviron.vgz --- /ESXi41/install.vgz 127 | menu Label -- Host2 ESXi Automated 128 | "@ 129 | } 130 | } 131 | ESX41 { 132 | if ((Test-Path "C:\TFTP-Root\ESX41\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\ESXi41.menu" | Select-String -Pattern "ESX classic"))) { 133 | Write-BuildLog "Adding ESX 4.1 option to PXE menu" 134 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\ESXi41.menu" -Value @" 135 | 136 | label esx2-4 137 | kernel /ESX41/vmlinuz 138 | append initrd=/ESX41/initrd.img debugLogToSerial=1 mem=512M ks=nfs:192.168.199.7:/mnt/LABVOL/Build/Automate/Hosts/esx2-4c.cfg 139 | menu Label -- Host2 ESX classic Automated 140 | "@ 141 | } 142 | } 143 | vCloud { 144 | if (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\default" | Select-String -Pattern "vCloud") ) { 145 | Write-BuildLog "Adding vCloud option to PXE menu" 146 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\default" -Value @" 147 | 148 | LABEL vCloud 149 | MENU LABEL vCloud Director automated build 150 | KERNEL pxelinux.cfg/menu.c32 151 | APPEND pxelinux.cfg/vCloud.menu 152 | "@ 153 | } 154 | } 155 | vCD51 { 156 | if ((Test-Path "B:\vCD_51\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\vCloud.menu" | Select-String -Pattern "vCloud Director 5.1"))){ 157 | Write-BuildLog "Adding vCloud 5.1 option to PXE menu" 158 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\vCloud.menu" -Value @" 159 | 160 | label vCloud51 161 | kernel /vCloud/vmlinuz 162 | append ksdevice=eth0 load_ramdisk=1 initrd=/vCloud/initrd.img network ks=nfs:nfsvers=3:192.168.199.7:/mnt/LABVOL/Build/Automate/vCloud/vcd51-ks.cfg 163 | menu Label vCloud Director 5.1 automated build (DVD iso) 164 | 165 | label vCloud51 166 | kernel /vCloud/vmlinuz 167 | append ksdevice=eth0 load_ramdisk=1 initrd=/vCloud/initrd.img network ks=nfs:nfsvers=3:192.168.199.7:/mnt/LABVOL/Build/Automate/vCloud/vcd51-ks-min.cfg 168 | menu Label vCloud Director 5.1 automated build (minimal ISO) 169 | "@ 170 | } 171 | } 172 | vCD15 { 173 | if ((Test-Path "B:\vCD_15\*") -and (!(Get-Content "C:\TFTP-Root\pxelinux.cfg\vCloud.menu" | Select-String -Pattern "vCloud Director 1.5"))){ 174 | Write-BuildLog "Adding vCloud 1.5 option to PXE menu" 175 | Add-Content -Path "C:\TFTP-Root\pxelinux.cfg\vCloud.menu" -Value @" 176 | 177 | label vCloud15 178 | kernel /vCloud/vmlinuz 179 | append ksdevice=eth0 load_ramdisk=1 initrd=/vCloud/initrd.img network ks=nfs:nfsvers=3:192.168.199.7:/mnt/LABVOL/Build/Automate/vCloud/vcd15-ks.cfg 180 | menu Label vCloud Director 1.5 automated build (DVD iso) 181 | 182 | label vCloud15 183 | kernel /vCloud/vmlinuz 184 | append ksdevice=eth0 load_ramdisk=1 initrd=/vCloud/initrd.img network ks=nfs:nfsvers=3:192.168.199.7:/mnt/LABVOL/Build/Automate/vCloud/vcd15-ks-min.cfg 185 | menu Label vCloud Director 1.5 automated build (minimal iso) 186 | "@ 187 | } 188 | } 189 | } -------------------------------------------------------------------------------- /Build/Automate/SS/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * 4 | echo * Begining Build.cmd as %userdomain%\%username% 5 | echo * Begining Build.cmd as %userdomain%\%username% >> c:\buildlog.txt 6 | echo * Connect to build share 7 | echo * Connect to build share >> c:\buildlog.txt 8 | if not exist B:\ net use B: \\192.168.199.7\Build 9 | if not exist c:\temp\ md c:\temp 10 | regedit -s b:\Automate\_Common\ExecuPol.reg 11 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 12 | regedit -s B:\Automate\_Common\ExplorerView.reg 13 | regedit -s b:\Automate\_Common\IExplorer.reg 14 | REG ADD "HKCU\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F 15 | REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F 16 | REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments " /V SaveZoneInformation /T REG_SZ /D 1 /F 17 | copy B:\automate\_Common\wasp.dll C:\windows\system32 18 | echo * Activate Windows >> c:\buildlog.txt 19 | cscript //B "%windir%\system32\slmgr.vbs" /ato 20 | copy B:\Automate\PSFunctions.ps1 C:\ 21 | copy B:\Automate\validate.ps1 C:\ 22 | copy B:\Automate\%computername%\Build.ps1 c:\ 23 | echo * Starting PowerShell script for Phase 2 completion 24 | echo * Starting PowerShell script for Phase 2 completion >> C:\buildlog.txt 25 | powershell c:\Build.ps1 26 | if exist C:\Build.ps1 del c:\Build.ps1 -------------------------------------------------------------------------------- /Build/Automate/SS/Build.ps1: -------------------------------------------------------------------------------- 1 | if (Test-Path C:\PSFunctions.ps1) { 2 | . "C:\PSFunctions.ps1" 3 | } else { 4 | Write-Host "PSFunctions.ps1 not found. Please copy all PowerShell files from B:\Automate to C:\ and rerun Build.ps1" 5 | Read-Host "Press to exit" 6 | exit 7 | } 8 | $a = (Get-Host).UI.RawUI 9 | $a.WindowTitle = "SS Build Automation" 10 | $b = $a.WindowSize 11 | $b.Height = $a.MaxWindowSize.Height - 1 12 | $a.WindowSize = $b 13 | Import-Module C:\windows\system32\WASP.dll 14 | Select-Window -Title "SS Build Automation" | set-windowposition -left 75 -top 3 15 | 16 | if (Test-Path "B:\Automate\automate.ini") { 17 | Write-BuildLog "Determining automate.ini settings." 18 | $viewinstall = ((Select-String -SimpleMatch "ViewInstall=" -Path "B:\Automate\automate.ini").line).substring(12) 19 | Write-BuildLog " VMware View install set to $viewinstall." 20 | $timezone = ((Select-String -SimpleMatch "TZ=" -Path "B:\Automate\automate.ini").line).substring(3) 21 | Write-BuildLog " Timezone set to $timezone." 22 | tzutil /s "$timezone" 23 | $AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "B:\Automate\automate.ini").line).substring(9) 24 | $emailto = ((Select-String -SimpleMatch "emailto=" -Path "B:\Automate\automate.ini").line).substring(8) 25 | $SmtpServer = ((Select-String -SimpleMatch "SmtpServer=" -Path "B:\Automate\automate.ini").line).substring(11) 26 | } 27 | if ((Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain -eq $False) { 28 | Write-BuildLog "Joining domain" 29 | B:\automate\_Common\Autologon administrator lab $AdminPWD 30 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Build.cmd" /f 31 | $password = $AdminPWD | ConvertTo-SecureString -asPlainText -Force 32 | $credential = New-Object System.Management.Automation.PSCredential("administrator",$password) 33 | $null = Add-Computer -DomainName "lab.local" -Credential $credential -restart 34 | read-host "Wait for restart" 35 | } else { 36 | regedit /s b:\Automate\_Common\ExecuPol.reg 37 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 38 | Write-BuildLog "Change default local administrator password" 39 | net user administrator $AdminPWD 40 | B:\automate\_Common\Autologon administrator lab $AdminPWD 41 | reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /f 42 | Write-BuildLog "Setup Firewall" 43 | netsh advfirewall firewall add rule name="All ICMP V4" dir=in action=allow protocol=icmpv4 44 | netsh advfirewall firewall set rule group="remote desktop" new enable=Yes 45 | netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes 46 | } 47 | If (([System.Environment]::OSVersion.Version.Major -eq 6) -and ([System.Environment]::OSVersion.Version.Minor -ge 2)) { 48 | Write-BuildLog "Disabling autorun of ServerManager at logon." 49 | Start-Process schtasks -ArgumentList ' /Change /TN "\Microsoft\Windows\Server Manager\ServerManager" /DISABLE' -Wait -Verb RunAs 50 | Write-BuildLog "Disabling screen saver" 51 | set-ItemProperty -path 'HKCU:\Control Panel\Desktop' -name ScreenSaveActive -value 0 52 | Write-BuildLog "Install admin tools" 53 | Add-WindowsFeature RSAT-Feature-Tools,RSAT-DHCP,RSAT-DNS-Server,RSAT-AD-AdminCenter 54 | Write-BuildLog "Enable remote management through firewall" 55 | Netsh firewall set service RemoteAdmin 56 | Netsh advfirewall set currentprofile settings remotemanagement enable 57 | } 58 | 59 | $Files = get-childitem "b:\view$viewinstall" 60 | for ($i=0; $i -lt $files.Count; $i++) { 61 | If ($Files[$i].Name -like "VMware-viewconnectionserver*") {$Installer = $Files[$i].FullName} 62 | } 63 | Switch ($ViewInstall) { 64 | 50 { 65 | Write-BuildLog "Install View 5.0 Security Server" 66 | copy $Installer C:\ViewInstaller.exe 67 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=SS.external.com VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.20.199 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172"' 68 | } 51 { 69 | Write-BuildLog "Install View 5.1 Security Server" 70 | copy $Installer C:\ViewInstaller.exe 71 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=SS.external.com VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.20.199 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172"' 72 | } 52 { 73 | Write-BuildLog "Install View 5.2 Security Server" 74 | copy $Installer C:\ViewInstaller.exe 75 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=SS.external.com VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.20.199 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172"' 76 | } 53 { 77 | Write-BuildLog "Install View 5.3 Security Server" 78 | copy $Installer C:\ViewInstaller.exe 79 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=SS.external.com VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.20.199 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172"' 80 | } 60 { 81 | Write-BuildLog "Install View 6.0 Security Server" 82 | copy $Installer C:\ViewInstaller.exe 83 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=https://SS.lab.local:443 VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.199.35 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172"' 84 | } 70 { 85 | Write-BuildLog "Install View 7.0 Security Server" 86 | copy $Installer C:\ViewInstaller.exe 87 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=https://SS.lab.local:443 VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.199.35 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172"' -verb RunAs 88 | } 75 { 89 | Write-BuildLog "Install View 7.5 Security Server" 90 | copy $Installer C:\ViewInstaller.exe 91 | Start-Process C:\ViewInstaller.exe -wait -ArgumentList '/s /v"/qn VDM_SERVER_INSTANCE_TYPE=3 VDM_SERVER_NAME=cs1.lab.local VDM_SERVER_SS_EXTURL=https://SS.lab.local:443 VDM_SERVER_SS_PWD=VMware1! VDM_SERVER_SS_PCOIP_IPADDR=192.168.199.35 VDM_SERVER_SS_PCOIP_TCPPORT=4172 VDM_SERVER_SS_PCOIP_UDPPORT=4172 VDM_IP_PROTOCOL_USAG=IPv4"' -verb RunAs 92 | } 93 | } 94 | 95 | browserAndFlash 96 | 97 | Write-BuildLog "Cleanup" 98 | regedit /s b:\Automate\_Common\ExecuPol.reg 99 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 100 | reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /f 101 | Write-BuildLog "Install VMware Tools" 102 | b:\VMTools\Setup64.exe /s /v "/qn" 103 | if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none")){ 104 | Write-BuildLog "Emailing log" 105 | $mailmessage = New-Object system.net.mail.mailmessage 106 | $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 25) 107 | $mailmessage.from = "AutoLab" 108 | $mailmessage.To.add($emailto) 109 | $Summary = "Completed AutoLab VM build.`r`n" 110 | $Summary += "The build of $env:computername has finished, installing VMware Tools and rebooting`r`n" 111 | $Summary += "The build log is attached`r`n" 112 | $mailmessage.Subject = "$env:computername VM build finished" 113 | $mailmessage.Body = $Summary 114 | $attach = new-object Net.Mail.Attachment("C:\buildlog.txt") 115 | $mailmessage.Attachments.Add($attach) 116 | $SMTPClient.Send($mailmessage) 117 | $mailmessage.dispose() 118 | $SMTPClient.dispose() 119 | } 120 | Read-Host "Rebooting after VMTools Install" 121 | -------------------------------------------------------------------------------- /Build/Automate/ScriptMenu.ps1: -------------------------------------------------------------------------------- 1 | #PowerShell menu on VC rather than lots of scripts on desktop 2 | # 3 | # Version 0.8 4 | # 5 | # 6 | . "C:\PSFunctions.ps1" 7 | clear-host 8 | $choices = ("Validate this server's build","Open build log","Add ESXi Hosts to vCenter and configure cluster","Activate Windows", "Launch Derek Seamans SSL Script", "Shutdown Lab servers") 9 | While ($True) { 10 | $sel = SelectFromList $choices " AutoLab script Launcher" 11 | clear-host 12 | Switch ($sel) 13 | { 14 | 0 {Start-Process PowerShell.exe -Verb Runas -ArgumentList " c:\validate.ps1"} 15 | 1 {Invoke-Expression "C:\BuildLog.txt"} 16 | 2 {Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " C:\AddHosts.ps1"} 17 | 3 {Start-Process cscript.exe -Verb Runas -ArgumentList " c:\windows\system32\slmgr.vbs /ato"} 18 | 4 {Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " -noexit c:\Derek-SSL.ps1" -Verg RunAs} 19 | 5 {Invoke-Expression "C:\ShutLab.ps1"} 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Build/Automate/ShellVMs/TTYLinux/TTYLinux-flat.vmdk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/ShellVMs/TTYLinux/TTYLinux-flat.vmdk -------------------------------------------------------------------------------- /Build/Automate/ShellVMs/TTYLinux/TTYLinux.nvram: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/ShellVMs/TTYLinux/TTYLinux.nvram -------------------------------------------------------------------------------- /Build/Automate/ShellVMs/TTYLinux/TTYLinux.vmdk: -------------------------------------------------------------------------------- 1 | # Disk DescriptorFile 2 | version=1 3 | encoding="UTF-8" 4 | CID=9da7cb2f 5 | parentCID=ffffffff 6 | isNativeSnapshot="no" 7 | createType="vmfs" 8 | 9 | # Extent description 10 | RW 65536 VMFS "TTYLinux-flat.vmdk" 11 | 12 | # The Disk Data Base 13 | #DDB 14 | 15 | ddb.virtualHWVersion = "8" 16 | ddb.longContentID = "e043e0f2a20bce73ad8bd43f9da7cb2f" 17 | ddb.uuid = "60 00 C2 99 27 ac 5a 89-86 32 03 2e 95 a5 c9 8c" 18 | ddb.geometry.cylinders = "65" 19 | ddb.geometry.heads = "16" 20 | ddb.geometry.sectors = "63" 21 | ddb.adapterType = "ide" 22 | -------------------------------------------------------------------------------- /Build/Automate/ShellVMs/TTYLinux/TTYLinux.vmsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/ShellVMs/TTYLinux/TTYLinux.vmsd -------------------------------------------------------------------------------- /Build/Automate/ShellVMs/TTYLinux/TTYLinux.vmx: -------------------------------------------------------------------------------- 1 | .encoding = "UTF-8" 2 | config.version = "8" 3 | virtualHW.version = "8" 4 | pciBridge0.present = "true" 5 | pciBridge4.present = "true" 6 | pciBridge4.virtualDev = "pcieRootPort" 7 | pciBridge4.functions = "8" 8 | pciBridge5.present = "true" 9 | pciBridge5.virtualDev = "pcieRootPort" 10 | pciBridge5.functions = "8" 11 | pciBridge6.present = "true" 12 | pciBridge6.virtualDev = "pcieRootPort" 13 | pciBridge6.functions = "8" 14 | pciBridge7.present = "true" 15 | pciBridge7.virtualDev = "pcieRootPort" 16 | pciBridge7.functions = "8" 17 | vmci0.present = "true" 18 | hpet0.present = "true" 19 | nvram = "TTYLinux.nvram" 20 | virtualHW.productCompatibility = "hosted" 21 | powerType.powerOff = "soft" 22 | powerType.powerOn = "hard" 23 | powerType.suspend = "hard" 24 | powerType.reset = "soft" 25 | displayName = "TTYLinux" 26 | extendedConfigFile = "TTYLinux.vmxf" 27 | ide1:0.present = "true" 28 | ide1:0.clientDevice = "TRUE" 29 | ide1:0.deviceType = "atapi-cdrom" 30 | ide1:0.startConnected = "FALSE" 31 | ethernet0.present = "true" 32 | ethernet0.networkName = "Servers" 33 | ethernet0.addressType = "vpx" 34 | ethernet0.generatedAddress = "00:50:56:95:20:d0" 35 | guestOS = "linux" 36 | uuid.bios = "42 15 27 53 0c 46 21 06-ed 56 af cb 6a e6 93 6a" 37 | vc.uuid = "50 15 7e 5e 8f 11 7a e2-a4 c7 2e fb ec b1 ad f1" 38 | ide1:0.fileName = "" 39 | vmci0.id = "1793495914" 40 | uuid.location = "56 4d 05 c0 25 54 f1 ca-dc 48 58 81 01 1e b3 dc" 41 | cleanShutdown = "TRUE" 42 | replay.supported = "FALSE" 43 | sched.swap.derivedName = "/vmfs/volumes/50013664-85840aba-619f-000c290cc62d/TTYLinux/TTYLinux-9b440b2c.vswp" 44 | replay.filename = "" 45 | pciBridge0.pciSlotNumber = "17" 46 | pciBridge4.pciSlotNumber = "21" 47 | pciBridge5.pciSlotNumber = "22" 48 | pciBridge6.pciSlotNumber = "23" 49 | pciBridge7.pciSlotNumber = "24" 50 | ethernet0.pciSlotNumber = "32" 51 | vmci0.pciSlotNumber = "33" 52 | hostCPUID.0 = "0000000d756e65476c65746e49656e69" 53 | hostCPUID.1 = "000306a900020800969822231febfbff" 54 | hostCPUID.80000001 = "00000000000000000000000128100800" 55 | guestCPUID.0 = "0000000d756e65476c65746e49656e69" 56 | guestCPUID.1 = "000306a900010800969822030febfbff" 57 | guestCPUID.80000001 = "00000000000000000000000128100800" 58 | userCPUID.0 = "0000000d756e65476c65746e49656e69" 59 | userCPUID.1 = "000306a900010800969822030febfbff" 60 | userCPUID.80000001 = "00000000000000000000000128100800" 61 | evcCompatibilityMode = "FALSE" 62 | vmotion.checkpointFBSize = "4194304" 63 | keyboard.typematicMinDelay = "2000000" 64 | ide0:0.present = "TRUE" 65 | ide0:0.fileName = "TTYLinux.vmdk" 66 | ide0:0.redo = "" 67 | ethernet0.virtualDev = "e1000" 68 | scsi0.present = "FALSE" 69 | scsi0:0.present = "FALSE" 70 | floppy0.present = "FALSE" 71 | tools.remindInstall = "TRUE" 72 | -------------------------------------------------------------------------------- /Build/Automate/ShellVMs/TTYLinux/TTYLinux.vmxf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 52 50 d3 d7 3c 32 c8 bf-7f 3a e4 f6 fe a3 2f c1 5 | 6 | 7 | 8 | TTYLinux.vmx 9 | -------------------------------------------------------------------------------- /Build/Automate/ShutLab.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/ShutLab.ps1 -------------------------------------------------------------------------------- /Build/Automate/V1/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * 4 | echo ** 5 | echo * Connect to build share 6 | net use B: \\192.168.199.7\Build >> c:\buildlog.txt 7 | type b:\automate\version.txt >> c:\buildlog.txt 8 | echo ** 9 | echo * Setup persistent route to other subnet for SRM and View 10 | echo * Setup persistent route to other subnet for SRM and View >> c:\buildLog.txt 11 | route add 192.168.201.0 mask 255.255.255.0 192.168.199.254 -p 12 | echo ** 13 | echo * Install reqired Windows compnents 14 | echo * Install reqired Windows compnents >> c:\buildLog.txt 15 | Start /wait pkgmgr /l:C:\IIS_Install_Log.txt /iu:NetFx3;IIS-WebServerRole;IIS-WebServer;IIS-ApplicationDevelopment;IIS-ASP;IIS-ISAPIFilter;ADFS-WebAgentToken;IIS-ASPNET;IIS-Security;IIS-BasicAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-WindowsAuthentication;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-NetFxExtensibility;IIS-ISAPIExtensions 16 | echo ** 17 | echo * Install VMware Tools 18 | echo * Install VMware Tools >> c:\buildLog.txt 19 | b:\VMTools\Setup64.exe /s /v "/qn" 20 | timeout 60 21 | -------------------------------------------------------------------------------- /Build/Automate/VBR/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * 4 | echo ** 5 | echo * Connect to build share 6 | net use B: \\192.168.199.7\Build >> c:\buildlog.txt 7 | type b:\automate\version.txt >> c:\buildlog.txt 8 | echo ** 9 | echo * Setup persistent route to other subnet for SRM and View 10 | echo * Setup persistent route to other subnet for SRM and View >> c:\buildLog.txt 11 | route add 192.168.201.0 mask 255.255.255.0 192.168.199.254 -p 12 | echo ** 13 | echo * Install reqired Windows compnents 14 | echo * Install reqired Windows compnents >> c:\buildLog.txt 15 | Start /wait pkgmgr /l:C:\IIS_Install_Log.txt /iu:NetFx3;IIS-WebServerRole;IIS-WebServer;IIS-ApplicationDevelopment;IIS-ASP;IIS-ISAPIFilter;ADFS-WebAgentToken;IIS-ASPNET;IIS-Security;IIS-BasicAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-WindowsAuthentication;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-NetFxExtensibility;IIS-ISAPIExtensions 16 | echo ** 17 | echo * Install VMware Tools 18 | echo * Install VMware Tools >> c:\buildLog.txt 19 | b:\VMTools\Setup64.exe /s /v "/qn" 20 | timeout 60 21 | -------------------------------------------------------------------------------- /Build/Automate/VC/AdminPwd.ps1: -------------------------------------------------------------------------------- 1 | $AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "B:\Automate\automate.ini").line).substring(9) 2 | net user administrator $AdminPWD /domain 3 | $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "Lab\Administrator", (ConvertTo-SecureString -AsPlainText $AdminPWD -Force) 4 | invoke-command -computername DC -credential $cred { 5 | $AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "\\192.168.199.7\Build\Automate\automate.ini").line).substring(9) 6 | Start-Process Regedit.exe -ArgumentList " -s \\192.168.199.7\Build\automate\_Common\ExplorerView.reg" -verb RunAs 7 | Start-Process \\192.168.199.7\Build\automate\_Common\Autologon.exe -ArgumentList " administrator lab $AdminPWD" -verb RunAs 8 | } -------------------------------------------------------------------------------- /Build/Automate/VC/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * 4 | echo * Begining Build.cmd as %userdomain%\%username% 5 | echo * Begining Build.cmd as %userdomain%\%username% >> c:\buildlog.txt 6 | echo * Connect to build share 7 | echo * Connect to build share >> c:\buildlog.txt 8 | if not exist B:\ net use B: \\192.168.199.7\Build 9 | if not exist c:\temp\ md c:\temp 10 | regedit -s b:\Automate\_Common\ExecuPol.reg 11 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 12 | regedit -s B:\Automate\_Common\ExplorerView.reg 13 | regedit -s b:\Automate\_Common\IExplorer.reg 14 | regedit -s b:\Automate\_Common\Nested.reg 15 | copy b:\automate\_Common\wasp.dll c:\windows\system32 16 | copy B:\Automate\validate.ps1 C:\ 17 | copy B:\Automate\PSFunctions.ps1 C:\ 18 | copy B:\Automate\VC\Build.ps1 c:\ 19 | copy B:\Automate\VC\Derek-SSL.ps1 c:\ 20 | copy B:\automate\_Common\wasp.dll C:\windows\system32 21 | echo * Activate Windows >> c:\buildlog.txt 22 | cscript //B "%windir%\system32\slmgr.vbs" /ato 23 | echo * Starting PowerShell script for Build 24 | echo * Starting PowerShell script for Build >> C:\buildlog.txt 25 | powershell c:\Build.ps1 26 | -------------------------------------------------------------------------------- /Build/Automate/VC/Phase2.ps1: -------------------------------------------------------------------------------- 1 | . "C:\PSFunctions.ps1" 2 | Write-BuildLog "Phase2.ps1 waiting ten more minutes for vCentre services to finish starting" 3 | start-sleep 600 4 | Write-BuildLog "Determining automate.ini settings." 5 | $viewinstall = ((Select-String -SimpleMatch "ViewInstall=" -Path "B:\Automate\automate.ini").line).substring(12) 6 | Write-BuildLog " VMware View install set to $viewinstall." 7 | $vcinstall = "55" 8 | $vcinstall = ((Select-String -SimpleMatch "VCInstall=" -Path "B:\Automate\automate.ini").line).substring(10) 9 | If ($vcinstall -eq "50") {$vcinstall = "5"} 10 | $AutoAddHosts = ((Select-String -SimpleMatch "AutoAddHosts=" -Path "B:\Automate\automate.ini").line).substring(13) 11 | if ($AutoAddHosts -like "true") { 12 | $AutoAddHosts = $true 13 | Write-BuildLog " Hosts will be automatically added to vCenter after build completes." 14 | } else { 15 | $AutoAddHosts = $false 16 | } 17 | $DeployVUM = $false 18 | if ((((Select-String -SimpleMatch "DeployVUM=" -Path "B:\Automate\automate.ini").line).substring(10)) -like "true") { 19 | $DeployVUM = $true 20 | Write-BuildLog " VUM will be installed." 21 | } else { 22 | $DeployVUM = $false 23 | Write-BuildLog " No VUM." 24 | } 25 | $AdminPWD = "VMware1!" 26 | $AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "B:\Automate\automate.ini").line).substring(9) 27 | $emailto = ((Select-String -SimpleMatch "emailto=" -Path "B:\Automate\automate.ini").line).substring(8) 28 | $SmtpServer = ((Select-String -SimpleMatch "SmtpServer=" -Path "B:\Automate\automate.ini").line).substring(11) 29 | $PCLIVernum = "Now PowerCLI" 30 | $PCLIVernum = Get-PowerCLIVersion 31 | Write-BuildLog "Adding Domain Admins to vCenter administrators role and setting PowerCLI $PCLIVernum certificate warning." 32 | If (($vcinstall -eq "67") -or ($vcinstall -eq "65")) { 33 | $null = connect-viserver vc.lab.local -user administrator@vsphere.local -password VMware1! 34 | $null = New-VIPermission -Role Admin -Principal 'Administrator' -Entity Datacenters 35 | $null = Disconnect-VIServer -Server * -confirm:$false 36 | } elseif ($vcinstall -eq "60") { 37 | $null = connect-viserver vc.lab.local -user administrator@vsphere.local -password VMware1! 38 | $null = New-VIPermission -Role Admin -Principal 'Administrator' -Entity Datacenters 39 | $null = Disconnect-VIServer -Server * -confirm:$false 40 | } ElseIf (($vcinstall -eq "55") -or ($vcinstall -eq "51")) { 41 | $null = connect-viserver vc.lab.local -user vc\administrator -password $AdminPWD 42 | $null = New-VIPermission -Role Admin -Principal 'Administrators' -Entity Datacenters 43 | $null = Disconnect-VIServer -Server * -confirm:$false 44 | } Else { 45 | $null = connect-viserver vc.lab.local -user vc\administrator -password $AdminPWD 46 | $null = New-VIPermission -Role Admin -Principal 'lab\Domain Admins' -Entity Datacenters 47 | $null = New-VIPermission -Role Admin -Principal 'Administrator' -Entity Datacenters 48 | $null = Disconnect-VIServer -Server * -confirm:$false 49 | } 50 | If (($AutoAddHosts -eq "True") -and (Test-Path "c:\Addhosts.ps1")){ 51 | Write-BuildLog "Automatically running AddHosts script." 52 | Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " C:\AddHosts.ps1" -wait 53 | } 54 | if (Test-Path "C:\VMware-viewcomposer*") { 55 | $Files = get-childitem "C:\" 56 | for ($i=0; $i -lt $files.Count; $i++) { 57 | If ($Files[$i].Name -like "VMware-viewcomposer*") {$Installer = $Files[$i].FullName} 58 | } 59 | switch ($viewinstall) { 60 | 75 { 61 | Write-BuildLog "Installing VMware View 7.5 Composer" 62 | Start-Process $Installer -ArgumentList '/s /v" /qn AgreeToLicense="Yes" DB_USERNAME="VMview" DB_PASSWORD="VMware1!" DB_DSN="ViewComposer" REBOOT="ReallySuppress" "' -Wait -Verb RunAs 63 | } 70 { 64 | Write-BuildLog "Installing VMware View 7.0 Composer" 65 | Start-Process $Installer -ArgumentList '/s /v" /qn AgreeToLicense="Yes" DB_USERNAME="VMview" DB_PASSWORD="VMware1!" DB_DSN="ViewComposer" REBOOT="ReallySuppress" "' -Wait -Verb RunAs 66 | } 60 { 67 | Write-BuildLog "Installing VMware View 6.0 Composer" 68 | Start-Process $Installer -ArgumentList '/s /v" /qn AgreeToLicense="Yes" DB_USERNAME="VMview" DB_PASSWORD="VMware1!" DB_DSN="ViewComposer" REBOOT="ReallySuppress" "' -Wait -Verb RunAs 69 | } 53 { 70 | Write-BuildLog "Installing VMware View 5.3 Composer" 71 | Start-Process $Installer -ArgumentList '/s /v" /qn AgreeToLicense="Yes" DB_USERNAME="VMview" DB_PASSWORD="VMware1!" DB_DSN="ViewComposer" REBOOT="ReallySuppress" "' -Wait -Verb RunAs 72 | } 52 { 73 | Write-BuildLog "Installing VMware View 5.2 Composer" 74 | Start-Process $Installer -ArgumentList '/s /v" /qn AgreeToLicense="Yes" DB_USERNAME="VMview" DB_PASSWORD="VMware1!" DB_DSN="ViewComposer" REBOOT="ReallySuppress" "' -Wait -Verb RunAs 75 | } 76 | } 77 | } 78 | 79 | if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none")){ 80 | Write-BuildLog "Emailing log" 81 | $mailmessage = New-Object system.net.mail.mailmessage 82 | $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 25) 83 | $mailmessage.from = "AutoLab" 84 | $mailmessage.To.add($emailto) 85 | $Summary = "Completed AutoLab VM build.`r`n" 86 | $Summary += "The build of $env:computername has finished, installing VMware Tools and rebooting`r`n" 87 | $Summary += "The build log is attached`r`n" 88 | $mailmessage.Subject = "$env:computername VM build finished" 89 | $mailmessage.Body = $Summary 90 | $attach = new-object Net.Mail.Attachment("C:\buildlog.txt") 91 | $mailmessage.Attachments.Add($attach) 92 | $SMTPClient.Send($mailmessage) 93 | $mailmessage.dispose() 94 | $SMTPClient.dispose() 95 | } -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY.reg -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/LICENCE: -------------------------------------------------------------------------------- 1 | PuTTY is copyright 1997-2007 Simon Tatham. 2 | 3 | Portions copyright Robert de Bath, Joris van Rantwijk, Delian 4 | Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry, 5 | Justin Bradford, Ben Harris, Malcolm Smith, Ahmad Khalifa, Markus 6 | Kuhn, and CORE SDI S.A. 7 | 8 | Permission is hereby granted, free of charge, to any person 9 | obtaining a copy of this software and associated documentation files 10 | (the "Software"), to deal in the Software without restriction, 11 | including without limitation the rights to use, copy, modify, merge, 12 | publish, distribute, sublicense, and/or sell copies of the Software, 13 | and to permit persons to whom the Software is furnished to do so, 14 | subject to the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be 17 | included in all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 22 | NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE 23 | FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 24 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 25 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/README.txt: -------------------------------------------------------------------------------- 1 | PuTTY README 2 | ============ 3 | 4 | This is the README file for the PuTTY installer distribution. If 5 | you're reading this, you've probably just run our installer and 6 | installed PuTTY on your system. 7 | 8 | What should I do next? 9 | ---------------------- 10 | 11 | If you want to use PuTTY to connect to other computers, or use PSFTP 12 | to transfer files, you should just be able to run them from the 13 | Start menu. 14 | 15 | If you want to use the command-line-only file transfer utility PSCP, 16 | you will probably want to put the PuTTY installation directory on 17 | your PATH. How you do this depends on your version of Windows. On 18 | Windows NT, 2000, and XP, you can set it using Control Panel > System; 19 | on Windows 95, 98, and Me, you will need to edit AUTOEXEC.BAT. Consult 20 | your Windows manuals for details. 21 | 22 | Some versions of Windows will refuse to run HTML Help files (.CHM) 23 | if they are installed on a network drive. If you have installed 24 | PuTTY on a network drive, you might want to check that the help file 25 | works properly. If not, see http://support.microsoft.com/kb/896054 26 | for information on how to solve this problem. 27 | 28 | What do I do if it doesn't work? 29 | -------------------------------- 30 | 31 | The PuTTY home web site is 32 | 33 | http://www.chiark.greenend.org.uk/~sgtatham/putty/ 34 | 35 | Here you will find our list of known bugs and pending feature 36 | requests. If your problem is not listed in there, or in the FAQ, or 37 | in the manuals, read the Feedback page to find out how to report 38 | bugs to us. PLEASE read the Feedback page carefully: it is there to 39 | save you time as well as us. Do not send us one-line bug reports 40 | telling us `it doesn't work'. 41 | -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/pageant.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/pageant.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/plink.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/plink.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/pscp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/pscp.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/psftp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/psftp.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/putty.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/putty.chm -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/putty.cnt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/putty.cnt -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/putty.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/putty.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/putty.hlp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/putty.hlp -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/puttygen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/puttygen.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/unins000.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/unins000.dat -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/unins000.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/PuTTY/unins000.exe -------------------------------------------------------------------------------- /Build/Automate/VC/PuTTY/website.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.chiark.greenend.org.uk/~sgtatham/putty/ 3 | -------------------------------------------------------------------------------- /Build/Automate/VC/Shortcuts.vbs: -------------------------------------------------------------------------------- 1 | set WshShell = WScript.CreateObject("WScript.Shell") 2 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\AutoLab Script Menu.lnk") 3 | oShortCutLink.TargetPath = "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" 4 | oShortCutLink.Arguments = " c:\ScriptMenu.ps1" 5 | oShortCutLink.Save 6 | 7 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\AutoLab Portal.lnk") 8 | oShortCutLink.TargetPath = "C:\Program Files (x86)\Internet Explorer\iexplore.exe" 9 | oShortCutLink.Arguments = " dc.lab.local" 10 | oShortCutLink.Save 11 | 12 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\PuTTY.lnk") 13 | oShortCutLink.TargetPath = "C:\Program Files (x86)\PuTTY\PuTTY.exe" 14 | oShortCutLink.Save 15 | -------------------------------------------------------------------------------- /Build/Automate/VC/VC41.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo * Install vCenter 4.1 3 | echo * Install vCenter 4.1 >> c:\buildLog.txt 4 | start /wait B:\VIM_41\vpx\VMware-vcserver.exe /q /s /w /L1033 /v" /qr WARNING_LEVEL=0 USERNAME=\"Lab\" COMPANYNAME=\"lab.local\" DB_SERVER_TYPE=Custom DB_DSN=\"VCenterDB\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" VPX_USES_SYSTEM_ACCOUNT=\"1\" FORMAT_DB=1 VCS_GROUP_TYPE=Single" 5 | echo ** 6 | echo * Install vSphere Client 4.1 7 | echo * Install vSphere Client 4.1 >> c:\buildLog.txt 8 | start /wait B:\VIM_41\vpx\VMware-viclient.exe /q /s /w /L1033 /v" /qr" 9 | echo ** 10 | echo * Install vSphere Client 4.1 VUM Plugin 11 | echo * Install vSphere Client 4.1 VUM Plugin >> c:\buildLog.txt 12 | start /wait B:\VIM_41\updateManager\VMware-UMClient.exe /q /s /w /L1033 /v" /qr" 13 | timeout 30 14 | echo ** 15 | echo * Install vCenter Update Manager 4.1 16 | echo * Install vCenter Update Manager 4.1 >> c:\buildLog.txt 17 | start /wait B:\VIM_41\updateManager\VMware-UpdateManager.exe /L1033 /v" /qn VMUM_SERVER_SELECT=192.168.199.5 VC_SERVER_IP=vc.lab.local VC_SERVER_ADMIN_USER=\"administrator\" VC_SERVER_ADMIN_PASSWORD=\"VMware1!\" VCI_DB_SERVER_TYPE=Custom VCI_FORMAT_DB=1 DB_DSN=\"VUM\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" " 18 | -------------------------------------------------------------------------------- /Build/Automate/VC/VC50.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo * Install vCenter 5.0 3 | echo * Install vCenter 5.0 >> c:\buildLog.txt 4 | start /wait B:\VIM_50\vCenter-Server\VMware-vcserver.exe /q /s /w /L1033 /v" /qr WARNING_LEVEL=0 USERNAME=\"Lab\" COMPANYNAME=\"lab.local\" DB_SERVER_TYPE=Custom DB_DSN=\"VCenterDB\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" VPX_USES_SYSTEM_ACCOUNT=\"1\" FORMAT_DB=1 VCS_GROUP_TYPE=Single" 5 | echo ** 6 | echo * Install vSphere Client 5.0 7 | echo * Install vSphere Client 5.0 >> c:\buildLog.txt 8 | start /wait B:\VIM_50\vSphere-Client\VMware-viclient.exe /q /s /w /L1033 /v" /qr" 9 | echo ** 10 | echo * Install vSphere Client 5.0 VUM Plugin 11 | echo * Install vSphere Client 5.0 VUM Plugin >> c:\buildLog.txt 12 | start /wait B:\VIM_50\updateManager\VMware-UMClient.exe /q /s /w /L1033 /v" /qr" 13 | echo ** 14 | echo * Install vCenter Update Manager 5.0 15 | echo * Install vCenter Update Manager 5.0 >> c:\buildLog.txt 16 | start /wait B:\VIM_50\updateManager\VMware-UpdateManager.exe /L1033 /v" /qn VMUM_SERVER_SELECT=192.168.199.5 VC_SERVER_IP=vc.lab.local VC_SERVER_ADMIN_USER=\"administrator\" VC_SERVER_ADMIN_PASSWORD=\"VMware1!\" VCI_DB_SERVER_TYPE=Custom VCI_FORMAT_DB=1 DB_DSN=\"VUM\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1lab\" " 17 | -------------------------------------------------------------------------------- /Build/Automate/VC/WinTemplate.nvram: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/WinTemplate.nvram -------------------------------------------------------------------------------- /Build/Automate/VC/bfi-nu2lic.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002 Bart Lagerweij. All rights reserved. 2 | 3 | NU2-LICENSE 4 | 5 | 1. By using and/or opening any packaging enclosing this 6 | software, expanding any compressed file containing this 7 | software or by utilizing this software, you agree to be 8 | bound by the terms of this license agreement. 9 | 10 | 2. The software, documentation and any other materials 11 | accompanying this License whether on disk, in read only 12 | memory, on any other media or in any other form 13 | (collectively the "Software") are licensed, not sold, to you 14 | by Bart Lagerweij, as well as their respective members, 15 | agents, directors, officers, servants and representatives 16 | (collectively "Licensor") for use only under the terms of 17 | this License, and Licensor reserves all rights not expressly 18 | granted to you. The rights granted herein are limited to 19 | Licensor's intellectual property rights in the Software and 20 | do not include any other patents or intellectual property 21 | rights. You own the media on which the Software is recorded 22 | but Licensor retains ownership of the Software itself. The 23 | rights granted under the terms of this License include any 24 | software upgrades that replace and/or supplement the 25 | original Software product, unless such upgrade contains a 26 | separate license. 27 | 28 | 3. Permission is hereby granted, free of charge, to any 29 | person obtaining a copy of the Software to use, copy, 30 | publish and distribute the Software, subject to the 31 | conditions of this License. 32 | 33 | 4. This license must be included with all copies of the 34 | Software, and may not be modified from its original format 35 | as created by the Licensor. The Software may not be 36 | distributed subject to any other license. 37 | 38 | 5. This License is effective until terminated. Your rights 39 | under this License will terminate automatically without 40 | notice from Licensor or if you fail to comply with any 41 | term(s) of this License. Upon the termination of this 42 | License, you shall cease all use of the Software and destroy 43 | all copies of it, whether full or partial. 44 | 45 | 6. Selling or charging a fee for the Software is prohibited, 46 | although a fee may be charged for the act of transferring a 47 | copy and/or for the distribution media, but not for the 48 | Software itself. 49 | 50 | 7. The Software, in whole or in part, may not be 51 | incorporated with or into any other software product without 52 | written permission from Licensor. 53 | 54 | 8. You expressly acknowledge and agree that use of the 55 | software is at your sole risk and that the entire risk as to 56 | satisfactory quality, performance, accuracy and effort is 57 | with you. Licensor does not warrant against interference 58 | with your enjoyment of the software, that the functions 59 | contained in the software will meet your requirements, that 60 | the operation of the software will be uninterrupted or 61 | error-free, or that defects in the software will be 62 | corrected. Should the software prove defective, you assume 63 | the entire cost of all necessary servicing, repair or 64 | correction. 65 | 66 | 9. THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY 67 | KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 68 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 69 | PURPOSE AND NONINFRINGEMENT. No oral or written advice given 70 | by Licensor or by an authorized representative of Licensor 71 | shall create a warranty. 72 | 73 | 10. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT SHALL 74 | THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 75 | LIABILITY, INCLUDING BUT NOT LIMITED TO PERSONAL INJURY, OR 76 | ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES 77 | WHATSOEVER, INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS 78 | OF PROFITS, LOSS OF DATA, BUSINESS INTERRUPTION OR ANY OTHER 79 | COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO 80 | YOUR USE OR INABILITY TO USE THE SOFTWARE, HOWEVER CAUSED, 81 | REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT OR 82 | OTHERWISE) AND EVEN IF LICENSOR HAS BEEN ADVISED OF THE 83 | POSSIBILITY OF SUCH DAMAGES. 84 | 85 | 11. THIS SOFTWARE IS NOT INTENDED FOR USE IN ANY APPLICATION 86 | IN WHICH THE FAILURE OF THE SOFTWARE COULD LEAD TO DEATH, 87 | PERSONAL INJURY OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE. 88 | 89 | 12. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED 90 | WARRANTIES, LIABILITY OR LIMITATIONS ON APPLICABLE STATUTORY 91 | RIGHTS OF A CONSUMER, SO THE ABOVE EXCLUSIONS AND 92 | LIMITATIONS MAY NOT APPLY TO YOU. IF SUCH EXCLUSIONS FROM 93 | LIABILITY APPLY TO YOU, DO NOT USE THIS SOFTWARE. 94 | 95 | 13. In no event shall Licensor's total liability to you for 96 | all damages exceed the amount of $50.00. The foregoing 97 | limitations will apply even if the above stated remedy fails 98 | in its essential purpose. 99 | 100 | 14. This License constitutes the entire agreement between 101 | the parties with respect to the use of the Software licensed 102 | hereunder and supersedes all prior or contemporaneous 103 | understandings regarding such subject matter. No amendment 104 | to or modification of this License will be binding unless in 105 | writing and signed by Licensor. Any translation of this 106 | License is done for local requirements and in the event of a 107 | dispute between the English and any non-English versions, 108 | the English version of this License shall govern. 109 | 110 | 15. This License will be governed by and construed in 111 | accordance with the laws of the Netherlands, as applied to 112 | agreements entered into and to be performed entirely within 113 | the Netherlands between Dutch residents. This License shall 114 | not be governed by the United Nations Convention on 115 | Contracts for the International Sale of Goods, the 116 | application of which is expressly excluded. 117 | 118 | 16. If for any reason a court of competent jurisdiction 119 | finds any provision, or portion thereof, to be 120 | unenforceable, the remainder of this License shall continue 121 | in full force and effect. 122 | -------------------------------------------------------------------------------- /Build/Automate/VC/bfi.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/bfi.exe -------------------------------------------------------------------------------- /Build/Automate/VC/mkisofs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/mkisofs.exe -------------------------------------------------------------------------------- /Build/Automate/VC/sshAutoConnect/sshAutoConnect.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/sshAutoConnect/sshAutoConnect.dll -------------------------------------------------------------------------------- /Build/Automate/VC/sshAutoConnect/sshAutoConnect.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | root 5 | Vk13YXJlMSE= 6 | 7 | -------------------------------------------------------------------------------- /Build/Automate/VC/vCenter6DB.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/vCenter6DB.reg -------------------------------------------------------------------------------- /Build/Automate/VC/vCenterDB.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/vCenterDB.reg -------------------------------------------------------------------------------- /Build/Automate/VC/vCentre60.json: -------------------------------------------------------------------------------- 1 | { 2 | "INSTALLDIR" : "C:\\Program Files\\VMware\\", 3 | "appliance.net.pnid" : "vc.lab.local", 4 | "appliance.net.ports" : { 5 | "autodeploy.ext.managementport" : 6502, 6 | "autodeploy.ext.serviceport" : 6501, 7 | "cis-license.int.http" : 12080, 8 | "cm.int.cmhttp" : 18090, 9 | "eam.int.http" : 15005, 10 | "eam.int.https" : 15006, 11 | "invsvc.int.http" : 10080, 12 | "mbcs.int.http" : 10201, 13 | "netdumper.ext.serviceport" : 6500, 14 | "netdumper.int.webport" : 8000, 15 | "perfcharts.int.https" : 13080, 16 | "rhttpproxy.ext.port1" : 80, 17 | "rhttpproxy.ext.port2" : 443, 18 | "sca.int.scahttp" : 18091, 19 | "sps.int.pbmhttp" : 8190, 20 | "sps.int.pbmhttps" : 8191, 21 | "sps.int.smshttp" : 22000, 22 | "sps.int.smshttps" : 22100, 23 | "sps.int.spshttp" : 21000, 24 | "sps.int.spshttps" : 21100, 25 | "sts.ext.port1" : 7444, 26 | "sts.int.port1" : 7081, 27 | "syslog.ext.port" : 514, 28 | "syslog.ext.tls.port" : 1514, 29 | "vapi.int.endpoint-http" : 12346, 30 | "vapi.int.endpoint-https" : 12347, 31 | "vapi.int.metadata-http" : 4298, 32 | "vmafd.ext.port1" : 2020, 33 | "vmca.ext.port1" : 2014, 34 | "vmdir.compatibility.ext.port1" : 11711, 35 | "vmdir.compatibility.ext.port2" : 11712, 36 | "vmdir.dcerpc.ext.port1" : 2012, 37 | "vmdir.ext.port1" : 389, 38 | "vmdir.ext.port2" : 636, 39 | "vmkdc.ext.port1" : 88, 40 | "vpostgres.int.healthstat_port" : 5444, 41 | "vpostgres.int.server_port" : 5432, 42 | "vpxd.ext.port1" : 902, 43 | "vpxd.int.sdk-port" : 8085, 44 | "vpxd.int.sdk-tunnel-port" : 8089, 45 | "vsm.int.http" : 15007, 46 | "vsm.int.https" : 15008, 47 | "vsphere-client.ext.port1" : 9443, 48 | "workflow.int.jmx-port" : 19999, 49 | "workflow.int.service-port" : 8088 50 | }, 51 | "clientlocale" : "yes", 52 | "db.clobber" : "yes", 53 | "db.dsn" : "vCenterDB", 54 | "db.password" : "VMware1!", 55 | "db.type" : "external", 56 | "db.user" : "vpx", 57 | "deployment.node.type" : "embedded", 58 | "machine.cert.replacement" : null, 59 | "silentinstall" : null, 60 | "system.vm0.hostname" : null, 61 | "system.vm0.port" : "443", 62 | "upgrade.import.directory" : null, 63 | "vc.5x.password" : null, 64 | "vc.5x.username" : null, 65 | "vc.svcuser" : "", 66 | "vc.svcuserpassword" : null, 67 | "vmdir.cert.thumbprint" : null, 68 | "vmdir.domain-name" : "vsphere.local", 69 | "vmdir.first-instance" : true, 70 | "vmdir.password" : "VMware1!", 71 | "vmdir.replication-partner-hostname" : null, 72 | "vmdir.site-name" : "Default-First-Site", 73 | "vmware.data.directory" : "C:\\ProgramData\\VMware\\", 74 | "ceip": { 75 | "__comments": [ 76 | "++++VMware Customer Experience Improvement Program (CEIP)++++", 77 | "VMware's Customer Experience Improvement Program (CEIP) ", 78 | "provides VMware with information that enables VMware to ", 79 | "improve its products and services, to fix problems, ", 80 | "and to advise you on how best to deploy and use our ", 81 | "products. As part of the CEIP, VMware collects technical ", 82 | "information about your organization's use of VMware products ", 83 | "and services on a regular basis in association with your ", 84 | "organization's VMware license key(s). This information does ", 85 | "not personally identify any individual. ", 86 | "For more details about the Program and how VMware uses ", 87 | "the information it collects through CEIP, please see the ", 88 | "[http://www.vmware.com/info?id=1399 product documentation]. ", 89 | "By default we have 'ceip.enabled': true, which indicates ", 90 | "that you are joining CEIP. If you prefer not to ", 91 | "participate in VMware's CEIP for this product, you should ", 92 | "disable CEIP by setting 'ceip.enable': false. You may join ", 93 | "or leave VMware's CEIP for this product at any time. Please ", 94 | "confirm your acknowledgement by setting ", 95 | "'ceip.acknowledged': true. ", 96 | "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" 97 | ], 98 | "ceip.enabled": true, 99 | "ceip.acknowledged": true 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /Build/Automate/VC/vSphereClient.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC/vSphereClient.reg -------------------------------------------------------------------------------- /Build/Automate/VC2/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ************************* 3 | echo * 4 | echo ** 5 | echo * Connect to build share 6 | net use B: \\192.168.199.7\Build >> c:\buildlog.txt 7 | md c:\temp 8 | type b:\automate\version.txt >> c:\buildlog.txt 9 | regedit -s b:\Automate\_Common\ExecuPol.reg 10 | regedit -s b:\Automate\_Common\NoSCRNSave.reg 11 | regedit -s B:\Automate\_Common\ExplorerView.reg 12 | regedit -s b:\Automate\_Common\IExplorer.reg 13 | regedit -s b:\Automate\VC2\vCenterDB.reg 14 | copy b:\automate\_Common\wasp.dll c:\windows\system32 15 | copy B:\Automate\validate.ps1 C:\ 16 | copy B:\Automate\PSFunctions.ps1 C:\ 17 | copy B:\Automate\VC2\Build.ps1 c:\ 18 | echo * Starting PowerShell script for Phase 2 completion 19 | echo * Starting PowerShell script for Phase 2 completion >> C:\buildlog.txt 20 | powershell c:\Build.ps1 21 | rem if exist C:\Build.ps1 del c:\Build.ps1 22 | rem if exist c:\Build.cmd del c:\Build.cmd -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY.reg -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/LICENCE: -------------------------------------------------------------------------------- 1 | PuTTY is copyright 1997-2007 Simon Tatham. 2 | 3 | Portions copyright Robert de Bath, Joris van Rantwijk, Delian 4 | Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry, 5 | Justin Bradford, Ben Harris, Malcolm Smith, Ahmad Khalifa, Markus 6 | Kuhn, and CORE SDI S.A. 7 | 8 | Permission is hereby granted, free of charge, to any person 9 | obtaining a copy of this software and associated documentation files 10 | (the "Software"), to deal in the Software without restriction, 11 | including without limitation the rights to use, copy, modify, merge, 12 | publish, distribute, sublicense, and/or sell copies of the Software, 13 | and to permit persons to whom the Software is furnished to do so, 14 | subject to the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be 17 | included in all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 22 | NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE 23 | FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 24 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 25 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/README.txt: -------------------------------------------------------------------------------- 1 | PuTTY README 2 | ============ 3 | 4 | This is the README file for the PuTTY installer distribution. If 5 | you're reading this, you've probably just run our installer and 6 | installed PuTTY on your system. 7 | 8 | What should I do next? 9 | ---------------------- 10 | 11 | If you want to use PuTTY to connect to other computers, or use PSFTP 12 | to transfer files, you should just be able to run them from the 13 | Start menu. 14 | 15 | If you want to use the command-line-only file transfer utility PSCP, 16 | you will probably want to put the PuTTY installation directory on 17 | your PATH. How you do this depends on your version of Windows. On 18 | Windows NT, 2000, and XP, you can set it using Control Panel > System; 19 | on Windows 95, 98, and Me, you will need to edit AUTOEXEC.BAT. Consult 20 | your Windows manuals for details. 21 | 22 | Some versions of Windows will refuse to run HTML Help files (.CHM) 23 | if they are installed on a network drive. If you have installed 24 | PuTTY on a network drive, you might want to check that the help file 25 | works properly. If not, see http://support.microsoft.com/kb/896054 26 | for information on how to solve this problem. 27 | 28 | What do I do if it doesn't work? 29 | -------------------------------- 30 | 31 | The PuTTY home web site is 32 | 33 | http://www.chiark.greenend.org.uk/~sgtatham/putty/ 34 | 35 | Here you will find our list of known bugs and pending feature 36 | requests. If your problem is not listed in there, or in the FAQ, or 37 | in the manuals, read the Feedback page to find out how to report 38 | bugs to us. PLEASE read the Feedback page carefully: it is there to 39 | save you time as well as us. Do not send us one-line bug reports 40 | telling us `it doesn't work'. 41 | -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/pageant.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/pageant.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/plink.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/plink.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/pscp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/pscp.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/psftp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/psftp.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/putty.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/putty.chm -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/putty.cnt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/putty.cnt -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/putty.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/putty.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/putty.hlp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/putty.hlp -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/puttygen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/puttygen.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/unins000.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/unins000.dat -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/unins000.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/PuTTY/unins000.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/PuTTY/website.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.chiark.greenend.org.uk/~sgtatham/putty/ 3 | -------------------------------------------------------------------------------- /Build/Automate/VC2/Shortcuts.vbs: -------------------------------------------------------------------------------- 1 | set WshShell = WScript.CreateObject("WScript.Shell") 2 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\vSphere.lnk") 3 | oShortCutLink.TargetPath = "C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" 4 | oShortCutLink.Arguments = "-s vc2.lab.local -PassthroughAuth" 5 | oShortCutLink.Save 6 | 7 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\VMware vSphere Client.lnk") 8 | oShortCutLink.TargetPath = "C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" 9 | oShortCutLink.Save 10 | 11 | 12 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\AutoLab Script Menu.lnk") 13 | oShortCutLink.TargetPath = "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" 14 | oShortCutLink.Arguments = " c:\ScriptMenu.ps1" 15 | oShortCutLink.Save 16 | 17 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\AutoLab Portal.lnk") 18 | oShortCutLink.TargetPath = "C:\Program Files (x86)\Internet Explorer\iexplore.exe" 19 | oShortCutLink.Arguments = " dc.lab.local" 20 | oShortCutLink.Save 21 | 22 | set oShortCutLink = WshShell.CreateShortcut("C:\Users\Public\Desktop\PuTTY.lnk") 23 | oShortCutLink.TargetPath = "C:\Program Files (x86)\PuTTY\PuTTY.exe" 24 | oShortCutLink.Save 25 | -------------------------------------------------------------------------------- /Build/Automate/VC2/VC41.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo * Install vCenter 4.1 3 | echo * Install vCenter 4.1 >> c:\buildLog.txt 4 | start /wait B:\VIM_41\vpx\VMware-vcserver.exe /q /s /w /L1033 /v" /qr WARNING_LEVEL=0 USERNAME=\"Lab\" COMPANYNAME=\"lab.local\" DB_SERVER_TYPE=Custom DB_DSN=\"VCenterDB\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" VPX_USES_SYSTEM_ACCOUNT=\"1\" FORMAT_DB=1 VCS_GROUP_TYPE=Single" 5 | echo ** 6 | echo * Install vSphere Client 4.1 7 | echo * Install vSphere Client 4.1 >> c:\buildLog.txt 8 | start /wait B:\VIM_41\vpx\VMware-viclient.exe /q /s /w /L1033 /v" /qr" 9 | echo ** 10 | echo * Install vSphere Client 4.1 VUM Plugin 11 | echo * Install vSphere Client 4.1 VUM Plugin >> c:\buildLog.txt 12 | start /wait B:\VIM_41\updateManager\VMware-UMClient.exe /q /s /w /L1033 /v" /qr" 13 | timeout 30 14 | echo ** 15 | echo * Install vCenter Update Manager 4.1 16 | echo * Install vCenter Update Manager 4.1 >> c:\buildLog.txt 17 | start /wait B:\VIM_41\updateManager\VMware-UpdateManager.exe /L1033 /v" /qn VMUM_SERVER_SELECT=192.168.199.5 VC_SERVER_IP=vc.lab.local VC_SERVER_ADMIN_USER=\"administrator\" VC_SERVER_ADMIN_PASSWORD=\"VMware1!\" VCI_DB_SERVER_TYPE=Custom VCI_FORMAT_DB=1 DB_DSN=\"VUM\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" " 18 | -------------------------------------------------------------------------------- /Build/Automate/VC2/VC50.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo * Install vCenter 5.0 3 | echo * Install vCenter 5.0 >> c:\buildLog.txt 4 | start /wait B:\VIM_50\vCenter-Server\VMware-vcserver.exe /q /s /w /L1033 /v" /qr WARNING_LEVEL=0 USERNAME=\"Lab\" COMPANYNAME=\"lab.local\" DB_SERVER_TYPE=Custom DB_DSN=\"VCenterDB\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" VPX_USES_SYSTEM_ACCOUNT=\"1\" FORMAT_DB=1 VCS_GROUP_TYPE=Single" 5 | echo ** 6 | echo * Install vSphere Client 5.0 7 | echo * Install vSphere Client 5.0 >> c:\buildLog.txt 8 | start /wait B:\VIM_50\vSphere-Client\VMware-viclient.exe /q /s /w /L1033 /v" /qr" 9 | echo ** 10 | echo * Install vSphere Client 5.0 VUM Plugin 11 | echo * Install vSphere Client 5.0 VUM Plugin >> c:\buildLog.txt 12 | start /wait B:\VIM_50\updateManager\VMware-UMClient.exe /q /s /w /L1033 /v" /qr" 13 | echo ** 14 | echo * Install vCenter Update Manager 5.0 15 | echo * Install vCenter Update Manager 5.0 >> c:\buildLog.txt 16 | start /wait B:\VIM_50\updateManager\VMware-UpdateManager.exe /L1033 /v" /qn VMUM_SERVER_SELECT=192.168.199.5 VC_SERVER_IP=vc.lab.local VC_SERVER_ADMIN_USER=\"administrator\" VC_SERVER_ADMIN_PASSWORD=\"VMware1!\" VCI_DB_SERVER_TYPE=Custom VCI_FORMAT_DB=1 DB_DSN=\"VUM\" DB_USERNAME=\"vpx\" DB_PASSWORD=\"VMware1!\" " 17 | -------------------------------------------------------------------------------- /Build/Automate/VC2/WinTemplate.nvram: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/WinTemplate.nvram -------------------------------------------------------------------------------- /Build/Automate/VC2/bfi-nu2lic.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002 Bart Lagerweij. All rights reserved. 2 | 3 | NU2-LICENSE 4 | 5 | 1. By using and/or opening any packaging enclosing this 6 | software, expanding any compressed file containing this 7 | software or by utilizing this software, you agree to be 8 | bound by the terms of this license agreement. 9 | 10 | 2. The software, documentation and any other materials 11 | accompanying this License whether on disk, in read only 12 | memory, on any other media or in any other form 13 | (collectively the "Software") are licensed, not sold, to you 14 | by Bart Lagerweij, as well as their respective members, 15 | agents, directors, officers, servants and representatives 16 | (collectively "Licensor") for use only under the terms of 17 | this License, and Licensor reserves all rights not expressly 18 | granted to you. The rights granted herein are limited to 19 | Licensor's intellectual property rights in the Software and 20 | do not include any other patents or intellectual property 21 | rights. You own the media on which the Software is recorded 22 | but Licensor retains ownership of the Software itself. The 23 | rights granted under the terms of this License include any 24 | software upgrades that replace and/or supplement the 25 | original Software product, unless such upgrade contains a 26 | separate license. 27 | 28 | 3. Permission is hereby granted, free of charge, to any 29 | person obtaining a copy of the Software to use, copy, 30 | publish and distribute the Software, subject to the 31 | conditions of this License. 32 | 33 | 4. This license must be included with all copies of the 34 | Software, and may not be modified from its original format 35 | as created by the Licensor. The Software may not be 36 | distributed subject to any other license. 37 | 38 | 5. This License is effective until terminated. Your rights 39 | under this License will terminate automatically without 40 | notice from Licensor or if you fail to comply with any 41 | term(s) of this License. Upon the termination of this 42 | License, you shall cease all use of the Software and destroy 43 | all copies of it, whether full or partial. 44 | 45 | 6. Selling or charging a fee for the Software is prohibited, 46 | although a fee may be charged for the act of transferring a 47 | copy and/or for the distribution media, but not for the 48 | Software itself. 49 | 50 | 7. The Software, in whole or in part, may not be 51 | incorporated with or into any other software product without 52 | written permission from Licensor. 53 | 54 | 8. You expressly acknowledge and agree that use of the 55 | software is at your sole risk and that the entire risk as to 56 | satisfactory quality, performance, accuracy and effort is 57 | with you. Licensor does not warrant against interference 58 | with your enjoyment of the software, that the functions 59 | contained in the software will meet your requirements, that 60 | the operation of the software will be uninterrupted or 61 | error-free, or that defects in the software will be 62 | corrected. Should the software prove defective, you assume 63 | the entire cost of all necessary servicing, repair or 64 | correction. 65 | 66 | 9. THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY 67 | KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 68 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 69 | PURPOSE AND NONINFRINGEMENT. No oral or written advice given 70 | by Licensor or by an authorized representative of Licensor 71 | shall create a warranty. 72 | 73 | 10. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT SHALL 74 | THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 75 | LIABILITY, INCLUDING BUT NOT LIMITED TO PERSONAL INJURY, OR 76 | ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES 77 | WHATSOEVER, INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS 78 | OF PROFITS, LOSS OF DATA, BUSINESS INTERRUPTION OR ANY OTHER 79 | COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO 80 | YOUR USE OR INABILITY TO USE THE SOFTWARE, HOWEVER CAUSED, 81 | REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT OR 82 | OTHERWISE) AND EVEN IF LICENSOR HAS BEEN ADVISED OF THE 83 | POSSIBILITY OF SUCH DAMAGES. 84 | 85 | 11. THIS SOFTWARE IS NOT INTENDED FOR USE IN ANY APPLICATION 86 | IN WHICH THE FAILURE OF THE SOFTWARE COULD LEAD TO DEATH, 87 | PERSONAL INJURY OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE. 88 | 89 | 12. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED 90 | WARRANTIES, LIABILITY OR LIMITATIONS ON APPLICABLE STATUTORY 91 | RIGHTS OF A CONSUMER, SO THE ABOVE EXCLUSIONS AND 92 | LIMITATIONS MAY NOT APPLY TO YOU. IF SUCH EXCLUSIONS FROM 93 | LIABILITY APPLY TO YOU, DO NOT USE THIS SOFTWARE. 94 | 95 | 13. In no event shall Licensor's total liability to you for 96 | all damages exceed the amount of $50.00. The foregoing 97 | limitations will apply even if the above stated remedy fails 98 | in its essential purpose. 99 | 100 | 14. This License constitutes the entire agreement between 101 | the parties with respect to the use of the Software licensed 102 | hereunder and supersedes all prior or contemporaneous 103 | understandings regarding such subject matter. No amendment 104 | to or modification of this License will be binding unless in 105 | writing and signed by Licensor. Any translation of this 106 | License is done for local requirements and in the event of a 107 | dispute between the English and any non-English versions, 108 | the English version of this License shall govern. 109 | 110 | 15. This License will be governed by and construed in 111 | accordance with the laws of the Netherlands, as applied to 112 | agreements entered into and to be performed entirely within 113 | the Netherlands between Dutch residents. This License shall 114 | not be governed by the United Nations Convention on 115 | Contracts for the International Sale of Goods, the 116 | application of which is expressly excluded. 117 | 118 | 16. If for any reason a court of competent jurisdiction 119 | finds any provision, or portion thereof, to be 120 | unenforceable, the remainder of this License shall continue 121 | in full force and effect. 122 | -------------------------------------------------------------------------------- /Build/Automate/VC2/bfi.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/bfi.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/mkisofs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/mkisofs.exe -------------------------------------------------------------------------------- /Build/Automate/VC2/vCenterDB.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/vCenterDB.reg -------------------------------------------------------------------------------- /Build/Automate/VC2/vSphereClient.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/VC2/vSphereClient.reg -------------------------------------------------------------------------------- /Build/Automate/Version.txt: -------------------------------------------------------------------------------- 1 | ** 2 | * Autolab V3.0 3 | ** 4 | * Released June 2018 5 | ** 6 | * New versions and updates at www.labguides.com 7 | ** 8 | -------------------------------------------------------------------------------- /Build/Automate/ViewSetup.ps1: -------------------------------------------------------------------------------- 1 | # 2 | Write-Host "Loading View Powershell Plugin" 3 | Add-PSSnapin VMware.View.Broker 4 | Write-Host "Add VC as vCenter and View Composer server" 5 | $VC = add-viewvc -serverName "vc.lab.local" -user "lab\VI-Admin" -Password "VMware1!" -useSSL $True -port 443 -useComposer $True -useComposerSSL $True -composerPort 18443 6 | # $CS1 = Get-ConnectionBroker -broker_ID "CS1" 7 | # Want to set View Composer credentials & configure EventsDB connection 8 | # Update-ConnectionBroker $CS1 9 | Write-Host "Done with View setup" 10 | -------------------------------------------------------------------------------- /Build/Automate/_Common/Auto2K3.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Install dotnet 3.5 4 | if exist \\192.168.199.7\build\VIM_60\redist\dotnet\dotnetfx35.exe ( 5 | start /wait \\192.168.199.7\build\VIM_60\redist\dotnet\dotnetfx35.exe /qb /norestart 6 | ) 7 | if exist \\192.168.199.7\build\VIM_50\redist\dotnet\dotnetfx35.exe ( 8 | start /wait \\192.168.199.7\build\VIM_50\redist\dotnet\dotnetfx35.exe /qb /norestart 9 | ) 10 | if exist \\192.168.199.7\build\VIM_51\redist\dotnet\dotnetfx35.exe ( 11 | start /wait \\192.168.199.7\build\VIM_51\redist\dotnet\dotnetfx35.exe /qb /norestart 12 | ) 13 | echo ** 14 | echo * Install Load Storm by Andrew Mitchel 15 | start /wait msiexec /i "\\192.168.199.7\build\Automate\VC\Floppy\Load Storm.msi" /q 16 | echo ** 17 | echo * Disable screen lock 18 | regedit /s \\192.168.199.7\build\Automate\_Common\NoSCRNSave.reg 19 | echo ** 20 | echo * Install VMware Tools and reboot 21 | start /wait \\192.168.199.7\build\VMTools\Setup.exe /s /v "/qn" 22 | timeout 60 23 | -------------------------------------------------------------------------------- /Build/Automate/_Common/Auto2K3.sif: -------------------------------------------------------------------------------- 1 | ;SetupMgrTag 2 | [UserData] 3 | FullName="Lab" 4 | OrgName="Lab Local" 5 | ComputerName=Auto2K3 6 | ProductID=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx 7 | 8 | [GuiUnattended] 9 | TimeZone=35 10 | OEMSkipRegional=1 11 | OemSkipWelcome=1 12 | AdminPassword="VMware1!" 13 | EncryptedAdminPassword=NO 14 | AutoLogon=Yes 15 | AutoLogonCount=99 16 | 17 | [Unattended] 18 | Repartition=yes 19 | DriverSigningPolicy=Ignore 20 | UnattendMode=FullUnattended 21 | FileSystem=ConvertNTFS 22 | ExtendOemPartition=1 23 | OemSkipEula=Yes 24 | OemPreinstall=Yes 25 | UnattendSwitch=Yes 26 | TargetPath=\WINDOWS 27 | 28 | [GUIRunOnce] 29 | Build="D:\Auto2K3.cmd" 30 | 31 | [Data] 32 | AutoPartition=1 33 | MsDosInitiated="0" 34 | UnattendedInstall="Yes" 35 | AutomaticUpdates="no" 36 | 37 | [Display] 38 | BitsPerPel=32 39 | Xresolution=800 40 | YResolution=600 41 | Vrefresh=75 42 | 43 | [LicenseFilePrintData] 44 | AutoMode=PerSeat 45 | 46 | [Networking] 47 | InstallDefaultComponents=Yes 48 | 49 | [Branding] 50 | BrandIEUsingUnattended=Yes 51 | 52 | [Proxy] 53 | Proxy_Enable=0 54 | Use_Same_Proxy=0 55 | 56 | [Identification] 57 | JoinWorkgroup=Lab 58 | 59 | -------------------------------------------------------------------------------- /Build/Automate/_Common/AutoXP.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Disable screen lock 4 | regedit /s \\192.168.199.7\build\Automate\_Common\NoSCRNSave.reg 5 | echo ** 6 | echo * Install VMware Tools and reboot 7 | start /wait \\192.168.199.7\build\VMTools\Setup.exe /s /v "/qn" 8 | timeout 60 9 | -------------------------------------------------------------------------------- /Build/Automate/_Common/AutoXP.sif: -------------------------------------------------------------------------------- 1 | ;SetupMgrTag 2 | [UserData] 3 | FullName="Lab" 4 | OrgName="Lab Local" 5 | ComputerName=AutoXP 6 | ProductID=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx 7 | 8 | [GuiUnattended] 9 | TimeZone=35 10 | OemSkipWelcome=1 11 | AdminPassword="VMware1!" 12 | EncryptedAdminPassword=NO 13 | AutoLogon=Yes 14 | AutoLogonCount=99 15 | 16 | [Unattended] 17 | Repartition=yes 18 | DriverSigningPolicy=ignore 19 | UnattendMode=FullUnattended 20 | FileSystem=ConvertNTFS 21 | ExtendOemPartition=1 22 | OemSkipEula=Yes 23 | OemPreinstall=no 24 | UnattendSwitch=Yes 25 | TargetPath=\WINDOWS 26 | DUDisable=no 27 | 28 | [GUIRunOnce] 29 | Build=D:\AutoXP.cmd 30 | 31 | [Data] 32 | AutoPartition=1 33 | MsDosInitiated="0" 34 | UnattendedInstall="Yes" 35 | AutomaticUpdates=no 36 | 37 | [Display] 38 | BitsPerPel=32 39 | Xresolution=800 40 | YResolution=600 41 | Vrefresh=75 42 | 43 | [Networking] 44 | InstallDefaultComponents=Yes 45 | 46 | [Branding] 47 | BrandIEUsingUnattended=Yes 48 | 49 | [Proxy] 50 | Proxy_Enable=0 51 | Use_Same_Proxy=0 52 | 53 | [Identification] 54 | JoinWorkgroup=Lab 55 | 56 | [MassStorageDrivers] 57 | "VMware SCSI Controller"=OEM 58 | "IDE CD-ROM (ATAPI 1.2)/PCI IDE Controller" = "RETAIL" 59 | 60 | [OEMBootFiles] 61 | txtsetup.oem 62 | vmscsi.cat 63 | vmscsi.inf 64 | vmscsi.sys -------------------------------------------------------------------------------- /Build/Automate/_Common/Autologon.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/Autologon.exe -------------------------------------------------------------------------------- /Build/Automate/_Common/CPUBusy.vbs: -------------------------------------------------------------------------------- 1 | Dim goal, before, x, y, i 2 | goal = 5000000 3 | Do While True 4 | before = Timer 5 | For i = 0 to goal 6 | x = 0.000001 7 | y = sin(x) 8 | y = y + 0.00001 9 | Next 10 | y = y + 0.01 11 | WScript.Echo "I did five million sines in " & Int(Timer - before + 0.5) & " seconds!" 12 | Loop 13 | -------------------------------------------------------------------------------- /Build/Automate/_Common/ExecuPol.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/ExecuPol.reg -------------------------------------------------------------------------------- /Build/Automate/_Common/ExplorerView.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/ExplorerView.reg -------------------------------------------------------------------------------- /Build/Automate/_Common/ExtPart.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/ExtPart.exe -------------------------------------------------------------------------------- /Build/Automate/_Common/Firefox Setup 59.0.3.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/Firefox Setup 59.0.3.exe -------------------------------------------------------------------------------- /Build/Automate/_Common/IExplorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/IExplorer.reg -------------------------------------------------------------------------------- /Build/Automate/_Common/Lab2K3.sif: -------------------------------------------------------------------------------- 1 | ;SetupMgrTag 2 | [UserData] 3 | FullName="Lab" 4 | OrgName="Lab Local" 5 | ComputerName=Lab2K3 6 | ProductID=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx 7 | 8 | [GuiUnattended] 9 | TimeZone=35 10 | OEMSkipRegional=1 11 | OemSkipWelcome=1 12 | AdminPassword="VMware1!" 13 | EncryptedAdminPassword=NO 14 | AutoLogon=Yes 15 | AutoLogonCount=99 16 | 17 | [Unattended] 18 | Repartition=yes 19 | DriverSigningPolicy=Ignore 20 | UnattendMode=FullUnattended 21 | FileSystem=ConvertNTFS 22 | ExtendOemPartition=1 23 | OemSkipEula=Yes 24 | OemPreinstall=Yes 25 | UnattendSwitch=Yes 26 | TargetPath=\WINDOWS 27 | 28 | [Data] 29 | AutoPartition=1 30 | MsDosInitiated="0" 31 | UnattendedInstall="Yes" 32 | AutomaticUpdates="no" 33 | 34 | [Display] 35 | BitsPerPel=32 36 | Xresolution=800 37 | YResolution=600 38 | Vrefresh=75 39 | 40 | [LicenseFilePrintData] 41 | AutoMode=PerSeat 42 | 43 | [Networking] 44 | InstallDefaultComponents=Yes 45 | 46 | [Branding] 47 | BrandIEUsingUnattended=Yes 48 | 49 | [Proxy] 50 | Proxy_Enable=0 51 | Use_Same_Proxy=0 52 | 53 | [Identification] 54 | JoinWorkgroup=Lab 55 | 56 | -------------------------------------------------------------------------------- /Build/Automate/_Common/Nested.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/Nested.reg -------------------------------------------------------------------------------- /Build/Automate/_Common/NoSCRNSave.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/NoSCRNSave.reg -------------------------------------------------------------------------------- /Build/Automate/_Common/WASP.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/WASP.dll -------------------------------------------------------------------------------- /Build/Automate/_Common/XPDrivers/disk.tag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/XPDrivers/disk.tag -------------------------------------------------------------------------------- /Build/Automate/_Common/XPDrivers/txtsetup.oem: -------------------------------------------------------------------------------- 1 | [Disks] 2 | disk = "VMware SCSI Controller Installation Disk", \disk.tag, \ 3 | 4 | [Defaults] 5 | scsi = VMSCSI 6 | 7 | [scsi] 8 | VMSCSI = "VMware SCSI Controller" 9 | 10 | [Files.scsi.VMSCSI] 11 | driver = vmdisk, vmscsi.sys, VMSCSI 12 | inf = vmdisk, vmscsi.inf 13 | catalog = vmdisk, vmscsi.cat 14 | 15 | [Config.VMSCSI] 16 | value = "", Tag, REG_DWORD, 5 17 | value = Parameters\PnpInterface, 5 ,REG_DWORD, 1 18 | value = Parameters\Device, NumberOfRequests, REG_DWORD, 128 19 | 20 | [HardwareIds.scsi.VMSCSI] 21 | id = "PCI\VEN_104B&DEV_1040", "VMscsi" 22 | -------------------------------------------------------------------------------- /Build/Automate/_Common/XPDrivers/vmscsi.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/XPDrivers/vmscsi.cat -------------------------------------------------------------------------------- /Build/Automate/_Common/XPDrivers/vmscsi.inf: -------------------------------------------------------------------------------- 1 | ;vmscsi.INF 2 | ;This file contains the information required to load the driver for the VMware SCSI Controller 3 | 4 | ; Copyright (c) 2001 - 2004, VMware, Inc. 5 | 6 | [version] 7 | Signature="$Windows NT$" 8 | Class=SCSIAdapter 9 | ClassGuid={4D36E97B-E325-11CE-BFC1-08002BE10318} 10 | Provider=%VMWARE% 11 | DriverVer=08/17/2005,1.2.0.4 12 | CatalogFile=vmscsi.cat 13 | 14 | 15 | 16 | [SourceDisksNames.x86] 17 | 1 = %DSKID1%,,,"" 18 | 19 | [SourceDisksFiles] 20 | ; Files for disk VMware SCSI Controller Installation Disk #1 (SCSIAdapter) 21 | vmscsi.sys = 1,, 22 | 23 | [DestinationDirs] 24 | DefaultDestDir=12 25 | 26 | 27 | 28 | [Manufacturer] 29 | %VMWARE%=VMware.Mfg 30 | 31 | 32 | 33 | [VMware.Mfg] 34 | %DEVICE%=DDInstall,PCI\VEN_104B&DEV_1040 35 | 36 | 37 | 38 | [DDInstall] 39 | CopyFiles=@vmscsi.sys 40 | 41 | 42 | 43 | [DDInstall.Services] 44 | AddService=vmscsi,0x00000002,Service_Install,EventLog_Install 45 | 46 | 47 | 48 | [Service_Install] 49 | DisplayName=vmscsi 50 | ServiceType=0x01 ;KERNEL Driver 51 | StartType=0 ;Boot Time 52 | ErrorControl=1 ;Display Errors 53 | ServiceBinary=%12%\vmscsi.sys 54 | LoadOrderGroup=SCSI Miniport 55 | 56 | AddReg=pnpsafe_pci_addreg 57 | 58 | AddReg=os_hba_queue_limit_addreg 59 | 60 | 61 | [os_hba_queue_limit_addreg] 62 | HKR, "Parameters\Device", "NumberofRequests", %REG_DWORD%, 128 63 | 64 | 65 | 66 | [pnpsafe_pci_addreg] 67 | HKR, "Parameters\PnpInterface", "5", 0x00010001, 0x00000001 68 | 69 | 70 | 71 | [EventLog_Install] 72 | AddReg = EventLog_AddReg 73 | 74 | [EventLog_AddReg] 75 | HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll" 76 | HKR,,TypesSupported,%REG_DWORD%,7 77 | 78 | 79 | 80 | [strings] 81 | VMWARE="VMware, Inc." 82 | VMSCSI="VMscsi" 83 | DEVICE="VMware SCSI Controller" 84 | DSKID1="VMware SCSI Controller Installation Disk #1 (SCSIAdapter)" 85 | REG_EXPAND_SZ=0x00020000 86 | REG_DWORD=0x00010001 87 | -------------------------------------------------------------------------------- /Build/Automate/_Common/XPDrivers/vmscsi.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/XPDrivers/vmscsi.sys -------------------------------------------------------------------------------- /Build/Automate/_Common/iometer.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/iometer.exe -------------------------------------------------------------------------------- /Build/Automate/_Common/profile.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "Loading PowerCLI, this may take a little while." -foregroundcolor "cyan" 2 | if (((Get-PSSnapin -Name VMware.VimAutomation.Core -ErrorAction SilentlyContinue) -eq $null) -and ((Get-PSSnapin -Registered).name -contains "ware")) { 3 | Add-PSSnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue 4 | } else { 5 | $moduleList = @( "VMware.VimAutomation.Core", "VMware.VimAutomation.Vds", "VMware.VimAutomation.Cis.Core", "VMware.VimAutomation.Storage", "VMware.VimAutomation.HorizonView","VMware.VimAutomation.HA", "VMware.VimAutomation.vROps", "VMware.VumAutomation", "VMware.DeployAutomation", "VMware.ImageBuilder", "VMware.VimAutomation.License") 6 | $loaded = Get-Module -Name $moduleList -ErrorAction Ignore | % {$_.Name} 7 | $registered = Get-Module -Name $moduleList -ListAvailable -ErrorAction Ignore | % {$_.Name} 8 | $notLoaded = $registered | ? {$loaded -notcontains $_} 9 | foreach ($module in $registered) { 10 | if ($loaded -notcontains $module) { 11 | Import-Module $module 12 | } 13 | } 14 | } 15 | $PCLIVer = Get-PowerCLIVersion 16 | if ((($PCLIVer.Major * 10 ) + $PCLIVer.Minor) -ge 51) { 17 | $null = Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -confirm:$false -Scope "Session" 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Build/Automate/_Common/wget.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Build/Automate/_Common/wget.exe -------------------------------------------------------------------------------- /Build/Automate/automate.ini: -------------------------------------------------------------------------------- 1 | [Automation] 2 | TZ=New Zealand Standard Time 3 | 4 | VCInstall=60 5 | VCInstallOptions=4,5,51,55,60,65,67,None,Base 6 | AutoAddHosts=false 7 | DeployVUM=true 8 | Adminpwd=VMware1! 9 | 10 | BuildDatastores=True 11 | BuildVM=true 12 | ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 13 | 14 | ViewInstall=None 15 | ViewInstallOptions=50,51,52,53,60,70,75,None 16 | BuildViewVM=true 17 | ViewVMProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 18 | 19 | KMSIP=0.0.0.0 20 | 21 | emailto=none 22 | SmtpServer=none -------------------------------------------------------------------------------- /Build/ChangeLog.txt: -------------------------------------------------------------------------------- 1 | Version 3.0 2 | - Support for vSphere 6.5 & 6.7 3 | - Support for Windows Server 2016 4 | - Removed support for Windows Server 2008 5 | - Added Email notification for VC & DC build. Specify destination address & SMTP server in autolmate.ini 6 | - Changed router to pfSense 7 | - Updated NAS to FreeNAS 11.1 8 | - Support for View 7.5 9 | - Nested 2008, 2016, Windows 7, Windows 8, & Windows 10 VMs 10 | 11 | Version 2.6 12 | - Support for vSphere 6.0 13 | - Nested 2012 Server VM 14 | - Larger NAS to accommodate larger nested VMs 15 | 16 | Version 2.0 17 | - Support for and default to Windows Server 2012 R2 18 | - Removed VLAN tagging, enables simpler deployment 19 | - Automated Certificate Authority setup 20 | - Support for user selected administrator passwords 21 | - Support for View 6.0 22 | 23 | Version 1.5 24 | - Added vSphere 5.5 25 | - Added View 5.2 & 5.3 26 | - Added Third ESXi and support for vSAN 27 | - Ground work for SRM support 28 | 29 | Version 1.1a 30 | - Added vCloud 5.1 31 | - Removed requirement for vSphere 5.0 for successful build 32 | - Multiple minor bug fixes 33 | - Moved windows builds build into Powershell 34 | 35 | Version 1.1 36 | - Added vSphere 5.1 build 37 | - Changed PXE boot menu structure 38 | - Added upgrade script 39 | - Chamged nested build to be simpler, added TTYLinux VM 40 | - NFS datastores 41 | - Removed requirement for specific Win2K8 ISO version 42 | - Build script creates nested OS install iso rather than using floppies, XP build includes VMware SCSI driver 43 | 44 | Version 1.0 45 | - Veeam, View & SRM Databases on DC 46 | - Firewall off in all network profuiles on VC and DC 47 | - Added View servers, CS1, CS2 & SS 48 | - Added Veeam Servers VBR & V1 49 | - Added vCloud Director VM & Damian's automation 50 | - Powershell menu script for VC server 51 | - Shutdown lab script to enumerate windows servers to shutdown 52 | - Make Validate script to auto elevate 53 | - Added PowerShell script to add built ESXi servers to rebuilt vCenter 54 | 55 | Version 0.8 31 May 2012 56 | - Win2K8R2 SP1 build support 57 | - deploy.cab extracted from WinInstall.ISO and used as source for sysprep files on vCenter 58 | - Different VC and DC boot floppies for Windows 2008 R2 RTM and SP1 59 | - Identify ESXi 5.0 vs ESXi5U1 and setup PXE differently 60 | - Shortcut to buildlog.txt on desktops for DC and VC 61 | - Add more checks to Validate script, global Pass Fail & launch build log on fail 62 | - Version specific PXE files in version folder 63 | - Desktop shortcut for validate script 64 | - Change Unattend folder to Automate folder & cleanup 65 | - AddHosts to register all found VMs 66 | - Use the SQLExpress installer from vCenter to install SQL Client on VC 67 | - Build.txt in VC & DC initial buld, change to buildlog.txt 68 | - Corrected router IP address in DHCP config 69 | - Warning message & confirmation in shutdown script 70 | - Publish hosts & VMA via SSH through router 71 | - Enable SSH on NAS & publish through router 72 | - Validate script to warn not error if 4.1 files missing 73 | - AddHosts to test for "run as administrator" & exit 74 | - VC Build accommodate VC 5.0 RTM SQLclient location 75 | - Copy of Shell VMs in NAS VM to allow distribution as single VM .ova for standalone ESXi compatibility. 76 | - ini file for automation level in automate folder 77 | - Insert Product key into WinInstall.flp 78 | - Timezone from automate file, apply to DC & VC 79 | - Fixed Boot order on Host2 VM 80 | - Host1 v4.1 build, first VM build broken 81 | - validate, cleanly cope with VUM service not installed 82 | 83 | Version 0.5 3 May 2012 84 | - First version, everything had changed. -------------------------------------------------------------------------------- /Build/gparted/ReadMe.txt: -------------------------------------------------------------------------------- 1 | To have gParted addedto PXE menu place the following files here before the DC build 2 | 3 | filesystem.squashfs 4 | initrd.img 5 | vmlinuz 6 | 7 | These files are in the Live folder inside the gParted ISO -------------------------------------------------------------------------------- /Doc/AutoLab 1.1a vSphere Deployment Guide.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/AutoLab 1.1a vSphere Deployment Guide.doc -------------------------------------------------------------------------------- /Doc/AutoLab 1.5 vSphere Deployment Guide.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/AutoLab 1.5 vSphere Deployment Guide.doc -------------------------------------------------------------------------------- /Doc/AutoLab 2.0 vSphere Deployment Guide .doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/AutoLab 2.0 vSphere Deployment Guide .doc -------------------------------------------------------------------------------- /Doc/AutoLab 2.6 vSphere Deployment Guide .docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/AutoLab 2.6 vSphere Deployment Guide .docx -------------------------------------------------------------------------------- /Doc/AutoLab_3.0_vSphere_Deployment_Guide.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/AutoLab_3.0_vSphere_Deployment_Guide.docx -------------------------------------------------------------------------------- /Doc/AutoLab_3.0_vSphere_Deployment_Guide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/AutoLab_3.0_vSphere_Deployment_Guide.pdf -------------------------------------------------------------------------------- /Doc/vSphere 5 AutoLab Deployment Guide.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/Doc/vSphere 5 AutoLab Deployment Guide.docx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vSphereAutoLab 2 | Nested vSphere lab that builds itself 3 | 4 | Home is at http://www.labguides.com/autolab 5 | -------------------------------------------------------------------------------- /SRC/CS1/CS1-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/CS1/CS1-Config.iso -------------------------------------------------------------------------------- /SRC/CS1/build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 3 | ver | find "6.1" > nul 4 | if %ERRORLEVEL% == 0 goto ver_2K8 5 | ver | find "6.2" > nul 6 | if %ERRORLEVEL% == 0 goto ver_2K12 7 | ver | find "6.3" > nul 8 | if %ERRORLEVEL% == 0 goto ver_2K12 9 | ver | find "10.0" > nul 10 | if %ERRORLEVEL% == 0 goto ver_2K16 11 | goto RunBuild 12 | :ver_2K8 13 | goto RunBuild 14 | :ver_2K12 15 | :ver_2K16 16 | netsh interface ip set address name="Ethernet" static 192.168.199.33 255.255.255.0 192.168.199.2 1 17 | netsh interface ip set address name="Ethernet0" static 192.168.199.33 255.255.255.0 192.168.199.2 1 18 | ping 192.168.199.2 19 | netsh interface ip set dnsservers name="Ethernet" static address=192.168.199.4 primary 20 | netsh interface ip set dnsservers name="Ethernet0" static address=192.168.199.4 primary 21 | Dism /online /enable-feature /featurename:NetFx3ServerFeatures 22 | Dism /online /enable-feature /featurename:NetFx3 /source:D:\Sources\sxs 23 | copy \\192.168.199.7\Build\Automate\DC\ocsetup.exe c:\windows\system32\ 24 | 25 | goto RunBuild 26 | :RunBuild 27 | copy \\192.168.199.7\Build\automate\%computername%\Build.cmd c:\ 28 | c:\build.cmd -------------------------------------------------------------------------------- /SRC/CS2/CS2-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/CS2/CS2-Config.iso -------------------------------------------------------------------------------- /SRC/CS2/build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 3 | ver | find "6.1" > nul 4 | if %ERRORLEVEL% == 0 goto ver_2K8 5 | ver | find "6.2" > nul 6 | if %ERRORLEVEL% == 0 goto ver_2K12 7 | ver | find "6.3" > nul 8 | if %ERRORLEVEL% == 0 goto ver_2K12 9 | ver | find "10.0" > nul 10 | if %ERRORLEVEL% == 0 goto ver_2K16 11 | goto RunBuild 12 | :ver_2K8 13 | goto RunBuild 14 | :ver_2K12 15 | :ver_2K16 16 | netsh interface ip set address name="Ethernet" static 192.168.199.34 255.255.255.0 192.168.199.2 1 17 | netsh interface ip set address name="Ethernet0" static 192.168.199.34 255.255.255.0 192.168.199.2 1 18 | ping 192.168.199.2 19 | netsh interface ip set dnsservers name="Ethernet" static address=192.168.199.4 primary 20 | netsh interface ip set dnsservers name="Ethernet0" static address=192.168.199.4 primary 21 | Dism /online /enable-feature /featurename:NetFx3ServerFeatures 22 | Dism /online /enable-feature /featurename:NetFx3 /source:D:\Sources\sxs 23 | copy \\192.168.199.7\Build\Automate\DC\ocsetup.exe c:\windows\system32\ 24 | goto RunBuild 25 | :RunBuild 26 | copy \\192.168.199.7\Build\automate\%computername%\Build.cmd c:\ 27 | c:\build.cmd -------------------------------------------------------------------------------- /SRC/DC/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | ver | find "6.1" > nul 3 | if %ERRORLEVEL% == 0 goto ver_2K8 4 | ver | find "6.2" > nul 5 | if %ERRORLEVEL% == 0 goto ver_2K12 6 | ver | find "6.3" > nul 7 | if %ERRORLEVEL% == 0 goto ver_2K12 8 | ver | find "10." > nul 9 | if %ERRORLEVEL% == 0 goto ver_2K16 10 | Exit 11 | :ver_2K8 12 | echo ** 13 | echo * Building on Windows 2008 core 14 | echo * Building on Windows 2008 core >> c:\buildlog.txt 15 | DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore >> c:\buildlog.txt 16 | DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore >> c:\buildlog.txt 17 | DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64 >> c:\buildlog.txt 18 | DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64 >> c:\buildlog.txt 19 | DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell >> c:\buildlog.txt 20 | DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64 >> c:\buildlog.txt 21 | echo * Set IP address 22 | echo * Set IP address >> c:\buildlog.txt 23 | netsh interface ip set address "Ethernet" static 192.168.199.4 255.255.255.0 192.168.199.2 1 24 | netsh interface ip set address "Ethernet0" static 192.168.199.4 255.255.255.0 192.168.199.2 1 25 | ping 192.168.199.2 26 | netsh interface ip set dnsservers "Ethernet" static 192.168.199.4 primary 27 | netsh interface ip set dnsservers "Ethernet0" static 192.168.199.4 primary 28 | ping 192.168.199.7 >> c:\buildlog.txt 29 | echo * Setup recall of build script 30 | echo * Setup recall of build script >> c:\buildlog.txt 31 | copy \\192.168.199.7\Build\Automate\DC\Phase2.cmd c:\ >> c:\buildlog.txt 32 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 33 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Phase2.cmd" /f >> c:\buildlog.txt 34 | echo * Promote to DC 35 | echo * Promote to DC >> c:\buildlog.txt 36 | copy \\192.168.199.7\Build\Automate\DC\dcpromo.txt c:\dcpromo.txt >> c:\buildlog.txt 37 | dcpromo /answer:c:\dcpromo.txt >> c:\buildlog.txt 38 | exit 39 | :ver_2K12 40 | echo ** 41 | echo * Building on Windows 2012 R2 42 | echo * Building on Windows 2012 R2 >> c:\buildlog.txt 43 | goto startBuild 44 | :ver_2K16 45 | echo ** 46 | echo * Building on Windows 2016 47 | echo * Building on Windows 2016 >> c:\buildlog.txt 48 | goto startBuild 49 | :startBuild 50 | echo * Set IP address 51 | echo * Set IP address >> c:\buildlog.txt 52 | netsh interface ip set address "Ethernet" static 192.168.199.4 255.255.255.0 192.168.199.2 1 53 | netsh interface ip set address "Ethernet0" static 192.168.199.4 255.255.255.0 192.168.199.2 1 54 | ping 192.168.199.2 55 | netsh interface ip set dnsservers "Ethernet" static 192.168.199.4 primary 56 | netsh interface ip set dnsservers "Ethernet0" static 192.168.199.4 primary 57 | ping 192.168.199.7 >> c:\buildlog.txt 58 | echo * Setup recall of build script 59 | echo * Setup recall of build script >> c:\buildlog.txt 60 | copy \\192.168.199.7\Build\Automate\DC\Phase2.cmd c:\ >> c:\buildlog.txt 61 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 62 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Phase2.cmd" /f >> c:\buildlog.txt 63 | #echo * Promote to DC 64 | #echo * Promote to DC >> c:\buildlog.txt 65 | #copy \\192.168.199.7\Build\Automate\DC\dcpromo.ps1 c:\ 66 | #pause 67 | #powershell c:\dcpromo.ps1 68 | #pause Installing AD, will reboot after 69 | Exit -------------------------------------------------------------------------------- /SRC/DC/DC-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/DC/DC-Config.iso -------------------------------------------------------------------------------- /SRC/DC2/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | ver | find "6.1" > nul 3 | if %ERRORLEVEL% == 0 goto ver_2K8 4 | ver | find "6.2" > nul 5 | if %ERRORLEVEL% == 0 goto ver_2K12 6 | ver | find "6.3" > nul 7 | if %ERRORLEVEL% == 0 goto ver_2K12 8 | Exit 9 | :ver_2K8 10 | echo ** 11 | echo * Building on Windows 2008 12 | echo * Building on Windows 2008 >> c:\buildlog.txt 13 | echo * Setup recall of build script 14 | echo * Setup recall of build script >> c:\buildlog.txt 15 | copy \\192.168.199.7\Build\Automate\DC\Phase2.cmd c:\ >> c:\buildlog.txt 16 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 17 | echo ** 18 | echo * Install DHCP 19 | echo * Install DHCP >> c:\buildlog.txt 20 | start /w ocsetup DHCPServer 21 | echo * Enable DHCP 22 | echo * Enable DHCP >> c:\buildlog.txt 23 | sc config dhcpserver start= auto 24 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Phase2.cmd" /f >> c:\buildlog.txt 25 | echo ** 26 | echo * Install Active Directory and reboot 27 | copy \\192.168.199.7\Build\Automate\DC\dcpromo.txt c:\ >> c:\buildlog.txt 28 | dcpromo /answer:c:\dcpromo.txt >> c:\buildlog.txt 29 | Exit 30 | :ver_2K12 31 | echo ** 32 | echo * Building on Windows 2012 33 | echo * Building on Windows 2012 >> c:\buildlog.txt 34 | echo * Set IP address 35 | echo * Set IP address >> c:\buildlog.txt 36 | netsh interface ip set address name="Ethernet" static 192.168.201.4 255.255.255.0 192.168.201.2 1 37 | netsh interface ip set dnsservsers name="Ethernet" address="192.168.199.4" primary 38 | echo ** 39 | echo * Install DHCP 40 | echo * Install DHCP >> c:\buildlog.txt 41 | Dism /online /enable-feature /featurename:DHCPServer 42 | Dism /online /enable-feature /featurename:DHCPServer-Tools 43 | Dism /online /enable-feature /featurename:DNS-Server-Full-Role 44 | Dism /online /enable-feature /featurename:DNS-Server-Tools 45 | Dism /online /enable-feature /featurename:DirectoryServices-DomainController 46 | Dism /online /enable-feature /featurename:DirectoryServices-AdministrativeCenter 47 | Dism /online /enable-feature /featurename:ActiveDirectory-PowerShell 48 | sc config dhcpserver start= auto 49 | echo * Setup recall of build script 50 | copy \\192.168.199.7\Build\Automate\DC\Phase2.cmd c:\ >> c:\buildlog.txt 51 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 52 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Build /t REG_SZ /d "cmd /c c:\Phase2.cmd" /f >> c:\buildlog.txt 53 | copy \\192.168.199.7\Build\Automate\DC\dcpromo.ps1 c:\ 54 | powershell c:\dcpromo.ps1 55 | Exit -------------------------------------------------------------------------------- /SRC/DC2/DC2.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/DC2/DC2.flp -------------------------------------------------------------------------------- /SRC/NAS/NASBuild.md: -------------------------------------------------------------------------------- 1 | # NAS VM Build for AutoLab # 2 | 3 | Using FreeNAS V 9.10 4 | 5 | ## VM Hardware Config ## 6 | 1 vCPU 7 | 8 | 512MB RAM 9 | 10 | Boot Disk 8GB IDE 11 | 12 | NFS Disk 80GB SCSI 13 | 14 | iSCSI Disk 200GB SCSI 15 | 16 | 1 NIC on VMNet3 17 | 18 | ## Disk Config ## 19 | NFS disk mounts as /mnt/LABVOL 20 | 21 | iSCSI disk mounts as /mnt/iSCSI 22 | ## Services ## 23 | Enabled Services 24 | 25 | - CIFS 26 | - iSCSI 27 | - NFS 28 | - SSH 29 | 30 | ## Network Config ## 31 | **Interface Name:** Management 32 | 33 | **IP Address:** 192.168.199.7 34 | 35 | **Netmask:** 255.255.255.0 36 | 37 | **Alias IP Address:** 172.17.199.7 38 | 39 | **Alias Netmask:** 255.255.255.0 40 | 41 | **Default Route:** 192.168.199.2 42 | 43 | **Name Server:** Leave Blank 44 | 45 | ## SSH Config ## 46 | 47 | - Allow root login with password 48 | 49 | Open SSH connection as root 50 | 51 | Create folders: 52 | 53 | - /mnt/LABVOL/NFS01 54 | - /mnt/LABVOL/NFS02 55 | - /mnt/LABVOL/NFS03 56 | - /mnt/LABVOL/NFS04 57 | - /mnt/LABVOL/Build 58 | 59 | Change permissions on Build to allow everyone RW 60 | 61 | ## NFS Config ## 62 | **/mnt/LABVOL** 63 | 64 | - All Dircetories Shared 65 | - No network restrictions 66 | 67 | **Sub Folders** 68 | 69 | - Build 70 | - NFS01 71 | - NFS02 72 | - NFS03 73 | - NFS04 74 | 75 | ## CIFS Config ## 76 | **/mnt/LABVOL/Build** 77 | 78 | - Exported 79 | - Browseable 80 | - Allow guest access 81 | 82 | ## iSCSI Config ## 83 | 84 | **File Extents** 85 | 86 | **Name:** iSCSI1 87 | 88 | - **Path:** /mnt/iSCSI/iSCSi1 89 | - **Size:** 60GB 90 | 91 | **Name:** iSCSI2 92 | 93 | - **Path:** /mnt/iSCSI/iSCSi2 94 | - **Size:** 30GB 95 | 96 | **Name:** iSCSI3 97 | 98 | - **Path:** /mnt/iSCSI/iSCSi3 99 | - **Size:** 30GB 100 | 101 | **Name:** iSCSI4 102 | 103 | - **Path:** /mnt/iSCSI/iSCSi4 104 | - **Size:** 30GB 105 | 106 | **Targets** 107 | 108 | - One Target per extent 109 | - Target Name matches Extent name 110 | 111 | **Portal** 112 | 113 | - **Name: ** IP Storage 114 | - **IP Address:** 172.17.199.7 115 | 116 | 117 | -------------------------------------------------------------------------------- /SRC/NAS/freenas-FreeNAS-11.1-U5 (8e2a858a1)-20180624160211.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/NAS/freenas-FreeNAS-11.1-U5 (8e2a858a1)-20180624160211.db -------------------------------------------------------------------------------- /SRC/Nested10/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Building on Windows 10 4 | echo * Building on Windows 10 >> c:\buildlog.txt 5 | cscript //B "%windir%\system32\slmgr.vbs" /ato 6 | \\192.168.199.7\build\VMTools\setup64.exe /s /v "/qn" 7 | pause 8 | Exit -------------------------------------------------------------------------------- /SRC/Nested10/Nested10.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/Nested10/Nested10.flp -------------------------------------------------------------------------------- /SRC/Nested10/autoUnattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | en-US 6 | en-US 7 | en-US 8 | en-US 9 | en-US 10 | 11 | 12 | 13 | 14 | 15 | 0 16 | 1 17 | 18 | 19 | 20 | /IMAGE/INDEX 21 | 1 22 | 23 | 24 | 25 | 26 | 27 | true 28 | Lab 29 | Lab.local 30 | 31 | 32 | 33 | 34 | 35 | true 36 | 1 37 | Primary 38 | 39 | 40 | 0 41 | true 42 | 43 | 44 | 45 | 46 | 47 | 48 | Template10 49 | 50 | 51 | false 52 | false 53 | false 54 | 55 | 56 | true 57 | 58 | 59 | false 60 | 61 | 62 | false 63 | false 64 | 65 | 66 | 67 | 68 | 69 | true 70 | 71 | 1 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | VgBNAHcAYQByAGUAMQAhAFAAYQBzAHMAdwBvAHIAZAA= 81 | false</PlainText> 82 | </Password> 83 | <Enabled>true</Enabled> 84 | <LogonCount>999</LogonCount> 85 | <Username>administrator</Username> 86 | </AutoLogon> 87 | <FirstLogonCommands> 88 | <SynchronousCommand wcm:action="add"> 89 | <CommandLine>a:\Build.cmd</CommandLine> 90 | <Description>Phase One Installer</Description> 91 | <Order>1</Order> 92 | <RequiresUserInput>true</RequiresUserInput> 93 | </SynchronousCommand> 94 | </FirstLogonCommands> 95 | <OOBE> 96 | <HideEULAPage>true</HideEULAPage> 97 | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 98 | <NetworkLocation>Work</NetworkLocation> 99 | <SkipMachineOOBE>true</SkipMachineOOBE> 100 | <SkipUserOOBE>true</SkipUserOOBE> 101 | <HideLocalAccountScreen>true</HideLocalAccountScreen> 102 | <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> 103 | <HideOnlineAccountScreens>true</HideOnlineAccountScreens> 104 | <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo> 105 | <ProtectYourPC>1</ProtectYourPC> 106 | </OOBE> 107 | <UserAccounts> 108 | <AdministratorPassword> 109 | <Value>VgBNAHcAYQByAGUAMQAhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> 110 | <PlainText>false</PlainText> 111 | </AdministratorPassword> 112 | </UserAccounts> 113 | </component> 114 | </settings> 115 | <cpi:offlineImage cpi:source="catalog:d:/lab/windows/win10/sources/install_windows 10 enterprise evaluation technical preview.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 116 | </unattend> 117 | -------------------------------------------------------------------------------- /SRC/Nested2008/Nested2008.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/Nested2008/Nested2008.flp -------------------------------------------------------------------------------- /SRC/Nested2012/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Building on Windows 2012 R2 4 | echo * Building on Windows 2012 R2 >> c:\buildlog.txt 5 | cscript //B "%windir%\system32\slmgr.vbs" /ato 6 | \\nas\build\VMTools\setup64.exe /s /v "/qn" 7 | pause 8 | Exit -------------------------------------------------------------------------------- /SRC/Nested2012/Nested2012.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/Nested2012/Nested2012.flp -------------------------------------------------------------------------------- /SRC/Nested2012/autoUnattend.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <unattend xmlns="urn:schemas-microsoft-com:unattend"> 3 | <settings pass="windowsPE"> 4 | <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 5 | <InputLocale>en-US</InputLocale> 6 | <SystemLocale>en-US</SystemLocale> 7 | <UILanguage>en-US</UILanguage> 8 | <UILanguageFallback>en-US</UILanguageFallback> 9 | <UserLocale>en-US</UserLocale> 10 | </component> 11 | <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 12 | <ImageInstall> 13 | <OSImage> 14 | <InstallTo> 15 | <DiskID>0</DiskID> 16 | <PartitionID>1</PartitionID> 17 | </InstallTo> 18 | <InstallFrom> 19 | <MetaData wcm:action="add"> 20 | <Key>/IMAGE/INDEX</Key> 21 | <Value>2</Value> 22 | </MetaData> 23 | </InstallFrom> 24 | </OSImage> 25 | </ImageInstall> 26 | <UserData> 27 | <AcceptEula>true</AcceptEula> 28 | <FullName>Lab</FullName> 29 | <Organization>Lab.local</Organization> 30 | </UserData> 31 | <DiskConfiguration> 32 | <Disk wcm:action="add"> 33 | <CreatePartitions> 34 | <CreatePartition wcm:action="add"> 35 | <Extend>true</Extend> 36 | <Order>1</Order> 37 | <Type>Primary</Type> 38 | </CreatePartition> 39 | </CreatePartitions> 40 | <DiskID>0</DiskID> 41 | <WillWipeDisk>true</WillWipeDisk> 42 | </Disk> 43 | </DiskConfiguration> 44 | </component> 45 | </settings> 46 | <settings pass="specialize"> 47 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 48 | <ComputerName>Template2012</ComputerName> 49 | </component> 50 | <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 51 | <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall> 52 | <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall> 53 | <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall> 54 | </component> 55 | <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 56 | <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon> 57 | </component> 58 | <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 59 | <fDenyTSConnections>false</fDenyTSConnections> 60 | </component> 61 | <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 62 | <IEHardenUser>false</IEHardenUser> 63 | <IEHardenAdmin>false</IEHardenAdmin> 64 | </component> 65 | <component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 66 | <Interfaces> 67 | <Interface wcm:action="add"> 68 | <Ipv4Settings> 69 | <DhcpEnabled>true</DhcpEnabled> 70 | </Ipv4Settings> 71 | <Identifier>1</Identifier> 72 | </Interface> 73 | </Interfaces> 74 | </component> 75 | </settings> 76 | <settings pass="oobeSystem"> 77 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 78 | <AutoLogon> 79 | <Password> 80 | <Value>VgBNAHcAYQByAGUAMQAhAFAAYQBzAHMAdwBvAHIAZAA=</Value> 81 | <PlainText>false</PlainText> 82 | </Password> 83 | <Enabled>true</Enabled> 84 | <LogonCount>999</LogonCount> 85 | <Username>administrator</Username> 86 | </AutoLogon> 87 | <FirstLogonCommands> 88 | <SynchronousCommand wcm:action="add"> 89 | <CommandLine>a:\Build.cmd</CommandLine> 90 | <Description>Phase One Installer</Description> 91 | <Order>1</Order> 92 | <RequiresUserInput>true</RequiresUserInput> 93 | </SynchronousCommand> 94 | </FirstLogonCommands> 95 | <OOBE> 96 | <HideEULAPage>true</HideEULAPage> 97 | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 98 | <NetworkLocation>Work</NetworkLocation> 99 | </OOBE> 100 | <UserAccounts> 101 | <AdministratorPassword> 102 | <Value>VgBNAHcAYQByAGUAMQAhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> 103 | <PlainText>false</PlainText> 104 | </AdministratorPassword> 105 | </UserAccounts> 106 | </component> 107 | </settings> 108 | <cpi:offlineImage cpi:source="wim:d:/lab/windows%202012r2/install.wim#Windows Server 2012 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 109 | </unattend> 110 | -------------------------------------------------------------------------------- /SRC/Nested2106/Nested2016.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/Nested2106/Nested2016.flp -------------------------------------------------------------------------------- /SRC/Nested7/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Building on Windows 7 4 | echo * Building on Windows 7 >> c:\buildlog.txt 5 | cscript //B "%windir%\system32\slmgr.vbs" /ato 6 | \\192.168.199.7\build\VMTools\setup64.exe /s /v "/qn" 7 | pause 8 | Exit -------------------------------------------------------------------------------- /SRC/Nested7/Nested7.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/Nested7/Nested7.flp -------------------------------------------------------------------------------- /SRC/Nested7/autoUnattend.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <unattend xmlns="urn:schemas-microsoft-com:unattend"> 3 | <settings pass="windowsPE"> 4 | <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 5 | <InputLocale>en-US</InputLocale> 6 | <SystemLocale>en-US</SystemLocale> 7 | <UILanguage>en-US</UILanguage> 8 | <UILanguageFallback>en-US</UILanguageFallback> 9 | <UserLocale>en-US</UserLocale> 10 | </component> 11 | <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 12 | <ImageInstall> 13 | <OSImage> 14 | <InstallTo> 15 | <DiskID>0</DiskID> 16 | <PartitionID>1</PartitionID> 17 | </InstallTo> 18 | <InstallFrom> 19 | <MetaData wcm:action="add"> 20 | <Key>/IMAGE/INDEX</Key> 21 | <Value>1</Value> 22 | </MetaData> 23 | </InstallFrom> 24 | </OSImage> 25 | </ImageInstall> 26 | <UserData> 27 | <AcceptEula>true</AcceptEula> 28 | <FullName>Lab</FullName> 29 | <Organization>Lab.local</Organization> 30 | </UserData> 31 | <DiskConfiguration> 32 | <Disk wcm:action="add"> 33 | <CreatePartitions> 34 | <CreatePartition wcm:action="add"> 35 | <Extend>true</Extend> 36 | <Order>1</Order> 37 | <Type>Primary</Type> 38 | </CreatePartition> 39 | </CreatePartitions> 40 | <DiskID>0</DiskID> 41 | <WillWipeDisk>true</WillWipeDisk> 42 | </Disk> 43 | </DiskConfiguration> 44 | </component> 45 | </settings> 46 | <settings pass="specialize"> 47 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 48 | <ComputerName>Template7</ComputerName> 49 | </component> 50 | <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 51 | <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall> 52 | <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall> 53 | <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall> 54 | </component> 55 | <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 56 | <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon> 57 | </component> 58 | <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 59 | <fDenyTSConnections>false</fDenyTSConnections> 60 | </component> 61 | <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 62 | <IEHardenUser>false</IEHardenUser> 63 | <IEHardenAdmin>false</IEHardenAdmin> 64 | </component> 65 | <component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 66 | <Interfaces> 67 | <Interface wcm:action="add"> 68 | <Ipv4Settings> 69 | <DhcpEnabled>true</DhcpEnabled> 70 | </Ipv4Settings> 71 | <Identifier>1</Identifier> 72 | </Interface> 73 | </Interfaces> 74 | </component> 75 | </settings> 76 | <settings pass="oobeSystem"> 77 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 78 | <AutoLogon> 79 | <Password> 80 | <Value>VgBNAHcAYQByAGUAMQAhAFAAYQBzAHMAdwBvAHIAZAA=</Value> 81 | <PlainText>false</PlainText> 82 | </Password> 83 | <Enabled>true</Enabled> 84 | <LogonCount>999</LogonCount> 85 | <Username>administrator</Username> 86 | </AutoLogon> 87 | <FirstLogonCommands> 88 | <SynchronousCommand wcm:action="add"> 89 | <CommandLine>a:\Build.cmd</CommandLine> 90 | <Description>Phase One Installer</Description> 91 | <Order>1</Order> 92 | <RequiresUserInput>true</RequiresUserInput> 93 | </SynchronousCommand> 94 | </FirstLogonCommands> 95 | <OOBE> 96 | <HideEULAPage>true</HideEULAPage> 97 | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 98 | <NetworkLocation>Work</NetworkLocation> 99 | <SkipMachineOOBE>true</SkipMachineOOBE> 100 | <SkipUserOOBE>true</SkipUserOOBE> 101 | </OOBE> 102 | <UserAccounts> 103 | <AdministratorPassword> 104 | <Value>VgBNAHcAYQByAGUAMQAhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> 105 | <PlainText>false</PlainText> 106 | </AdministratorPassword> 107 | </UserAccounts> 108 | </component> 109 | </settings> 110 | <cpi:offlineImage cpi:source="catalog:c:/_source/win7/sources/install_windows 7 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 111 | </unattend> 112 | -------------------------------------------------------------------------------- /SRC/Nested8/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo ** 3 | echo * Building on Windows 8 4 | echo * Building on Windows 8 >> c:\buildlog.txt 5 | cscript //B "%windir%\system32\slmgr.vbs" /ato 6 | \\192.168.199.7\build\VMTools\setup64.exe /s /v "/qn" 7 | pause 8 | Exit -------------------------------------------------------------------------------- /SRC/Nested8/Nested8.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/Nested8/Nested8.flp -------------------------------------------------------------------------------- /SRC/Nested8/autoUnattend.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <unattend xmlns="urn:schemas-microsoft-com:unattend"> 3 | <settings pass="windowsPE"> 4 | <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 5 | <InputLocale>en-US</InputLocale> 6 | <SystemLocale>en-US</SystemLocale> 7 | <UILanguage>en-US</UILanguage> 8 | <UILanguageFallback>en-US</UILanguageFallback> 9 | <UserLocale>en-US</UserLocale> 10 | </component> 11 | <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 12 | <ImageInstall> 13 | <OSImage> 14 | <InstallTo> 15 | <DiskID>0</DiskID> 16 | <PartitionID>1</PartitionID> 17 | </InstallTo> 18 | <InstallFrom> 19 | <MetaData wcm:action="add"> 20 | <Key>/IMAGE/INDEX</Key> 21 | <Value>1</Value> 22 | </MetaData> 23 | </InstallFrom> 24 | </OSImage> 25 | </ImageInstall> 26 | <UserData> 27 | <AcceptEula>true</AcceptEula> 28 | <FullName>Lab</FullName> 29 | <Organization>Lab.local</Organization> 30 | </UserData> 31 | <DiskConfiguration> 32 | <Disk wcm:action="add"> 33 | <CreatePartitions> 34 | <CreatePartition wcm:action="add"> 35 | <Extend>true</Extend> 36 | <Order>1</Order> 37 | <Type>Primary</Type> 38 | </CreatePartition> 39 | </CreatePartitions> 40 | <DiskID>0</DiskID> 41 | <WillWipeDisk>true</WillWipeDisk> 42 | </Disk> 43 | </DiskConfiguration> 44 | </component> 45 | </settings> 46 | <settings pass="specialize"> 47 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 48 | <ComputerName>Template8</ComputerName> 49 | </component> 50 | <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 51 | <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall> 52 | <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall> 53 | <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall> 54 | </component> 55 | <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 56 | <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon> 57 | </component> 58 | <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 59 | <fDenyTSConnections>false</fDenyTSConnections> 60 | </component> 61 | <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 62 | <IEHardenUser>false</IEHardenUser> 63 | <IEHardenAdmin>false</IEHardenAdmin> 64 | </component> 65 | <component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 66 | <Interfaces> 67 | <Interface wcm:action="add"> 68 | <Ipv4Settings> 69 | <DhcpEnabled>true</DhcpEnabled> 70 | </Ipv4Settings> 71 | <Identifier>1</Identifier> 72 | </Interface> 73 | </Interfaces> 74 | </component> 75 | </settings> 76 | <settings pass="oobeSystem"> 77 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 78 | <AutoLogon> 79 | <Password> 80 | <Value>VgBNAHcAYQByAGUAMQAhAFAAYQBzAHMAdwBvAHIAZAA=</Value> 81 | <PlainText>false</PlainText> 82 | </Password> 83 | <Enabled>true</Enabled> 84 | <LogonCount>999</LogonCount> 85 | <Username>administrator</Username> 86 | </AutoLogon> 87 | <FirstLogonCommands> 88 | <SynchronousCommand wcm:action="add"> 89 | <CommandLine>a:\Build.cmd</CommandLine> 90 | <Description>Phase One Installer</Description> 91 | <Order>1</Order> 92 | <RequiresUserInput>true</RequiresUserInput> 93 | </SynchronousCommand> 94 | </FirstLogonCommands> 95 | <OOBE> 96 | <HideEULAPage>true</HideEULAPage> 97 | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 98 | <NetworkLocation>Work</NetworkLocation> 99 | </OOBE> 100 | <UserAccounts> 101 | <AdministratorPassword> 102 | <Value>VgBNAHcAYQByAGUAMQAhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> 103 | <PlainText>false</PlainText> 104 | </AdministratorPassword> 105 | </UserAccounts> 106 | <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled> 107 | <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> 108 | <ShowWindowsLive>false</ShowWindowsLive> 109 | </component> 110 | </settings> 111 | <cpi:offlineImage cpi:source="catalog:d:/lab/windows/win8/sources/install_windows 8.1 pro.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 112 | </unattend> 113 | -------------------------------------------------------------------------------- /SRC/SS/SS-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/SS/SS-Config.iso -------------------------------------------------------------------------------- /SRC/SS/build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 3 | ver | find "6.1" > nul 4 | if %ERRORLEVEL% == 0 goto ver_2K8 5 | ver | find "6.2" > nul 6 | if %ERRORLEVEL% == 0 goto ver_2K12 7 | ver | find "6.3" > nul 8 | if %ERRORLEVEL% == 0 goto ver_2K12 9 | ver | find "10.0" > nul 10 | if %ERRORLEVEL% == 0 goto ver_2K16 11 | goto RunBuild 12 | :ver_2K8 13 | goto RunBuild 14 | :ver_2K12 15 | :ver_2K16 16 | netsh interface ip set address name="Ethernet" static 192.168.199.35 255.255.255.0 192.168.199.2 1 17 | netsh interface ip set address name="Ethernet0" static 192.168.199.35 255.255.255.0 192.168.199.2 1 18 | ping 192.168.199.2 19 | netsh interface ip set dnsservers name="Ethernet" static address=192.168.199.4 primary 20 | netsh interface ip set dnsservers name="Ethernet0" static address=192.168.199.4 primary 21 | Dism /online /enable-feature /featurename:NetFx3ServerFeatures 22 | Dism /online /enable-feature /featurename:NetFx3 /source:D:\Sources\sxs 23 | copy \\192.168.199.7\Build\Automate\DC\ocsetup.exe c:\windows\system32\ 24 | goto RunBuild 25 | :RunBuild 26 | copy \\192.168.199.7\Build\automate\%computername%\Build.cmd c:\ 27 | c:\build.cmd -------------------------------------------------------------------------------- /SRC/VC/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo * Starting build.cmd 3 | echo * Starting build.cmd >> c:\buildlog.txt 4 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 5 | ver | find "6.1" > nul 6 | if %ERRORLEVEL% == 0 goto ver_2K8 7 | ver | find "6.2" > nul 8 | if %ERRORLEVEL% == 0 goto ver_2K12 9 | ver | find "6.3" > nul 10 | if %ERRORLEVEL% == 0 goto ver_2K12 11 | ver | find "10.0" > nul 12 | if %ERRORLEVEL% == 0 goto ver_2K16 13 | goto RunBuild 14 | :ver_2K8 15 | echo ** 16 | echo * Building on Windows 2008 core 17 | echo * Building on Windows 2008 core >> c:\buildlog.txt 18 | DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore >> c:\buildlog.txt 19 | DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore >> c:\buildlog.txt 20 | DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64 >> c:\buildlog.txt 21 | DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64 >> c:\buildlog.txt 22 | DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell >> c:\buildlog.txt 23 | DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64 >> c:\buildlog.txt 24 | echo * Set IP address 25 | echo * Set IP address >> c:\buildlog.txt 26 | netsh interface ip set address "Ethernet" static 192.168.199.5 255.255.255.0 192.168.199.2 1 27 | netsh interface ip set address "Ethernet0" static 192.168.199.5 255.255.255.0 192.168.199.2 1 28 | ping 192.168.199.2 29 | netsh interface ip set dnsservers "Ethernet" static 192.168.199.4 primary 30 | netsh interface ip set dnsservers "Ethernet0" static 192.168.199.4 primary 31 | echo * Install .Net 3 32 | echo * Install .Net 3 >> c:\buildlog.txt 33 | Dism /online /enable-feature /featurename:NetFx3ServerFeatures /quiet 34 | Dism /online /enable-feature /featurename:NetFx3 /source:D:\Sources\sxs /quiet 35 | copy \\192.168.199.7\Build\Automate\DC\ocsetup.exe c:\windows\system32\ 36 | echo * Install Setup recall of build script 37 | echo * Install Setup recall of build script >> c:\buildlog.txt 38 | copy \\192.168.199.7\Build\automate\%computername%\Build.cmd c:\ 39 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v Build /t REG_SZ /d "cmd /c c:\Build.cmd" /f >> c:\buildlog.txt 40 | shutdown -r -t 1 41 | exit 42 | :ver_2K12 43 | echo ** 44 | echo * Building on Windows 2012 45 | echo * Building on Windows 2012 >> c:\buildlog.txt 46 | goto StartBuild 47 | :ver_2K16 48 | echo ** 49 | echo * Building on Windows 2012 50 | echo * Building on Windows 2012 >> c:\buildlog.txt 51 | goto StartBuild 52 | :StartBuild 53 | echo * Set IP address 54 | echo * Set IP address >> c:\buildlog.txt 55 | netsh interface ip set address "Ethernet" static 192.168.199.5 255.255.255.0 192.168.199.2 1 56 | netsh interface ip set address "Ethernet0" static 192.168.199.5 255.255.255.0 192.168.199.2 1 57 | ping 192.168.199.2 58 | netsh interface ip set dnsservers "Ethernet" static 192.168.199.4 primary 59 | netsh interface ip set dnsservers "Ethernet0" static 192.168.199.4 primary 60 | echo * Install .Net 3 61 | echo * Install .Net 3 >> c:\buildlog.txt 62 | Dism /online /enable-feature /featurename:NetFx3ServerFeatures /quiet 63 | Dism /online /enable-feature /featurename:NetFx3 /source:D:\Sources\sxs /quiet 64 | copy \\192.168.199.7\Build\Automate\DC\ocsetup.exe c:\windows\system32\ 65 | echo * Install Setup recall of build script 66 | echo * Install Setup recall of build script >> c:\buildlog.txt 67 | goto RunBuild 68 | :RunBuild 69 | copy \\192.168.199.7\Build\automate\%computername%\Build.cmd c:\ 70 | c:\build.cmd 71 | Exit -------------------------------------------------------------------------------- /SRC/VC/VC-Config.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/VC/VC-Config.iso -------------------------------------------------------------------------------- /SRC/VC2/Build.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | type \\192.168.199.7\Build\Automate\version.txt >> c:\buildlog.txt 3 | ver | find "6.1" > nul 4 | if %ERRORLEVEL% == 0 goto ver_2K8 5 | ver | find "6.2" > nul 6 | if %ERRORLEVEL% == 0 goto ver_2K12 7 | ver | find "6.3" > nul 8 | if %ERRORLEVEL% == 0 goto ver_2K12 9 | goto RunBuild 10 | :ver_2K8 11 | goto RunBuild 12 | :ver_2K12 13 | netsh interface ip set address name="Ethernet" static 192.168.201.5 255.255.255.0 192.168.201.2 1 14 | netsh interface ip set dnsservers name="Ethernet" static address=192.168.201.4 primary 15 | Dism /online /enable-feature /featurename:NetFx3ServerFeatures 16 | Dism /online /enable-feature /featurename:NetFx3 /source:D:\Sources\sxs 17 | copy \\192.168.199.7\Build\Automate\DC\ocsetup.exe c:\windows\system32\ 18 | goto RunBuild 19 | :RunBuild 20 | copy \\192.168.199.7\Build\automate\%computername%\Build.cmd c:\ 21 | c:\build.cmd 22 | 23 | -------------------------------------------------------------------------------- /SRC/VC2/VC2.flp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DemitasseNZ/vSphereAutoLab/8a55ddcf0d16b2111ebdadb003b898573b15340a/SRC/VC2/VC2.flp --------------------------------------------------------------------------------