About 50 results
Open links in new tab
  1. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Execute the Start-Process Powershell a little differently than you were executing it for it to take the action of the script logic while running elevated too. Add the ExecutionPolicy …

  2. windows - run powershell command from cmd - Super User

    May 24, 2016 · 0 I placed the following commands into a batch file to reset Edge (which has been giving some problems from time to time). The batch file was then run at Administrator level. …

  3. How to Execute Powershell Script AS Powershell 7 from Command …

    May 28, 2020 · Name Value ---- ----- PSVersion 5.1.14393.3471 PSEdition Desktop How can I execute a Powershell script AS Powershell 7 instead of Powershell 5?

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

    Feb 12, 2010 · I use it to start the powershell console as administrator. A similar result is to create a ps1 file with Start-Process powershell.exe -Verb RunAs.

  5. Run Powershell script when you open Powershell - Super User

    Mar 8, 2015 · Is it possible to run a Powershell script when you run Powershell? As in, double click the Powershell icon and open the window. Is there some type of "auto-run" setting …

  6. Run PowerShell Command 'Start-Process' from Windows Shortcut

    Nov 30, 2022 · I have a working PowerShell command that I want to execute from a Windows shortcut. The command is: Start-Process -filepath "C:\Program Files\One Identity\Active …

  7. Is there any way to remove certain pinned Apps / links from …

    Nov 24, 2021 · I need to remove certain pinned Apps (Microsoft Edge, Microsoft Store, Prime Video etc.) from the Windows 11 taskbar and start menu with powershell. I have done lots of …

  8. windows - Different ways to start PowerShell - Super User

    May 22, 2018 · A .exe file found by some instances of PowerShell and not others got me questioning what is the difference between: Starting PowerShell in a folder from the explorer …

  9. What is the ampersand sign (&) before commands in PowerShell?

    Feb 9, 2023 · You can use the call operator to execute scripts using their filenames. The example below shows a script filename that contains spaces. When you try to execute the script, …

  10. powershell - How to pass commands into the shell opened in new …

    Jun 26, 2020 · start wt '-p "Windows PowerShell" --title "list files and goto SO" ' However, I cannot pass in any additional commands to get executed in the Windows Terminal "Windows …