Posts Tagged ‘PowerShell’

Rescan VMware vSphere Hypervisor (ESXi) using PowerCLI simplified

Tweet
While preparing some disaster recovery (DR) tests, I had to add and remove a couple of LUNS from several ESX hosts in different clusters. Doing so,  I had to rescan a lot of host bus adapters (HBA) several times. As I hate doing repetitive tasks in a graphical user interface (GUI), I always find myself [...]

PowerCLI Book Update

Tweet
As you might know, I was asked to co-author a PowerCLI book. Now that the book is nearly finished we posted an update on our book’s website at www.powerclibook.com.  If you’re interested in what will be covered in the upcoming book called “VMware vSphere PowerCLI Reference: Automating vSphere Administration” (Yes, I know it’s a mouth [...]

ESXi Tech Support Mode

Tweet
As a security recommendation you should always disable Tech Support Mode (TSM) on your ESXi servers, but sometimes it’s helpful if you’re able to connect to your ESXi server using Secure Shell (SSH). When you want to enable TSM, you have 3 options: 

Use the Direct Console User Interface (DCUI)
Use the vSphere Client
Script it (using PowerCLI [...]

ESXCLI the PowerCLI way

Tweet
When trying to perform a Round Robin (RR) test on my vSphere 4.1 environment, I needed to know the number of paths available to the luns of the test servers. I also needed to change the Path Selection Policy (PSP) for the luns to Round Robin (VMW_PSP_RR). I could have done this easily using the [...]

Why New-VIProperty Matters!

Tweet
As you may have noticed, PowerCLI 4.1 has some cool new features for accessing the underlying SDK objects from within the PowerCLI objects. Before PowerCLI 4.1 your only door to the SDK objects was using the Get-View cmdlet, but you can use the .ExtensionData property now. This makes it much easier and requires less code [...]

PowerCLI 4.1 namespace changes

Tweet
Output type changes in PowerCLI 4.1In PowerCLI 4.1 VMware changed the namespaces of the output types. According to VMware, this was done to improve the internal structure and enable other VMware teams to write cmdlets for the products they develop. You can read all about it in the vSphere PowerCLI blog article Output type changes [...]

Virtualization EcoShell 1.2.6 released

Tweet
Vizioncore just released the newest version of the vEcoShell (Virtualization EcoShell). As a user and developer of VMware PowerCLI scripts I almost use the vEcoShell on a daily basis. The amazing thing about the vEcoShell is that you don’t need any scripting experience to use PowerCLI scripts and examples found on the web. If you [...]

PowerCLI: Reset CPU and Memory Limits

Tweet
Today I noticed a memory limit on a vm. After investigating my environment using the vEcoShell and the Community PowerPack, I found more vms with memory limits set. It turned out that there was a template which had the limit set. I could easily reset all limits using the GUI, but I thought I rather do it [...]

The VESI – Getting it up and running

Tweet
On April 8th we had a very good DutchVMUG meeting, which was totally dedicated to using PowerCLI and The VESI (Virtualization EcoShell Initiative). Although setting up the environment is straightforward, I wanted to do a small write-up which leads you through the install process and includes all download links needed.
Installation Overview
The complete setup of the [...]

PowerShell Plus™ 3.1 out now

Tweet
Idera released PowerShell Plus™ 3.1
PowerShell Plus is a powerful interactive development environment for Windows PowerShell designed to help administrators and developers quickly learn and master the PowerShell scripting language while dramatically increasing the productivity of both novice and expert users.
PowerShell Plus™ v3.1 includes these new features:

Community Script Library Integration – Increases script developer productivity by [...]