About

Robert van den Nieuwendijk is a freelance senior systems engineer with over 25 years of experience in the IT industry. His main focus is VMware vSphere and Microsoft Windows Server. He tries to automate as much of his work as possible using Microsoft Windows PowerShell. Robert is the author of the “Learning PowerCLI” book published by Packt Publishing. Robert is a frequent contributor and moderator at the VMware VMTN Communities. He has a bachelor degree in software engineering and holds the following IT certifications and accreditations:
VSP 5, VTSP 5, VCP4-DCV, VCP5-DCV, MCSE, MCSA, MCP and MCP+I.

In 2012, 2013 and in 2014 Robert received the VMware vExpert title for his contribution to the community of VMware users over the past year.

3 Responses to About

  1. William Lynch says:

    HI Robert,

    I’m enjoying your book. I’m currently on chapter 4 attempting to use your script to invoke vsphere cli commands inside of powercli. Cool Stuff! Howerver I am stuck on the script you provided giving me the below error.

    Invoke-Expression : At line:2 char:69
    + ‘C:\Program Files\VMware\VMware vSphere CLI\Bin\\vihostupdate35.pl’ $args }
    + ~~~~~
    Unexpected token ‘$args’ in expression or statement.
    \add-vclifunction.ps1:55 char:1
    + Invoke-Expression $Function
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : UnexpectedToken,Microsoft.PowerShell.Commands.InvokeExpressionCommand

    Invoke-Expression : At line:2 char:65
    + ‘C:\Program Files\VMware\VMware vSphere CLI\Bin\\vmkfstools.pl’ $args }
    + ~~~~~
    Unexpected token ‘$args’ in expression or statement.
    At C:\Users\blynch.BTGPGH\Documents\add-vclifunction.ps1:55 char:1
    + Invoke-Expression $Function
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : UnexpectedToken,Microsoft.PowerShell.Commands.InvokeExpressionCommand

    Invoke-Expression : At line:2 char:65
    + ‘C:\Program Files\VMware\VMware vSphere CLI\Bin\\vmware-cmd.pl’ $args }
    + ~~~~~
    Unexpected token ‘$args’ in expression or statement.
    At \add-vclifunction.ps1:55 char:1
    + Invoke-Expression $Function
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : UnexpectedToken,Microsoft.PowerShell.Commands.InvokeExpressionCommand

    vicfg-nics : The term ‘vicfg-nics’ is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At \\vicfg-nics.ps1:7 char:3
    + vicfg-nics -l –server $_.Name

    Any suggestions?

  2. Hi William,

    I am glad you are enjoying my Learning PowerCLI book.

    Did you use the function Add-vCLIfunction from the code bundle accompanied with the book? You can download it from the Support tab on http://www.packtpub.com/learning-powercli/book. I just tried it myself and it works without a problem here.

    You can also take a look at my blog post http://rvdnieuwendijk.com/2011/07/21/how-to-run-vmware-vsphere-cli-perl-scripts-from-powercli/. I used this blog post to write the part of the book you specified.

    If you keep having problems with this function, let me know.

  3. William Lynch says:

    Hi Robert,

    Thanks I think I’m having the same issue as the first post on your blog. It may be an environment issue I can call the commands from command.exe but powershell doesn’t like them. Thanks for the quick reply, I’m going to keep trying!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 655 other followers

%d bloggers like this: