On the first glace it should be relatively easy. One right-click on a template and migrate to different datastore. However there is no option to migrate template. Moving the template to a different folder will not change storage placement. I thought that maybe I can just drag and drop the template to the destination datastore.…
Read moreCategory: PowerShell
How to install PowerCLI module in PowerShell
In this short video I will show you how to install VMware PowerCli module into PowerShell. Please like and share to spread the knowledge in the community. If you want to chat with me please use Twitter: @AngrySysOps Visit my FB page: https://www.facebook.com/AngrySysOps Read my blog: https://angrysysops.com Subscribe to my channel : https://www.youtube.com/channel/UCRTcKGl0neismSRpDMK_M4A
Read moreHow to automate VM disk encryption with PowerCLI
A few days ago I wrote an article about disk encryption, you can read it clicking on this link. This is noce and easy method if we have one or two Virtual Machines to encrypt, but what to do if we have a 10, 100 or more of them? In the case of large amount…
Read moreHow to upgrade PowerCLI in PowerShell
I am preparing an article on how to automate virtual disks encryption in vSphere, when I come across an issue with PowerCLI, where I needed to upgrade version. In this short video I will walk you through the process of upgrading the PowerCli. Please like and share to spread the knowledge in the community. If…
Read morePowerCLI: Enable/Disable SSH and Lockdown Mode
Today I will show you quick and easy way to enable and disable SSH and Lockdown mode for all hosts in the cluster. Let’s start by connecting to vCenter: Next let’s grab list of hosts in the cluster and put it to variable Now we will disable SSH To enable SSH change Stop-VMHostService to Start-VMHostService…
Read morePowerShell workshop with Angry Admin – how to power off and power on all VMs at host in one line code
Today I will show you how to power off and power on all VMs at host in one line code. Please join me in this step-by-step video:
Read morePowerShell workshop with Angry Admin – Security guide for ESXi
Today I will show you how to apply VMware security recommendation to ESXi hosts using PowerShell. The script is smart way check the hosts compliance and if any is not complaint them setting are applied. Please join me in this step-by-step video: Remember to subscribe to my YouTube channel as I am running competition, where…
Read moreSet-VMHostSysLogServer – Configure syslog on VMware ESXi hosts
Connect to vCenter server: Set up variable for all hosts: Set up syslog: Check if settings have been applied: If you need explanation or you do have any questions related to this script, please do not hesitate to leave the comment. Visit my FB page: https://www.facebook.com/AngrySysOps Subscribe to my YouTube channel: https://www.youtube.com/channel/UCRTcKGl0neismSRpDMK_M4A
Read moreGet-VM – Retreving a list of VMs in your envirnoment
First thing to remember is to connect to the VCAS. Meet the GET-VM command! Syntax: If you want to retrieve VMs connected to specific Virtual Switch: If you want to retrieve VMs by ID: If you want to retrieve VMs by related object: Let’s start to list your VMs. This is general report: It will…
Read morePowerShell – Disable SLP on ESXi firewall – VMSA-2019-0022 (CVE-2019-5544), VMSA-2020-0023 (CVE-2020-3992) and VMSA-2021-0002 (CVE-2021-21974).
OpenSLP vulnerabilities have been disclosed that affect ESXi. The possibility of exploitation can be removed by performing the steps detailed in this article I will show you a quick little snippet to disable SLP on the ESXi firewall in response to: VMSA-2019-0022 (CVE-2019-5544), VMSA-2020-0023 (CVE-2020-3992) and VMSA-2021-0002 (CVE-2021-21974) NOTE: I have NOT notice any impact for VMware native…
Read more