Windows 10: How to run Sudo Command in Windows 11/10

Discus and support How to run Sudo Command in Windows 11/10 in Windows 10 News to solve the problem; [IMG]With the help of the Sudo command, one will be able to run commands in elevated mode without having to run the console in elevated mode. In this... Discussion in 'Windows 10 News' started by WinClub, Mar 8, 2024.

  1. WinClub New Member

    How to run Sudo Command in Windows 11/10


    How to run Sudo Command in Windows 11/10 [​IMG]
    With the help of the Sudo command, one will be able to run commands in elevated mode without having to run the console in elevated mode. In this post, we will see how to run Sudo Command on your Windows computer. What is Sudo Command? Sudo (short for “Superuser Do“) is a command-line utility that […]

    This article How to run Sudo Command in Windows 11/10 first appeared on TheWindowsClub.com.

    read more...
     
    WinClub, Mar 8, 2024
    #1
  2. edvrfn Win User

    WSL run commands on boot as sudo

    I have pihole installed on ubuntu linux. It works fine except i have to manually run couple of commands on windows boot. I am running windows 10 home 18363.836. I want those commands to run on windows boot and if it can happen even before i logon to windows would be best. And that sudo elevation is needed to run those commands . How can this be achieved.

    pihole restartdns
    service lighttpd restart
     
    edvrfn, Mar 8, 2024
    #2
  3. cknoettg Win User
    WSL run commands on boot as sudo

    I may just be misinterpreting what you are saying, but what you are asking for cannot be done.

    You cannot run sudo commands for the Ubuntu VM from the Windows login screen.

    You can configure your Ubuntu vm to run those commands when the vm is started in WSL, but you aren't going to be able to inject those commands from inside Windows itself.

    - - - Updated - - -

    I realize I was being unimaginative.

    You could set a PowerShell or cmd line script as a batch file to run WSL Ubuntu when Windows is started.
    Then configure your WSL Ubuntu distro to run the sudo commands when it is thereby started.

    This recent blog post might hold some clues:
    Using WSL to Launch Several Bash Command from an Application - Rick Strahl's Web Log
     
    cknoettg, Mar 8, 2024
    #3
  4. Naki Win User

    How to run Sudo Command in Windows 11/10

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile How to run Sudo Command in Windows 11/10 :)
     
    Naki, Mar 8, 2024
    #4
Thema:

How to run Sudo Command in Windows 11/10

Loading...
  1. How to run Sudo Command in Windows 11/10 - Similar Threads - run Sudo Command

  2. Powershell Core "Sudo" returns "Command not found" almost always

    in Windows 10 Gaming
    Powershell Core "Sudo" returns "Command not found" almost always: Except for a few commands that are inherently admin-only, sudo simply does not work in Powershell Core or Powershell 5 for that matter.Details: I want to delete a write-protected folder.Remove-Item <item> returns something about insufficient rights as expected.Sudo...
  3. Powershell Core "Sudo" returns "Command not found" almost always

    in Windows 10 Software and Apps
    Powershell Core "Sudo" returns "Command not found" almost always: Except for a few commands that are inherently admin-only, sudo simply does not work in Powershell Core or Powershell 5 for that matter.Details: I want to delete a write-protected folder.Remove-Item <item> returns something about insufficient rights as expected.Sudo...
  4. Sudo functionality in Windows 11 stable version 24H2

    in Windows 10 Gaming
    Sudo functionality in Windows 11 stable version 24H2: Since the release of Windows 11 version 24H2 26100.368 on June 15, 2024, and Copilot+ PC on June 18, 2024, I'm wondering if there's built-in sudo functionality available on Windows 11 Stable.Previously, sudo access was achievable through third-party applications. With the new...
  5. Sudo functionality in Windows 11 stable version 24H2

    in Windows 10 Software and Apps
    Sudo functionality in Windows 11 stable version 24H2: Since the release of Windows 11 version 24H2 26100.368 on June 15, 2024, and Copilot+ PC on June 18, 2024, I'm wondering if there's built-in sudo functionality available on Windows 11 Stable.Previously, sudo access was achievable through third-party applications. With the new...
  6. Windows run commands

    in Windows 10 Gaming
    Windows run commands: I've been having this issue since I started using windows 11. Whenever I use the Windows key + r and I want to run a application like notepad, mspaint they don't load. The only thing that works is CMD. Any suggestions on how I can fix this?...
  7. Windows run commands

    in Windows 10 Software and Apps
    Windows run commands: I've been having this issue since I started using windows 11. Whenever I use the Windows key + r and I want to run a application like notepad, mspaint they don't load. The only thing that works is CMD. Any suggestions on how I can fix this?...
  8. How to clear Run command history in Windows 10

    in Windows 10 News
    How to clear Run command history in Windows 10: [ATTACH]This post will explain how to clear the Run dialog command history in Windows 10. The Run dialog box is a very powerful tool in Windows 10. You can use this utility to open your desired apps and documents directly whose path is known. All you need to type the app name...
  9. WSL run commands on boot as sudo

    in Windows 10 Support
    WSL run commands on boot as sudo: I have pihole installed on ubuntu linux. It works fine except i have to manually run couple of commands on windows boot. I am running windows 10 home 18363.836. I want those commands to run on windows boot and if it can happen even before i logon to windows would be best. And...
  10. Run SFC Command in Windows 10

    in Windows 10 Tutorials
    Run SFC Command in Windows 10: How to: Run SFC Command in Windows 10 How to Repair System Files with SFC Command in Windows 10 The SFC command scans the integrity of all protected system files and replaces incorrect (corrupted or modified) versions with correct Microsoft versions. This tutorial...