You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue while working with persistent PowerShell in the systeminformation module. When I call si.getStaticData() immediately after initializing the PowerShell, it works as expected. However, if I call it after some other si functions, it doesn't return the expected output. Execution halts thereafter.
After investigating, I found that si.getStaticData() behaves inconsistently. It returns the output correctly when called immediately after initializing the PowerShell, but not when called after other si functions.
Steps to Reproduce:
Initialize the PowerShell with si.powerShellStart().
Call si.getStaticData() after some other si functions, such as si.osInfo() and si.system().
Note that si.getStaticData() does not return the expected output.
Expected Behavior:
I expect si.getStaticData() to return the correct output regardless of its position in the code and after other si function calls.
Any guidance on resolving this issue would be greatly appreciated. If I've overlooked any mistakes or if there's additional information needed, please let me know. Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
@sebhildebrandt , I would greatly appreciate any guidance on resolving this issue. It would be very helpful for me. If I've missed any errors or if additional information is needed, please let me know. Thank you for your assistance!
Issue Description:
I'm encountering an issue while working with persistent PowerShell in the systeminformation module. When I call si.getStaticData() immediately after initializing the PowerShell, it works as expected. However, if I call it after some other si functions, it doesn't return the expected output. Execution halts thereafter.
Code Snippet:
javascript
Issue Details:
After investigating, I found that si.getStaticData() behaves inconsistently. It returns the output correctly when called immediately after initializing the PowerShell, but not when called after other si functions.
Steps to Reproduce:
Expected Behavior:
I expect si.getStaticData() to return the correct output regardless of its position in the code and after other si function calls.
Additional Information:
Environment: Windows 10; Node - v18.20.2; PowerShell - v5.1.19041.4170
systeminformation version: 5.22.5
Any guidance on resolving this issue would be greatly appreciated. If I've overlooked any mistakes or if there's additional information needed, please let me know. Thank you for your assistance!
The text was updated successfully, but these errors were encountered: