About 50 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-Shift-ENTER.

  3. windows - Login as admin into powershell - Super User

    Aug 10, 2023 · Is there a way to get admin permissions in PowerShell while being logged in to the terminal? Linux has "sudo" or "login as root" to get those priviledges but I couldn't find anything …

  4. how to run a powershell script as administrator - Super User

    Feb 12, 2010 · A shortcut to script.ps1 works, as does a shortcut to powershell.exe -f script.ps1, but the latter can be set to run as administrator (see powershell.exe /? for the explanation of the -f or -File …

  5. Run a PowerShell script from a cmd batch as admin

    Jan 17, 2022 · 8 In Windows PowerShell (see bottom section for PowerShell (Core) 7+), using Start-Process -Verb RunAs to launch a command with elevation (as admin), invariably uses …

  6. powershell - Run Invoke-Command in remote computer as …

    Nov 26, 2020 · 6 I'm trying to run invoke-command to launch a powershell script in a powershell file on a remote computer. I'm using the credentials for a user with Administrator privilege. The command …

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

    Jun 21, 2020 · Then hit Win+Ctrl+Shift+1 to open it as admin. If you really must launch Windows Terminal from the command line from within Windows Terminal then create a task in the Task …

  8. powershell - I want to run Power Shell script with admin privileges ...

    Run this command of a PowerShell console: Start-Process powershell -Verb runAs Run your script from PowerShell like this: PowerShell -f C:\ScriptPath For more details, you can check this StackOverflow …

  9. Microsoft Graph PowerShell requires 'admin' consent for User.Read.All ...

    Jun 3, 2022 · Microsoft Graph permissions reference You can see that the User.Read.All delegated permission is one that does require admin consent User.Read.All permission reference There's no …

  10. How to setup a Powershell Script in Windows Task Scheduler with …

    Jun 7, 2020 · Task scheduler usually accepts cmd code with start a program so try making the program/script part be powershell (there is a cmd command called powershell) and arguments be …