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

    Sep 12, 2016 · Here is how to run a elevated powershell command and collect its output form within a windows batch file in a single command (i.e not writing a ps1 powershell script).

  2. How open PowerShell as administrator from the run window

    Here's one way to open powershell (or run any command) as admin: press the Windows key (or control-escape) to bring up the Start Menu. Type the command you want to run. Press Control …

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

    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 …

  4. windows - How to run a process as non-admin from an elevated …

    Apr 11, 2015 · My question is specifically, is there any straightforward way to do this in PowerShell? i.e. you are in an elevated PS console and want to run a process as non-admin.

  5. 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 …

  6. 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 …

  7. Opening up Windows Terminal with elevated privileges, from …

    Jun 21, 2020 · The simplest approach will work: Pin Windows Terminal as the first item on the task bar. Then hit Win+Ctrl+Shift+1 to open it as admin. If you really must launch Windows …

  8. powershell - How to view user privileges using windows cmd?

    Jul 23, 2012 · 46 I am trying to view the user privileges using the command prompt in Windows. User account & User privileges such as: SeBatchLogonRight SeDenyBatchLogonRight …

  9. How to run some CMD commands on Windows 10 as …

    Nov 1, 2018 · This will prompt the user to allow the process to be run as Admin anytime the cmdlet is called. You can simplify things a bit by using node-powershell if desired.

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

    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 …