Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to execute commands using PowerShell 7 #27

Open
alirezanet opened this issue Jun 24, 2024 · 2 comments
Open

Unable to execute commands using PowerShell 7 #27

alirezanet opened this issue Jun 24, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@alirezanet
Copy link
Contributor

alirezanet commented Jun 24, 2024

Describe the bug
I'm not able to execute any command in Windows terminal PowerShell 7

Console Output
image

 Get-ExecutionPolicy
Unrestricted
󰋜 ~
󰍲 ❯ tlm s 'list files in this directory'> Thinking... (3.9161497s)
┃ > dir
┃ > Executing...

. : File C:\Users\AliReza\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because
running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:3
+ . 'C:\Users\AliReza\Documents\WindowsPowerShell\Microsoft.PowerShell_ ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

tlm Version
Which tlm version are you running? Type tlm version to get the version
tlm 1.1 (a0ca50d) on windows/amd64

Platform Information (please complete the following information):
Which operating system are you running on?-
Windows 11

Additional context
I think tlm doesn't work on PowerShell 7 which is the latest version of Powershell.

@alirezanet alirezanet added the bug Something isn't working label Jun 24, 2024
@alirezanet alirezanet changed the title Unable to execute commands on windows Unable to execute commands using PowerShell 7 Jun 24, 2024
@silverhairs
Copy link

silverhairs commented Jul 26, 2024

I think this is an issue on your execution policies. I don't own a windows computer but maybe you can try to open powershell as an admin and running the command

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

This will allow your system to run scripts using powershell

@alirezanet
Copy link
Contributor Author

hi @silverhairs
Did you see the attached Image? the first command is my execution policy ... it is Unrestricted

@yusufcanb yusufcanb added this to the 1.2 milestone Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants