Wednesday, April 10, 2013

Add Notes / Description

Following one liner can be used to add notes to a virtual guest.


Get-VM "Server Name"  | Set-VM -Notes "Description" 

Please use this on your own risk. This command will over-write the Description .

To add notes to multiple VMs 

Import-Csv "c:\Temp\vmlist.csv" | %{Set-VM  $_.VMName -Notes $_.Note -Confirm:$false}

The CSV should have vmname and the relevant notes.

No comments:

Post a Comment