WSL2: Launch powershell command from emacs

Juan Pablo Morales 21 Reputation points
2020-07-07T19:12:35.257+00:00

Hi,

My IDE/text editor is emacs. I installed wsl2 and followed this repo to set up emacs on wsl.

I am working on an automation pipeline, so the code must be executed from powershell (access to windows programs, pyautogui etc.).

I still do my editing from emacs, so my files are in wsl filesystem. I know I can access them from windows, and could manually open a powershell and execute the script using the correspending wsl path.

My question is: can I use powershell directly from emacs? Emacswiki link seem obsolete (powershell.el is from 2010) and couldn't find any trivial way to launch my automation load directly from emacs.

Any tips are very welcomed.

Thanks!

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,921 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2020-07-07T19:19:22.487+00:00

    WSL2 is not currently supported here on QnA. They're actively answering questions in dedicated forums here.
    https://github.com/Microsoft/WSL/issues

    and PowerShell forums located here.
    https://social.technet.microsoft.com/Forums/windows/en-US/home?forum=winserverpowershell

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

0 additional answers

Sort by: Most helpful