About 17,700 results
Open links in new tab
  1. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · Try gsudo. A free open-source sudo for windows that allows to execute as admin from the command line. A UAC pop-up will appear.

  2. 'pip' is not recognized as an internal or external command

    May 17, 2014 · Note: According to the official documentation, " [v]ariables set with setx variables are available in future command windows only, not in the current command window". In particular, you …

  3. windows - How to run a PowerShell script - Stack Overflow

    it absolutely answers the question: how do I run a powershell script? answer: startup powershell console, then execute the script. easy. simple. Works on Linux also.

  4. windows - How can I run a command with administrator rights with …

    There is a much easier way to run commands with Administrator rights from the command line to get the Linux sudo experience in Windows, with none of the issues mentioned in the other answers.

  5. How do I run powershell scripts without admin rights?

    Nov 3, 2012 · I wouldn't know what group policy the admin's set at the office. I wonder if the policy stops the Invoke-Expression technique and the -EncodedCommand technique, which both allow the …

  6. How to sudo on powershell on Windows - Stack Overflow

    Mar 23, 2019 · Right-click the PowerShell shortcut (in your taskbar or Start Menu, or on your Desktop), select Run as Administrator to open a PowerShell window that runs with admin privileges, and run …

  7. Install winget by the command line (powershell) - Stack Overflow

    I'm trying to write a PowerShell script to setup windows dev machines. I want to use winget but I don't see any easy way just to install winget using the commandline. You have to either use the win...

  8. How do I start PowerShell from Windows Explorer?

    In Windows 10 both the command prompt and the powershell prompt can be found via the menu bar, for both non-admin and admin. These options will have its folder set to the currently selected folder from …

  9. cmd - "rm -rf" equivalent for Windows? - Stack Overflow

    (For example, styled-components uses rm command in their post install scripts) If you want to just use the rm command, you can easily use the bash and pass the arguments. So yes, you can use the 'rm' …

  10. working directory - How do I run a PowerShell script as administrator ...

    Feb 25, 2021 · I also tried this "powershell.exe -ExecutionPolicy Bypass -NoExit -File "C:\project\test.ps1" " I can run in normal way but cannot run as administrator, because when I run …