vmCalgary
Enthusiast
Enthusiast

List of VMs with a particular string in the Notes

Jump to solution

I appreciate some assistance extracting a list of VMs that contain a particular string in the notes.

The string I am looking for is: "Created by: Unix Admin Name"

Help is appreciated.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

You mean something like this?

Get-VM | where{$_.Notes -match 'Created by: <Unix Admin Name>'} |
Select Name


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership

You mean something like this?

Get-VM | where{$_.Notes -match 'Created by: <Unix Admin Name>'} |
Select Name


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

vmCalgary
Enthusiast
Enthusiast

 

I had to use: Get-VM | where{$_.Notes -match 'Created by: Unix Admin Name' } | Select Name, but the pointer in the right direction was what I needed. Thanks Luc.

0 Kudos