PowerShell script exchange
Post Reply
TitaniumCoder477
Veteran
Posts: 315
Liked: 48 times
Joined: Apr 07, 2015 1:53 pm
Full Name: James Wilmoth
Location: Kannapolis, North Carolina, USA
Contact:

cmdlet or script to grep log info for VMware Tools not up to date

Post by TitaniumCoder477 »

Does anyone have a Powershell script to pull VM name and "VMware Tools are not up to date, some functionality may be affected" from job logs? I would like to pull a list of all the VMs with VMware Tool versions that we need to update.

Thanks!
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: cmdlet or script to grep log info for VMware Tools not up to date

Post by veremin » 1 person likes this post

You will need to parse task session log, using the given phrase as filter query. Thanks!
MaxKozlov
Influencer
Posts: 19
Liked: 5 times
Joined: Oct 26, 2017 12:52 pm
Full Name: Max Kozlov
Contact:

Re: cmdlet or script to grep log info for VMware Tools not up to date

Post by MaxKozlov » 1 person likes this post

May be the Powercli is better for this task ?

Code: Select all

Get-VM | Where-Object {$_.ExtensionData.Guest.ToolsStatus -eq 'toolsOld' }
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests