Skip to main content


Showing posts from June, 2020

VCD | Upload or Download an OVA\OVF file to and from Org vDC with ovftool

Hi Guys, First of all I am sorry that I couldn't write up since last few days due to some personal work. But today I got some time and I thought to write about the subject. I have seen many techy guys struggling with ovftools to upload the ova\ovf file into orgvDC. Generally, people love to upload ovf\ova file through GUI but sometime it just doesn't work due to x reason then you have this alternate way of uploading it. You can also use ovftool to see the exact error\progress while uploading it. Ovftool is helpful in many other operations but today's post is to learn that How to upload ova\ovf file through ovftool. right? Now, as you know that I prefer to write some unique content or the content with enough elaboration that anyone can understand it. So, I saw a few article on this subject which I think will be little bit difficult for a lesser expert person to understand. So, I will not only put the text here but also will create a clear video and will make sure that every

PS | Script to detect and delete the Orphaned Files

Hi Guys, Someone recently asked about the script which can detect the orphaned files in a datastore and can remove it with full control and condition was, it should not show the files which are not modified since last x number of days rather it should show the files which are not connected with any VM. I did little effort and could find that such task is already done brilliantly by someone on Internet . What I tested - I removed one vmdk file from VM and then ran the script it exactly shows the vmdk which I removed and then run the command to delete it but it tried to delete entire folder. Go through below line, it will be clear. Below is the script- #Start here function Remove-OrphanedData { [CmdletBinding(SupportsShouldProcess=$true)] param( [parameter(Mandatory=$true,ValueFromPipeline=$true)] [PSObject[]]$Datastore, [switch]$Delete ) begin{ $fldList = @{} $hdList = @{} $fileMgr = Get-View FileManager } process{ foreach($ds in $Datastore){ if($ds.GetType().Name -eq "String"