ITADN

UART:~# VCFailure -# \\ESXi 8.0U3e\(Customized) [Uncorrectable]

#5151ClosedBeyerMrChristopher 创建于 2026-05-20
### Prerequisites - [x] Write a descriptive title. - [x] Make sure you are able to repro it on the [latest released version](https://www.powershellgallery.com/packages/PSReadLine) - [x] Search the existing issues, especially the pinned issues. ### Exception report ```console when invoking script "https://raw.githubusercontent.com/saiful7/esxi-custom-drivers/refs/heads/main/createCustomEsxiInstallerImage.ps1" @cmdlet Set-EsxImageProfile at command pipeline position 1 Supply values for the following parameters: (Type !? for Help.) ImageProfile: C:\Users\shmag\OneDrive\Documents\PowerShell\Modules\INT_bootbank_ixgben_1.14.2.0-1OEM.700.1.0.15843807.vib [breakinto:DEBUG] ~~~~~~~~~~~~~~~~~ PS C:\Program Files\WindowsPowerShell\Modules> Entering debug mode. Use h or ? for help. At line:1 char:1 + 0 + ~ ``` ### Screenshot When Setting PowerCLI PythonPath as "Current User" it reported "All Users" too (admin?)... ### Environment data ```console PS Version: 5.1.22621.6133 PS HostName: ConsoleHost PSReadLine Version: 2.0.0 PSReadLine EditMode: Windows OS: 10.0.22621.1 (WinBuild.160101.0800) BufferWidth: 120 BufferHeight: 9001 ``` ### Steps to reproduce param( >> [switch]$outDir = $False >> ) >> import-module vmware-powercli -warningvariable $Error[1];$Env:PSModulePath = Set-Location C:\Users\shmag\AppData\Local\ -PassThru >> [switch[]]$NestedPromptLevel = class dynamicparam {} install-module vmware.powercli -requiredversion 13.1.0.21624340 >> # ### Expected behavior ### Exception ``` System.Management.Automation.PSInvalidCastException: Cannot convert the "2" value of type "System.Int32" to type "System.Management.Automation.SwitchParameter[]". at System.Management.Automation.LanguagePrimitives.ThrowInvalidCastException(Object valueToConvert, Type resultType) at System.Management.Automation.LanguagePrimitives.ConvertNoConversion(Object valueToConvert, Type resultType, Boolean recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable) at System.Management.Automation.LanguagePrimitives.ConversionData`1.Invoke(Object valueToConvert, Type resultType, Boolean recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable) at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IFormatProvider formatProvider, TypeTable backupTypeTable) at System.Management.Automation.ArgumentTypeConverterAttribute.Transform(EngineIntrinsics engineIntrinsics, Object inputData, Boolean bindingParameters, Boolean bindingScriptCmdlet) ### Actual behavior PS C:\Users\shmag\AppData\Local> echo $Env:PSModulePath.Length | >> set-location \\localhost\C$\ProgramData\WindowsPowerShell\Registry -Debug [ref[]]"New-vSphereConfiguration.ps1" >> echo -debug cef# >> Publish-Module -Name Microsoft.PowerShell_2023.119.140.0_neutral_~_8wekyb3d8bbwe -InformationVariable $Error[0] -OutVariable [ref]$CurrentlyExecutingCommand::"$function:oss" -Debug $Rune:OMI_PackageMangementPSUtilityPreCommit
关闭于 2026-05-27 0 条评论