Scripting

Subscribe via RSS →
5 min read

Invoke-VMScript Failed - and how I was Baffled.

Luc Dekens wrote a great post a while back Will Invoke-VMScript work? about the prerequisites needed in order to get Invoke-VMscript to work. Stop for a minute and go and read his post. Glad to have …

  • Scripting
  • Powershell
  • VMware
  • Troubleshooting
3 min read

Creating an EagerZeroedThick disk with PowerCLI

Hey… - that is not possible – I hear you say – well in principle you are right. Up until today… By mistake of course – I found that there was a change made to the 5.1 release of PowerCLI – but …

  • Scripting
  • Powershell
  • VMware
  • 5.1
1 min read

Using Powershell to install PowerCLI

I am currently preparing a deployment package architecture for a full vSphere environment and one of the requests was to include PowerCLI in the installation script. I was surprised that I could not …

  • Scripting
  • Powershell
  • VMware
  • PowerCLI
4 min read

A Powershell Script to notify you on the vSphere 5.1 Release

vSphere 5.1 will most probably be released by the end of September 10th (that is 2 minutes from now in my timezone). Of course nothing is 100% certain but I will explain on what this assumption is …

  • vSphere
  • Scripting
  • Powershell
  • Miscellaneous
2 min read

Creating and Storing PowerShell Credentials

I actually do not understand why I have not put this in a blog post before, but it is about time - because I used it again today. Sometime you need to store a credential for a number of purposes, be …

  • Management
  • Scripting
  • Powershell
  • Administration
3 min read

Quick and Dirty PowerCLI to Repair a Disk Space Problem

I ran into a case of a datastore that ran out disk space (why that happened is a whole different story – don’t go there… really…) but because of a whole strange chain of event this …

  • Scripting
  • Powershell
  • VMware
  • Troubleshooting
2 min read

Open-SDK–Opening the vSphere Management SDK

When writing scripts (I am a fan of PowerCLI of course) there is many a time when I need to get something out of the vSphere SDK so I can dig in and get the details that I am looking for. Of course …

  • vSphere
  • Scripting
  • Powershell
  • VMware
1 min read

Removing ^M Characters from Files in ESXi

As part of a build process for an ESXi server – on of the stages are to upload a valid SSL certificate to the ESXi server. When copying the certificate over to the host with pcsp for some reason they …

  • ESXi
  • Scripting
  • Administration
  • VMware
2 min read

Set-UpdateToolsPolicy–For your VM’s

In continuation to William Lam’s post on how you can Automating VMware Tools Upgrade Policy and thanks to a comment left on the post – I wanted to perform the same functionality in PowerCLI. I present …

  • Management
  • Scripting
  • VMware
  • PowerCLI
2 min read

How to Set CDP on a vSwitch–the PowerCLI Way

We all know that you get CDP information in a number of ways (also PowerCLI), KB 1007069 provides a number of ways to do it. But how would you go about setting CDP on the vSwitch? That can be done on …

  • Management
  • ESXi
  • Scripting
  • esxcli