• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

Using the Out-GridView feature in PowerCLI

repping · Feb 24, 2011 ·

I wanted to output some data with PowerCLI using the Out-GridView cmdlet. Reason for using this cmdlet is that I needed to create an index for the .vmdk’s  attached to the virtual machines and the number varies, however I encountered the following error on my system:

Out-GridView : To use the Out-GridView cmdlet, install the Windows PowerShell Integrated Scripting Environment feature from Server Manager. (Could not load file or assembly ‘Microsoft.PowerShell.GraphicalHost, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.)

After some troubleshooting I discovered that this can be resolved easily by installing PowerShell ISE, which is an optional feature and requires .Net 3.5 SP1, to install this on Windows Server 2008 R2, use the Add Features Wizard or run the following Powershell command:

Import-Module ServerManager; Add-WindowsFeature PowerShell-ISE

-ray

Related

powerCLI powercli, Scripting, scripts, vSphere

Reader Interactions

Comments

  1. Alan Renouf says

    24 February, 2011 at 13:35

    You might also want to watch out for this little tip with Out-Gridview, it had me going for a while…

    http://www.virtu-al.net/2009/11/17/powershell-gotcha-export-csv-out-gridview-and-others/

  2. chadd dufresne says

    28 February, 2011 at 20:59

    I didn’t previously know about the out-gridview cmdlet so I took great interest in this. However, what really drew my eye to this post was the line, “create an index for the .vmdk’s attached to the virtual machines”.

    What progress have you made on this front? I am have also been looking at ways of reclaiming disk space and in a more efficient manor then looking at dates/last changes.

    Any pointers in the right direction on identifying unused .vmdks would be great!

  3. Manuel Duque says

    9 February, 2012 at 12:35

    Thank you very much indeed.

  4. Shankar says

    8 May, 2012 at 14:12

    Thanks a lot, it helps me a lot.

  5. Tomas Beijar says

    29 April, 2014 at 13:13

    Thanks. Saved me a lot of time 🙂

Primary Sidebar

About the author

Duncan Epping is a Chief Technologist in the Office of CTO of the Cloud Platform BU at VMware. He is a VCDX (# 007), the author of the "vSAN Deep Dive", the “vSphere Clustering Technical Deep Dive” series, and the host of the "Unexplored Territory" podcast.

Upcoming Events

May 24th – VMUG Poland
Aug 21st – VMware Explore
Sept – VMUG Slovenia (virtual)
Oct – VMUG Sweden
Nov 6th – VMware Explore
Nov 23rd – UK VMUG
Dec 7th – Swiss German VMUG

Recommended Reads

Sponsors

Want to support Yellow-Bricks? Buy an advert!

Advertisements

Copyright Yellow-Bricks.com © 2023 · Log in