All powershell versions dont work #17467
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Attention
The core contributors need to come back around and look at this ASAP.
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Resolution-External
For issues that are outside this codebase
Windows Terminal version
1.20.11381.0
Windows build number
22000.2538
Other Software
No response
Steps to reproduce
well there really isnt a step to reproduce this because its a personal issue with powershell that others did experience too but they didnt have a solution that worked for me, all i did was open powershell and it just closed immediatly after that
Expected Behavior
I was expecting powershell to open and work completely fine
Actual Behavior
Poweshell from windows opened but it closed immediatly so i tried downloading other versions of powershell like powershell 7 it opened but it said :
Process terminated. The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.
at System.Environment.FailFast(System.String, System.Exception)
at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String[], Int32)
at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])
System.TypeInitializationException: The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.
---> System.Management.Automation.PSInvalidCastException: Cannot convert value "C:\PATH_Programs\0" to type "System.UInt32". Error: "The input string 'C:\PATH_Programs\0' was not in a correct format."
---> System.FormatException: The input string 'C:\PATH_Programs\0' was not in a correct format.
at System.Number.ThrowFormatException[TChar](ReadOnlySpan
1 value) at System.UInt32.Parse(String s, NumberStyles style, IFormatProvider provider) at System.ComponentModel.UInt32Converter.FromString(String value, NumberFormatInfo formatInfo) at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) --- End of inner exception stack trace --- at System.Management.Automation.LanguagePrimitives.ConvertStringToInteger(Object valueToConvert, Type resultType, Boolean recursion, 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.LanguagePrimitives.ConvertTo[T](Object valueToConvert)
at System.Management.Automation.Security.SystemPolicy.GetDebugLockdownPolicy(String path)
at System.Management.Automation.Security.SystemPolicy.GetSystemLockdownPolicy()
at System.Management.Automation.Runspaces.InitialSessionState..cctor()
--- End of inner exception stack trace ---
so im really frustrated about this because i tried everything my mind could think of.
The text was updated successfully, but these errors were encountered: