This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .Synopsis | |
| Converts a PowerShell object to a Markdown table. | |
| .EXAMPLE | |
| $data | ConvertTo-Markdown | |
| .EXAMPLE | |
| ConvertTo-Markdown($data) | |
| #> | |
| Function ConvertTo-Markdown { | |
| [CmdletBinding()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Update-ExecutionPolicy Unrestricted | |
| Disable-UAC | |
| ######################### | |
| #### requires reboot #### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| content goes here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Write-BoxstarterMessage "Ensuring ExecutionPolicy to Unrestricted..." | |
| Update-ExecutionPolicy Unrestricted | |
| Write-BoxstarterMessage "Ensuring UAC is disabled..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Write-BoxstarterMessage "Ensuring Time Zone is set to Central Standard Time" | |
| & C:\Windows\system32\tzutil /s "Central Standard Time" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Write-BoxstarterMessage "Ensuring Computer name is correct..." | |
| $ServerName = "DC1" | |
| $HostName = $($env:computername).ToUpper() | |
| if ($HostName -ne $ServerName) { Rename-Computer -NewName $ServerName -restart } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Write-BoxstarterMessage "Ensuring ExecutionPolicy to Unrestricted..." | |
| Update-ExecutionPolicy Unrestricted | |
| Write-BoxstarterMessage "Ensuring UAC is disabled..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Write-BoxstarterMessage "Ensuring ExecutionPolicy to Unrestricted..." | |
| Update-ExecutionPolicy Unrestricted | |
| Write-BoxstarterMessage "Ensuring Internet Explorer ESC (IESC) is disabled..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Physical ESXi host or vCenter Server to deploy vSphere 6.5 lab | |
| $VIServer = "192.168.1.220" | |
| $VIUsername = "root" | |
| $VIPassword = "VMware1!" | |
| # Specifies whether deployment is to an ESXi host or vCenter Server | |
| # Use either ESXI or VCENTER | |
| $DeploymentTarget = "ESXI" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Physical ESXi host or vCenter Server to deploy vSphere 6.5 lab | |
| $VIServer = "192.168.1.220" | |
| $VIUsername = "root" | |
| $VIPassword = "VMware1!" | |
| # Specifies whether deployment is to an ESXi host or vCenter Server | |
| # Use either ESXI or VCENTER | |
| $DeploymentTarget = "ESXI" |