Thanks LucD,
Sorry, where do i put the vcenter, username and password details. Still learning to script...apologies.
Thanks
Mo