PeetersOnline.nl
Virtually Everything about Powershell and PowerCLI
  • About Me
  • Script Repository
    • Set-VMVideoAccLevel
    • Compare-Clusters
    • Get-VMDiskUsage
    • Create-VMDiskOverview

Translate Vml to LUN Path with Powershell

By admin On March 23, 2009 · 3 Comments

While checking the vmkernel logs on our VMware ESX Servers today, I ran into some errors referencing luns using a vml string. It looks something like this: vml.827149017315617. I would like to know what lun this error is referencing, but I prefer the LUN Path notation, e.g.: vmhba1:2:137. So I wrote this

Continue Reading →

Adding Script Repository to PeetersOnline.nl

By admin On February 27, 2009 · Leave a Comment

In an attempt to make PeetersOnline.nl even better I am adding a Script Repository. It can be accessed through the button in the main navigation bar at the top of the site.

The Script Repository will soon hold all of my published Powershell scripts, formatted in a easy-to-use way, including a [...]

Continue Reading →

Regular Expression Magic in Powershell

By admin On February 13, 2009 · Leave a Comment

I have been looking at regular expressions in Windows Powershell recently. Although it seems very complex, the power of regular expressions (regex) is worth the effort! Think about server naming conventions for example. It’s easy for a human to recognise a server name that begins with a location code and contains a status [...]

Continue Reading →

Checking VMware NTP configuration with Powershell

By admin On February 12, 2009 · 3 Comments

Thanks to the VMware VI Toolkit 1.5, checking the NTP settings on all your VMware ESX Servers is as easy as a oneliner:

Get-VMHost | Sort Name | Select Name, @{N=”NTP”;E={Get-VMHostNtpServer $_}}

Continue Reading →

VI Toolkit 1.5 Getting Started and Undocumented Functions

By admin On January 29, 2009 · 3 Comments

0. Installing
Installing or upgrading the VI Toolkit 1.5 is as easy as Next, Next, Finish. And using the new VI Toolkit shortcut on your desktop allows quick and easy access to the Toolkit. But what about running these cmdlets from your scripts or integrating it with other snapins? Read [...]

Continue Reading →

Puzzle

By admin On January 21, 2009 · Leave a Comment

Just having a bit of fun with Powershell:

48 6F 6C 64 20 66 61 73 74 20 74 6F 20 64 72 65 61 6D 73 A 46 6F 72 20 69 66 20 64 72 65 61 6D 73 20 64 69 65 A 4C 69 66 65 20 69 73 [...]

Continue Reading →

From HEX to DEC and back

By admin On January 20, 2009 · 1 Comment

Why do computer nerds mix up Halloween and Christmas? Because 31 OCT = 25 DEC

I always mix up the commands used to convert integers to and from decimal, hexadecimal and octal in Powershell. That’s why I wrote these functions and put them in my profile:

# Description: Coverts a decimal into [...]

Continue Reading →

Check VMware Configuration with Powershell

By admin On January 19, 2009 · 23 Comments

I have promised you I would post this script, so here it is!

This Powershell script generates an overview of any items that are not available to every ESX server in a VMware cluster. These items might prevent your vm’s being vmotioned by DRS or restarted by HA. Pretty serious [...]

Continue Reading →

Compare Cluster Datastores with Powershell

By admin On January 16, 2009 · 2 Comments

I showed you before how to compare the datastores for two ESX Servers using the VI Toolkit. But ideally, one would like to compare all ESX servers in a cluster to ensure VMotion and HA compatibility.
So I started scripting and it turns out to be pretty simple: only 4 lines [...]

Continue Reading →

Another way to gather VMware disk info with Powershell

By admin On January 8, 2009 · 28 Comments

I’ve created another way to gather and display VMware Virtual Disk information with the Powershell VI Toolkit.

The attached script generates a csv-file with all Virtual Machines’ Disks, in which Datastore they are stored, the LUN IDs of the extents that make up this Datastore (in HEX) and the [...]

Continue Reading →
← Previous Entries Next Entries →
  • Tags

    Active Directory API bind order cleanup cluster CPU Custom Fields datastores description device management directory tree errors Event Log file name filter Fun function HA IT known issues License Server LUN multipath NIC objects Oneliner portgroups PowerCLI PowerShell profile recursive Registry Scripts security session share snapshots SQL Stat VI Toolkit VMware vSphere WMI WSUS Zen
  • Popular Posts

    • Oneliner: Get Logged on Users with Powershell
    • Listing AD Group Members Recursively with Powershell
    • Gather NIC properties (including Speed and Duplex)
    • Listing share permissions for remote shares
    • Get VMware Disk Usage with Powershell
  • Recent Comments

    • Jon on Finding Shares with Powershell
    • Chris McEwan on Examine VMware CPU Ready Times with Powershell
    • Chris McEwan on Examine VMware CPU Ready Times with Powershell
    • Thomas on Poor Man’s Virtual Machine Backup with PowerCLI
    • KrazY on Gather NIC properties (including Speed and Duplex)
  • Twitter

    Error: Please make sure the Twitter account is public.

  • Archives

    • July 2012
    • July 2011
    • February 2011
    • January 2011
    • December 2010
    • May 2010
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
  • Categories

    • Fun
    • Oneliners
    • PowerCLI 4.0
    • PowerGUI
    • PowerShell
    • SQL
    • Uncategorized
    • VI Toolkit 1.5
    • VMware
    • WSUS
    • Zen
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
"Error: Please make sure the Twitter account is public." — hugopeeters

PeetersOnline.nl

Pages

  • PowerShell
  • Oneliners
  • VMware
  • PowerCLI 4.0
  • VI Toolkit 1.5
  • Fun
  • SQL
  • WSUS
  • Uncategorized
  • Zen

The Latest

  • Poor Man's Virtual Machine Backup with PowerCLI
    Are you still performing old-school in-guest VM backups with a backup agent? […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2012 PeetersOnline.nl
Platform by PageLines