Thankyou for your help mate I created a new script note in PowerGUI using your attached content. When I ran it I was prompted for a vCenter server and days value. I entered them and starting to get optimistic as it was executing and taking a while longer however the messages pane shows the following error now
↧
Re: Report on VM's created in the last 6 months/X number of days not working
↧