Hi sir,
Thanks for your reply & much appreciated for the effort.
The scripts show the output of the 1st part but the 2nd part is not working as excepted and gives the result blank. I am getting the below error. Please let me know if any parameter is missing.
Error
Unable to find type [ordered]: make sure that the assembly containing this type
is loaded.
At C:\Users\Administrator\Desktop\vSphere-lic.ps1:15 char:65
+ $Output = New-Object -Type PSObject -Prop ([ordered] <<<< @{
+ CategoryInfo : InvalidOperation: (ordered:String) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
Error
Thanks in Advance