About 56 results
Open links in new tab
  1. 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 …

  2. 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).

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

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

    The MSDN/Technet URL now redirects to a page saying "The Windows PowerShell 1.0 Owner’s Manual has been retired. For the most up-to-date Windows PowerShell content, go to Using Windows …

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

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

    Jan 17, 2022 · I have a PowerShell setup which I want to execute on a computer where perhaps the execution policy is restricted and requires admin rights. Ideally, I could wrap it in a cmd batch like …

  7. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Your domain admin user will require access permissions (as a minimum, read only) to the script you are calling even when they are not elevated You are currently checking for …

  8. Force a PowerShell script to be run as administrator

    Jun 26, 2013 · I have written a powershell script that installs and starts some services. It will only work if the script is run as administrator. Is there any way force a script to have those privileges?

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

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