Skip to content

Instantly share code, notes, and snippets.

<#
.Synopsis
Converts a PowerShell object to a Markdown table.
.EXAMPLE
$data | ConvertTo-Markdown
.EXAMPLE
ConvertTo-Markdown($data)
#>
Function ConvertTo-Markdown {
[CmdletBinding()]
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 ####
@andrewbbrown
andrewbbrown / filename.txt
Created February 23, 2018 18:40
Test Description
content goes here
@andrewbbrown
andrewbbrown / Boxstarter-Win2k16-BaseDevSettings-Updates.ps1
Created April 16, 2018 00:01
Boxstarter-Win2k16-BaseDevSettings-Updates.ps1
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..."
@andrewbbrown
andrewbbrown / Boxstarter-Win-SetCentralTimeZone.ps1
Created April 16, 2018 00:06
Boxstarter-Win-SetCentralTimeZone.ps1
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"
}
@andrewbbrown
andrewbbrown / Boxstarter-Win-RenameComputer-DC1.ps1
Created April 16, 2018 00:22
Boxstarter-Win-RenameComputer-DC1.ps1
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 }
@andrewbbrown
andrewbbrown / Boxstarter-Win10-BaseDevSettings-Updates.ps1
Created April 16, 2018 00:27
Boxstarter-Win10-BaseDevSettings-Updates.ps1
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..."
@andrewbbrown
andrewbbrown / Boxstarter-Win2k16-AEP-JumpBox-Setup.ps1
Created May 3, 2018 14:51
Boxstarter-Win2016-AEP-JumpBox-Setup.ps1
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..."
@andrewbbrown
andrewbbrown / Deploy-vSphere-ESXi-VCSA-vSan-Lab.ps1
Created May 10, 2018 17:45
Deploy-vSphere-ESXi-VCSA-vSan-Lab.ps1
# 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"
@andrewbbrown
andrewbbrown / Deploy-vSphere-ESXi-VCSA-vSan-Lab2.ps1
Created May 10, 2018 17:46
Deploy-vSphere-ESXi-VCSA-vSan-Lab2.ps1
# 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"