Running Get-WinGetPackage in Service gives error: cmdlet not supported in Windows Powershell even tough when i run it perfectly through terminal #4832
Unanswered
jonygomes06
asked this question in
Q&A
Replies: 1 comment
-
Related to: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an exe that is intended to run as a service but i can also run it through terminal.
When i run that exe through terminal, just like a cmd command, i can perfectly use Get-WinGetPackage, the same works when i use the Get-WinGetPackage directly in terminal.
But when i use my exe as a service i get this error: Get-WinGetPackage : This cmdlet is not supported in Windows PowerShell.
Why this happens?
Im using C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe in all scenarios
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions