Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Change output of a script to include the VM name?........maybe?

$
0
0

So I'm running this script found here: VMX Raiders Revisited - LucD notes

 

It runs and does what I need it to do. It outputs the below when finished....

 

PS C:\Users\user> C:\Users\user\Desktop\ImportVMsFromDatastore.ps1

 

Name                           State      % Complete Start Time   Finish Time

----                           -----      ---------- ----------   -----------

RegisterVM_Task                Running             0 01:26:59 PM             

RegisterVM_Task                Running             0 01:26:59 PM             

RegisterVM_Task                Running             0 01:27:00 PM             

RegisterVM_Task                Running             0 01:27:00 PM             

 

 

My question is, how do you make it output the actual VM name instead of "RegisterVM_Task "?

Or is that just the step the script is at for that specific VM in the list?

 

Also, how about stamping the finish time as well? Not important but just for completeness for my OCD.......lol

 

Thanks


Viewing all articles
Browse latest Browse all 49146

Trending Articles