0 Replies Latest reply on Jul 21, 2010 1:53 AM by RvdNieuwendijk

    Script to change output type changes in PowerCLI 4.1

    RvdNieuwendijk Virtuoso
    vExpertUser Moderators

      In PowerCLI 4.1 the namespaces are changed. See Output type changes in PowerCLI 4.1 for more information. This change involved that the current version of vEcoShell and the VI Toolkit for Windows Community Extensions don't work with PowerCLI 4.1. Luckily the PowerCLI team posted a file with all the typeMapping of PowerCLI 4.0.1 to 4.1. Using this file it was not difficult to create a new PowerShell function that you can use to change all the version 4.0 typemappings in a PowerCLI script to the version 4.1 typemappings. The script is:

       

      Function Upgrade-PowerCLI40To41 {
        param($InputFiles)
        
        ForEach($File in $InputFiles) {
          Get-Content $File | ForEach-Object {
             $Row = $_
            $Row = $Row.Replace("VMware.VimAutomation.Types.Annotation","VMware.VimAutomation.ViCore.Types.V1.AnnotationManagement.Annotation")
            $Row = $Row.Replace("VMware.VimAutomation.Types.CDDrive","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.CDDrive")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.ChapType","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.ChapType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Cluster","VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ConnectInfo","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.ConnectInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Types.CpuAffinity","VMware.VimAutomation.ViCore.Types.V1.VM.CpuAffinity")
            $Row = $Row.Replace("VMware.VimAutomation.Types.CustomAttribute","VMware.VimAutomation.ViCore.Types.V1.AnnotationManagement.CustomAttribute")
            $Row = $Row.Replace("VMware.VimAutomation.Types.CustomAttributeTargetType","VMware.VimAutomation.ViCore.Types.V1.AnnotationManagement.CustomAttributeTargetType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Datacenter","VMware.VimAutomation.ViCore.Types.V1.Inventory.Datacenter")
            $Row = $Row.Replace("[Datastore]","[http://VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore|http://VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore]")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DatastoreManagement.DatastoreFile","VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreFile")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DatastoreManagement.DatastoreFolder","VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreFolder")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DatastoreManagement.DatastoreItem","VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreItem")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DatastoreManagement.DatastoreItemType","VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreItemType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DatastoreUser","VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreUser")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DefaultVIServerMode","VMware.VimAutomation.ViCore.Types.V1.DefaultVIServerMode")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Description","VMware.VimAutomation.ViCore.Types.V1.Description")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DhcpPolicy","VMware.VimAutomation.ViCore.Types.V1.DhcpPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DiagnosticBundle","VMware.VimAutomation.ViCore.Types.V1.DiagnosticBundle")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DiskInfo","VMware.VimAutomation.ViCore.Types.V1.VM.Guest.DiskInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DiskType","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.DiskType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DrsAutomationLevel","VMware.VimAutomation.ViCore.Types.V1.Cluster.DrsAutomationLevel")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DrsMode","VMware.VimAutomation.ViCore.Types.V1.Cluster.DrsMode")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DrsRecommendation","VMware.VimAutomation.ViCore.Types.V1.Cluster.DrsRecommendation")
            $Row = $Row.Replace("VMware.VimAutomation.Types.DrsVMAffinityRule","VMware.VimAutomation.ViCore.Types.V1.Cluster.DrsVMAffinityRule")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ErrorCategory","VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.ErrorCategory")
            $Row = $Row.Replace("VMware.VimAutomation.Types.EventCategory","VMware.VimAutomation.ViCore.Types.V1.EventCategory")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.FibreChannelHba","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.FibreChannelHba")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.FibreChannelPortType","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.FibreChannelPortType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.FlatHardDisk","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.FlatHardDisk")
            $Row = $Row.Replace("VMware.VimAutomation.Types.FloatSample","VMware.VimAutomation.ViCore.Types.V1.Stat.FloatSample")
            $Row = $Row.Replace("VMware.VimAutomation.Types.FloppyDrive","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.FloppyDrive")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Folder","VMware.VimAutomation.ViCore.Types.V1.Inventory.Folder")
            $Row = $Row.Replace("VMware.VimAutomation.Types.GuestState","VMware.VimAutomation.ViCore.Types.V1.VM.Guest.GuestState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.HAIsolationResponse","VMware.VimAutomation.ViCore.Types.V1.Cluster.HAIsolationResponse")
            $Row = $Row.Replace("VMware.VimAutomation.Types.HardDisk","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.HardDisk")
            $Row = $Row.Replace("VMware.VimAutomation.Types.HARestartPriority","VMware.VimAutomation.ViCore.Types.V1.Cluster.HARestartPriority")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.Hba","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Hba")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.HbaStatus","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.HbaStatus")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.HbaType","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.HbaType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostAccount","VMware.VimAutomation.ViCore.Types.V1.Host.Account.HostAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NIC.HostConsoleVirtualNic","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.HostConsoleVirtualNic")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostFileSystemVolumeInfo","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.HostFileSystemVolumeInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostFirmware","VMware.VimAutomation.ViCore.Types.V1.Host.HostFirmware")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostFirmwareBundle","VMware.VimAutomation.ViCore.Types.V1.Host.HostFirmwareBundle")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostGroupAccount","VMware.VimAutomation.ViCore.Types.V1.Host.Account.HostGroupAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NIC.HostNic","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.HostNic")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostService","VMware.VimAutomation.ViCore.Types.V1.Host.HostService")
            $Row = $Row.Replace("VMware.VimAutomation.Types.HostServicePolicy","VMware.VimAutomation.ViCore.Types.V1.Host.HostServicePolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.HostUserAccount","VMware.VimAutomation.ViCore.Types.V1.Host.Account.HostUserAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NIC.HostVirtualNic","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.HostVirtualNic")
            $Row = $Row.Replace("VMware.VimAutomation.Types.HostVirtualNicType","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.HostVirtualNicType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NIC.HostVMKernelVirtualNic","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.HostVMKernelVirtualNic")
            $Row = $Row.Replace("VMware.VimAutomation.Types.HTCoreSharing","VMware.VimAutomation.ViCore.Types.V1.VM.HTCoreSharing")
            $Row = $Row.Replace("VMware.VimAutomation.Types.InventoryItem","VMware.VimAutomation.ViCore.Types.V1.Inventory.InventoryItem")
            $Row = $Row.Replace("VMware.VimAutomation.Types.IPv6Address","VMware.VimAutomation.ViCore.Types.V1.IPv6Address")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHba","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHba")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHbaAuthenticationCapability","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaAuthenticationCapability")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHbaAuthenticationProperties","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaAuthenticationProperties")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHbaSendTarget","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaSendTarget")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHbaStaticTarget","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaStaticTarget")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHbaTarget","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaTarget")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.Storage.IScsiHbaTargetType","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaTargetType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.LicenseMode","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.LicenseMode")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.LoadBalancingPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.LoadBalancingPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Log","VMware.VimAutomation.ViCore.Types.V1.Log")
            $Row = $Row.Replace("VMware.VimAutomation.Types.LogDescriptor","VMware.VimAutomation.ViCore.Types.V1.LogDescriptor")
            $Row = $Row.Replace("VMware.VimAutomation.Types.LongSample","VMware.VimAutomation.ViCore.Types.V1.Stat.LongSample")
            $Row = $Row.Replace("VMware.VimAutomation.Types.NamedIPEndPoint","VMware.VimAutomation.ViCore.Types.V1.NamedIPEndPoint")
            $Row = $Row.Replace("VMware.VimAutomation.Types.NamedObject","VMware.VimAutomation.Sdk.Types.V1.NamedObject")
            $Row = $Row.Replace("VMware.VimAutomation.Types.NamingScheme","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.NamingScheme")
            $Row = $Row.Replace("VMware.VimAutomation.Types.NetworkAdapter","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.NetworkAdapter")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NetworkFailoverDetectionPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.NetworkFailoverDetectionPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.NicInfo","VMware.VimAutomation.ViCore.Types.V1.VM.Guest.NicInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NicTeamingPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.NicTeamingPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NicTeamingVirtualPortGroupPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.NicTeamingVirtualPortGroupPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NicTeamingVirtualSwitchPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.NicTeamingVirtualSwitchPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.OSCustomizationIPMode","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSCustomizationIPMode")
            $Row = $Row.Replace("VMware.VimAutomation.Types.OSCustomizationNicMapping","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSCustomizationNicMapping")
            $Row = $Row.Replace("VMware.VimAutomation.Types.OSCustomizationSpec","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSCustomizationSpec")
            $Row = $Row.Replace("VMware.VimAutomation.Types.OSCustomizationSpecType","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSCustomizationSpecType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.OSType","VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PassThroughDevice","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.PassThroughDevice")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PassthroughDeviceType","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.PassthroughDeviceType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PciPassthroughDevice","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.PciPassthroughDevice")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PciPassthroughDeviceState","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.PciPassthroughDeviceState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.Permission","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.Permission")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PersistencePolicy","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.PersistencePolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.NIC.PhysicalNic","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.PhysicalNic")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.PortGroupPort","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.PortGroupPort")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PowerCLIConfiguration","VMware.VimAutomation.ViCore.Types.V1.PowerCLIConfiguration")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PowerCLIVersion","VMware.VimAutomation.ViCore.Types.V1.PowerCLIVersion")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PowerState","VMware.VimAutomation.ViCore.Types.V1.Inventory.PowerState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.Privilege","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.Privilege")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.PrivilegeGroup","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.PrivilegeGroup")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.PrivilegeItem","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.PrivilegeItem")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ProxyPolicy","VMware.VimAutomation.ViCore.Types.V1.ProxyPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.RawHardDisk","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.RawHardDisk")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ResourcePool","VMware.VimAutomation.ViCore.Types.V1.Inventory.ResourcePool")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.Role","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.Role")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Sample","VMware.VimAutomation.ViCore.Types.V1.Stat.Sample")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ScriptType","VMware.VimAutomation.ViCore.Types.V1.ScriptType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.ScsiLun","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi.ScsiLun")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.ScsiLunMultipathPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi.ScsiLunMultipathPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.ScsiLunPath","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi.ScsiLunPath")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.ScsiLunPathState","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi.ScsiLunPathState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ScsiPassthroughDevice","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.ScsiPassthroughDevice")
            $Row = $Row.Replace("VMware.VimAutomation.Types.SharesLevel","VMware.VimAutomation.ViCore.Types.V1.SharesLevel")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Snapshot","VMware.VimAutomation.ViCore.Types.V1.VM.Snapshot")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.StartPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.VMStartPolicy.StartPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.StatInterval","VMware.VimAutomation.ViCore.Types.V1.Stat.StatInterval")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Task","VMware.VimAutomation.ViCore.Types.V1.Task")
            $Row = $Row.Replace("VMware.VimAutomation.Types.TaskState","VMware.VimAutomation.Sdk.Types.V1.TaskState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Template","VMware.VimAutomation.ViCore.Types.V1.Inventory.Template")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.TrapTarget","VMware.VimAutomation.ViCore.Types.V1.Host.TrapTarget")
            $Row = $Row.Replace("VMware.VimAutomation.Types.UsbDevice","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.UsbDevice")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VApp","VMware.VimAutomation.ViCore.Types.V1.Inventory.VApp")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VAppStatus","VMware.VimAutomation.ViCore.Types.V1.Inventory.VAppStatus")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.VCAccount","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.VCAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.VCGroupAccount","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.VCGroupAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.VCUserAccount","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.VCUserAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PermissionManagement.VIAccount","VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.VIAccount")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VIContainer","VMware.VimAutomation.ViCore.Types.V1.Inventory.VIContainer")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VICredentialStoreItem","VMware.VimAutomation.ViCore.Types.V1.VICredentialStoreItem")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VIObject","VMware.VimAutomation.Sdk.Types.V1.VIObject")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VIObjectCore","VMware.VimAutomation.Sdk.Types.V1.VIObjectCore")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VirtualDevice","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.VirtualDevice")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VirtualDiskStorageFormat","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.VirtualDiskStorageFormat")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VirtualMachine","VMware.VimAutomation.ViCore.Types.V1.Inventory.VirtualMachine")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VirtualNetworkAdapterType","VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.VirtualNetworkAdapterType")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VirtualPortGroup","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.VirtualPortGroup")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VirtualSwitch","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.VirtualSwitch")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VIServer","VMware.VimAutomation.ViCore.Types.V1.VIServer")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMDiskResourceConfiguration","VMware.VimAutomation.ViCore.Types.V1.VM.VMDiskResourceConfiguration")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMGuest","VMware.VimAutomation.ViCore.Types.V1.VM.Guest.VMGuest")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMGuestNetworkInterface","VMware.VimAutomation.ViCore.Types.V1.VM.Guest.VMGuestNetworkInterface")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMGuestRoute","VMware.VimAutomation.ViCore.Types.V1.VM.Guest.VMGuestRoute")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMHost","VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostDiagnosticPartition","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostDiagnosticPartition")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostFirewallDefaultPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostFirewallDefaultPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostFirewallException","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostFirewallException")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VmHostModule","VMware.VimAutomation.ViCore.Types.V1.Host.VmHostModule")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostNetworkInfo","VMware.VimAutomation.ViCore.Types.V1.Host.Networking.VMHostNetworkInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostPatch","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostPatch")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMHostPowerState","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostPowerState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostProfile","VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfile")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostProfileComplianceStatus","VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileComplianceStatus")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostProfileIncompliance","VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileIncompliance")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostProfileIncomplianceElement","VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileIncomplianceElement")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VmHostSnmp","VMware.VimAutomation.ViCore.Types.V1.Host.VmHostSnmp")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostStartPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.VMStartPolicy.VMHostStartPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMHostState","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostState")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostStorageInfo","VMware.VimAutomation.ViCore.Types.V1.Host.Storage.VMHostStorageInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMHostTimeZone","VMware.VimAutomation.ViCore.Types.V1.Host.VMHostTimeZone")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMQuestion","VMware.VimAutomation.ViCore.Types.V1.VM.VMQuestion")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMQuestionOption","VMware.VimAutomation.ViCore.Types.V1.VM.VMQuestionOption")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMResourceConfiguration","VMware.VimAutomation.ViCore.Types.V1.VM.VMResourceConfiguration")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VmStartAction","VMware.VimAutomation.ViCore.Types.V1.Host.VMStartPolicy.VmStartAction")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VMStartPolicy","VMware.VimAutomation.ViCore.Types.V1.Host.VMStartPolicy.VMStartPolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.Host.VmStopAction","VMware.VimAutomation.ViCore.Types.V1.Host.VMStartPolicy.VmStopAction")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VMSwapfilePolicy","VMware.VimAutomation.ViCore.Types.V1.VMSwapfilePolicy")
            $Row = $Row.Replace("VMware.VimAutomation.Types.VmVirtualHardware","VMware.VimAutomation.ViCore.Types.V1.VM.VmVirtualHardware")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.AnnotationImpl","VMware.VimAutomation.ViCore.Impl.V1.AnnotationManagement.AnnotationImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.CDDriveImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.CDDriveImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.ClusterImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.ClusterImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.ComputeResourceImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.ComputeResourceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.CustomFieldDefinition","VMware.VimAutomation.ViCore.Impl.V1.AnnotationManagement.CustomFieldDefinition")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatacenterImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.DatacenterImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatastoreManagement.DatastoreFileImpl","VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreFileImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatastoreManagement.DatastoreFolderImpl","VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreFolderImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatastoreImpl","VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatastoreManagement.DatastoreItemImpl","VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreItemImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatastoreManagement.DatastoreRootFolderImpl","VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreRootFolderImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DatastoreManagement.DatastoreVMDiskFileImpl","VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreVMDiskFileImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DescriptionImpl","VMware.VimAutomation.ViCore.Impl.V1.DescriptionImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DiagnosticBundleImpl","VMware.VimAutomation.ViCore.Impl.V1.DiagnosticBundleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DiskInfoImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.Guest.DiskInfoImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DrsRecommendationImpl","VMware.VimAutomation.ViCore.Impl.V1.Cluster.DrsRecommendationImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.DrsVMAffinityRuleImpl","VMware.VimAutomation.ViCore.Impl.V1.Cluster.DrsVMAffinityRuleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.FibreChannelHbaImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.FibreChannelHbaImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.FlatHardDiskImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.FlatHardDiskImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.FloatSampleImpl","VMware.VimAutomation.ViCore.Impl.V1.Stat.FloatSampleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.FloppyDriveImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.FloppyDriveImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.FolderImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.FolderImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.HardDiskImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.HardDiskImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.HbaImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.HbaImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NIC.HostConsoleVirtualNicImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.Nic.HostConsoleVirtualNicImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.HostFileSystemVolumeInfoImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.HostFileSystemVolumeInfoImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.HostFirmwareBundleImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.HostFirmwareBundleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.HostFirmwareImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.HostFirmwareImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.HostGroupAccountImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Account.HostGroupAccountImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NIC.HostNicImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.Nic.HostNicImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.HostPatchFileInfoImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.HostPatchFileInfoImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.HostServiceImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.HostServiceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.HostUserAccountImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Account.HostUserAccountImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NIC.HostVirtualNicImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.Nic.HostVirtualNicImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NIC.HostVMKernelVirtualNicImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.Nic.HostVMKernelVirtualNicImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.InventoryItemImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.InventoryItemImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.InventoryPathItem","VMware.VimAutomation.ViCore.Impl.V1.Inventory.InventoryPathItem")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.IPv6AddressImpl","VMware.VimAutomation.ViCore.Impl.V1.IPv6AddressImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.IScsiHbaAuthenticationCapabilityImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.IScsiHbaAuthenticationCapabilityImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.IScsiHbaAuthenticationPropertiesImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.IScsiHbaAuthenticationPropertiesImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.IScsiHbaImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.IScsiHbaImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.IScsiHbaSendTargetImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.IScsiHbaSendTargetImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.IScsiHbaStaticTargetImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.IScsiHbaStaticTargetImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.Storage.IScsiHbaTargetImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.IScsiHbaTargetImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.LogDescriptorImpl","VMware.VimAutomation.ViCore.Impl.V1.LogDescriptorImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.LogImpl","VMware.VimAutomation.ViCore.Impl.V1.LogImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.LongSampleImpl","VMware.VimAutomation.ViCore.Impl.V1.Stat.LongSampleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.MoReference","VMware.VimAutomation.ViCore.Impl.V1.MoReference")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.NetworkAdapterImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.NetworkAdapterImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.NfcLease","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.NfcLease")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.NfcLeaseTask","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.NfcLeaseTask")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.NicInfoImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.Guest.NicInfoImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NicTeamingVirtualPortGroupPolicyImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.NicTeamingVirtualPortGroupPolicyImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NicTeamingVirtualSwitchPolicyImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.NicTeamingVirtualSwitchPolicyImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.OSCustomizationNicMappingImpl","VMware.VimAutomation.ViCore.Impl.V1.OSCustomization.OSCustomizationNicMappingImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.OSCustomizationSpecImpl","VMware.VimAutomation.ViCore.Impl.V1.OSCustomization.OSCustomizationSpecImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PassThroughDeviceImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.PassThroughDeviceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Types.PciPassthroughDeviceImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.PciPassthroughDeviceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.PermissionImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.PermissionImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.NIC.PhysicalNicImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.Nic.PhysicalNicImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.PortGroupPortImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.PortGroupPortImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.PrivilegeGroupImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.PrivilegeGroupImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.PrivilegeImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.PrivilegeImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.PrivilegeItemImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.PrivilegeItemImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.RawHardDiskImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.RawHardDiskImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.ResourcePoolImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.ResourcePoolImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.RoleImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.RoleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.SampleImpl","VMware.VimAutomation.ViCore.Impl.V1.Stat.SampleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.ScsiLunImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.Scsi.ScsiLunImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.ScsiLunPathImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.Scsi.ScsiLunPathImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Types.ScsiPassthroughDeviceImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.ScsiPassthroughDeviceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.SnapshotImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.SnapshotImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.StatIntervalImpl","VMware.VimAutomation.ViCore.Impl.V1.Stat.StatIntervalImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.StatMetricInfo","VMware.VimAutomation.ViCore.Impl.V1.Stat.StatMetricInfo")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.TaskImpl","VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.TemplateImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.TemplateImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.TrapTargetImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.TrapTargetImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.UsbDeviceImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.UsbDeviceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VAppImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.VAppImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.VCGroupAccountImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.VCGroupAccountImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.PermissionManagement.VCUserAccountImpl","VMware.VimAutomation.ViCore.Impl.V1.PermissionManagement.VCUserAccountImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VirtualDeviceImpl","VMware.VimAutomation.ViCore.Impl.V1.VirtualDevice.VirtualDeviceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VirtualMachineImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VirtualPortGroupImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.VirtualPortGroupImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VirtualSwitchImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.VirtualSwitchImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMDiskResourceConfigurationImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.VMDiskResourceConfigurationImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMGuestImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.Guest.VMGuestImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMGuestNetworkInterfaceImpl","VMware.VimAutomation.ViCore.Impl.V1.VMGuestNetworkInterfaceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMGuestRouteImpl","VMware.VimAutomation.ViCore.Impl.V1.VMGuestRouteImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostDiagnosticPartitionImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMHostDiagnosticPartitionImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostFirewallDefaultPolicyImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMHostFirewallDefaultPolicyImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostFirewallExceptionImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMHostFirewallExceptionImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMHostImpl","VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VmHostModuleImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VmHostModuleImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostNetworkInfoImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.VMHostNetworkInfoImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostPatchImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMHostPatchImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostProfileImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Profile.VMHostProfileImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostProfileIncomplianceElementImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Profile.VMHostProfileIncomplianceElementImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostProfileIncomplianceImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Profile.VMHostProfileIncomplianceImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VmHostSnmpImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VmHostSnmpImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostStartPolicyImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMStartPolicy.VMHostStartPolicyImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostStorageInfoImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.VMHostStorageInfoImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMHostTimeZoneImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMHostTimeZoneImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMQuestionImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.VMQuestionImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMQuestionOptionImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.VMQuestionOptionImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.VMResourceConfigurationImpl","VMware.VimAutomation.ViCore.Impl.V1.VM.VMResourceConfigurationImpl")
            $Row = $Row.Replace("VMware.VimAutomation.Client20.Host.VMStartPolicyImpl","VMware.VimAutomation.ViCore.Impl.V1.Host.VMStartPolicy.VMStartPolicyImpl")
            $Row
           } | Set-Content "$File-new"
        }
      }
      

       

      As the function contains square brackets and the forum software doesn't like them, I will also attach the function.

       

      To use the function to upgrade the viToolKitExtensions to PowerCLI v4.1 you can do:

       

      Upgrade-PowerCLI40To41 viToolkitExtensions.psm1
      

       

      The Upgrade-PowerCLI40To41 function creates an new file with the same name as the old file and adds "-new" to the file name. So the old file is not overwritten. If you want to use the new viToolkitExtensions you have to copy the new file over the old file and do an:

       

      Import-Module viToolkitExtensions
      

       

      Have fun and don't hesitate to start using PowerCLI 4.1!

       

      Regards, Robert