VMware Cloud Community
vmCalgary
Enthusiast
Enthusiast
Jump to solution

List of VMs with a particular string in the Notes

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.

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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
Jump to solution

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
Jump to solution

 

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.

Reply
0 Kudos