The Interviews and Articles
So 2020 has been one of those years that you wish could just go away. However, 2020 for me has been one of those career defining moments. This year I had the privilege of being interviewed by VMware, Nutanix, and Toggle (an online CIO Tech magazine). VMware reached out to me in early January 2020 to use me and my role with the Osceola County Sheriff’s Office in a white paper to be featured on
Blog Migration to Google Domains and Google Cloud Platform
So for the past month I have been receiving emails from my hosting company that it is time to renew my domain and hosting subscriptions. I have been dreading the renewal because I don’t post or update my site as often as I should. I was also dreading the nearly $300 I was going to have to spend just to keep this site active. Again, this wasn’t something that I wanted to spend too much
SSH_Check-Enable-Supress_Warnings
SSH_Check-Enable-Supress_Warnings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | CLS #Connect to vCenter or individual ESXi Host Connect-VIServer {vCenter FQDN} -User {Username} -Password {Password} #Checks to see if SSH is running on ESXi Hosts and Sort by ESXi Host Get-VMHost | Get-VMHostService | Where { $_.Key -eq "TSM-SSH" } |select VMHost, Label, Running |sort VMHost # Enables SSH service on all Hosts and sets the service to automatic Get-VMHost | Foreach {Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )} Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq "TSM-SSH"} | Start-VMHostService Get-VMhost | Get-VmHostService | Where-Object {$_.key -eq "TSM-SSH"} | Set-VMHostService -policy "automatic" #Disables Yellow Warning and enables the SupressShellWarning Get-VMHost | Set-VmHostAdvancedConfiguration -Name UserVars.SuppressShellWarning -Value 1 #Disconnects vCenter Disconnect-VIServer -Force -Confirm:$false |
Set_NTP on ESXi Hosts
Set_NTP on ESXi Hosts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | CLS #Connect to vCenter or individual ESXi Host Connect-VIServer {vCenter FQDN} -User {Username} -Password {Password} #Get Hosts connected to vCenter and add the NTP server Get-VMHost | Add-VMHostNtpServer {FQDN of NTP server 1} Get-VMHost | Add-VMHostNtpServer {FQDN of NTP server 2} #Allow the ESXi Host to allow connectivity to NTP through the firewall Get-VMHost | Get-VMHostFirewallException | where {$_.Name -eq "NTP client"} | Set VMHostFirewallException -Enabled:$true #Start the NTPd service on the ESXi Host and set the service to automatic Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq "ntpd"} | Start-VMHostService Get-VMhost | Get-VmHostService | Where-Object {$_.key -eq "ntpd"} | Set-VMHostService -policy "automatic" #Disconnect from vCenter Disconnect-VIServer * -Force -Confirm:$false |
Change ESXi DNS Settings
Change ESXi DNS settings for all hosts attached to vCenter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | Connect-VIServer {vCenter FQDN} -User {Username} -Password {Password} $dnspri = read-host "Enter Primary DNS" $dnsalt = read-host "Enter Alternate DNS" # Prompt for Domain $domainname = read-host "Enter Domain Name" $esxHosts = get-VMHost foreach ($esx in $esxHosts) { Write-Host "Configuring DNS and Domain Name on $esx" -ForegroundColor Green Get-VMHostNetwork -VMHost $esx | Set-VMHostNetwork -DomainName $domainname -DNSAddress $dnspri , $dnsalt -Confirm:$false } Write-Host "Done!" -ForegroundColor Green disconnect-viserver * -force -Confirm:$false |