Check deprecated PowerCLI CMDlets
I think most of you have a set of various PowerCLI Scripts that runs automatically day by day. Have you ever checked if your older scripts contain some deprecated commands? Here is a handy way to check …
I think most of you have a set of various PowerCLI Scripts that runs automatically day by day. Have you ever checked if your older scripts contain some deprecated commands? Here is a handy way to check …
A short wrapup to the latest Intel security leaks for VMware Administrators: CVE-2018-3639 aka Speculative Store Bypass (SSB), Variant 4 CVE-2018-3640 aka Rogue System Register Read (RSRE), Variant 3a. Once again we have to patch the whole stack: Update vCenter CPU Microcode (BIOS Update) VMware ESXi Hypervisor Patch Check if the new CPU flags are mapped to a new VM All VMs – Shutdown and start (reboot is not enough!) Update Guest OS Get some hints about EVC-Mode and how…
The last days we got two new All-Flash Storage Systems. These systems can present LUNs in a Metro-Cluster fashion. So I got the challenge to configure the Storage Plugin UltraPath from Huawei. In the manual from Huawei is explained how to configure the settings with esxcli on the ESXi-Host. That’s fine, but not enough š We want to configure this with PowerCli to easily manage more than one Host. #get esxcli $esxcli2 = Get-ESXCLI -VMHost (Get-VMhost MyHost-001) -V2 #show…
We design highly redundant Datacenters, Clusters, Storage Systems and even Networks, but in the end we still have some unplaned outages :/ This week we had a defect Memory DIMM that caused a PSOD on one ESXi Host. HA restarted the VMs fine, but we want to know quickly which VMs restarted. Check out a PowerCLI one liner to find the restarted VMs!
Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you š
Don’t put your credentials into the PowerCLI scripts! There is an option to store your credentials on the Host.
You have to look at the Modules in PowerCLI 6.5. When you wrote your Scripts with the PowerShell ISE you had to load the PSSnapins before. In 6.5 there are no longer PSSnapins! Now there are only Modules!
I was very happy to seeĀ Luc Dekens andĀ Alan Renouf @VMworldĀ SessionĀ #INF8092R. And I wasĀ even more happy to see PowerCLI is becoming availableĀ on other Platforms like OSX and Linux too. At the momentĀ it’s “only” a Fling, but this is quite sure only the beginning. Get the Fling PowerCLI CoreĀ atĀ https://labs.vmware.com/flings/powercli-core
In times like these, where daily security leaks areĀ published, it’s time to check some basics. Run the following PowerCLI Script to see ifĀ the SSH-Service is running and disable it! #List Hosts into Array $arr = @() $arr = (Get-VMHost * | Foreach {($_ | Get-VMHostService | Where { $_.Key -eq “TSM-SSH”})} | select VMHost,Label,Policy,Running | Sort VMHost) #Filter running SSH or Enabled $sshOn = $arr | Where-Object { ($_.Running -eq “True”) -or ($_.Policy -eq “on”) } #If SSH on ->…
Updated: The Sessions US are no more available on this way, but the EU š You want all the Sessions from VMworld 2016? First, you have to download this raw_download_urls File. In this file the URL’s are listed. Now, download the MP4-Files in PowerShell š $Filelocation = “c:\myFolder\raw_download_urls.txt” #Change the Location to your Path $SaveLocation = “c:\myFolder\” #Change the Location to your Path $List = Import-CSV $Filelocation -Header “ID”, “Link” -Delimiter “#” If (Get-Module BitsTransfer -ErrorAction SilentlyContinue) { $Bits=$true Write-Host “Using BITS transfer for faster…