UpdateHub icon indicating copy to clipboard operation
UpdateHub copied to clipboard

Getting the error ```Error: Command failed: "C:\Program Files\PowerShell\7\pwsh.exe" -NoProfile -Command Get-Module -ListAvailable -Name Microsoft.WinGet.Client Unhandled exception. System.Management.Automation.PSInvalidOperationException: PowerShell has s

Open GecielCosta opened this issue 8 months ago • 0 comments

Getting the error ```Error: Command failed: "C:\Program Files\PowerShell\7\pwsh.exe" -NoProfile -Command Get-Module -ListAvailable -Name Microsoft.WinGet.Client Unhandled exception. System.Management.Automation.PSInvalidOperationException: PowerShell has stopped working because of a security issue: Cannot read the configuration file: H:\geciel\OneDrive\Documentos\PowerShell\powershell.config.json ---> System.IO.IOException: O provedor do arquivo de nuvem n�o est� em execu��o. : 'H:\geciel\OneDrive\Documentos\PowerShell\powershell.config.json' at System.IO.RandomAccess.ReadAtOffset(SafeFileHandle handle, Span1 buffer, Int64 fileOffset) at System.IO.Strategies.OSFileStreamStrategy.Read(Span1 buffer) at System.IO.Strategies.BufferedFileStreamStrategy.ReadSpan(Span1 destination, ArraySegment1 arraySegment) at System.IO.Strategies.BufferedFileStreamStrategy.Read(Byte[] buffer, Int32 offset, Int32 count) at System.IO.StreamReader.ReadBuffer(Span1 userBuffer, Boolean& readToUserBuffer) at System.IO.StreamReader.ReadSpan(Span1 buffer) at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count) at Newtonsoft.Json.JsonTextReader.ReadData(Boolean append, Int32 charsRequired) at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader) at System.Management.Automation.Configuration.PowerShellConfig.ReadValueFromFile[T](ConfigScope scope, String key, T defaultValue) --- End of inner exception stack trace --- at System.Management.Automation.Configuration.PowerShellConfig.ReadValueFromFile[T](ConfigScope scope, String key, T defaultValue) at System.Management.Automation.Configuration.PowerShellConfig.GetPowerShellPolicies(ConfigScope scope) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at System.Management.Automation.Utils.GetPolicySettingFromConfigFile[T](ConfigScope[] preferenceOrder) at System.Management.Automation.Utils.GetPolicySetting[T](ConfigScope[] preferenceOrder) at Microsoft.PowerShell.CommandLineParameterParser.GetConfigurationNameFromGroupPolicy() at Microsoft.PowerShell.ConsoleHost.ParseCommandLine(String[] args) at Microsoft.PowerShell.UnmanagedPSEntry.Start(String[] args, Int32 argc) at Microsoft.PowerShell.ManagedPSEntry.Main(String[] args)

at __node_internal_genericNodeError (node:internal/errors:866:15)
at checkExecSyncError (node:child_process:905:11)
at Object.execSync (node:child_process:977:15)
at Object.execSync (node:electron/js2c/node_init:2:13035)
at window.<computed> (C:\Users\gecie\AppData\Local\Programs\update-hub\resources\app.asar\preload.js:1:490453)```.

GecielCosta avatar Mar 06 '25 00:03 GecielCosta