About 125,000 results
Open links in new tab
  1. 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.

  2. How do I run a PowerShell script when the computer starts?

    102 I have a PowerShell script that monitors an image folder. I need to find a way to automatically run this script after the computer starts. I already tried the following methods, but I couldn't get …

  3. How to run a PowerShell script from a batch file - Stack Overflow

    Rather than hard-coding the entire path to the PowerShell script though, I recommend placing the batch file and PowerShell script file in the same directory, as my blog post describes.

  4. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · This results in the current script being passed to a new powershell process in Administrator mode (if current User has access to Administrator mode and the script is not …

  5. How to run a PowerShell script without displaying a window?

    Jan 28, 2015 · How is it possible to run a PowerShell script without displaying a window or any other sign to the user? In other words, the script should run quietly in the background without …

  6. How do I execute a PowerShell script automatically using …

    May 30, 2014 · I have one PowerShell script which sends emails. I want to execute that script automatically, every 1 minute. How can I do it, using task scheduler? Currently I have created …

  7. PowerShell launch script in new instance - Stack Overflow

    I know this can be done with 'Start-Process powershell' as found in several threats. This does open an new PowerShell window but doesn't execute the code block properly of the …

  8. Running PowerShell as another user, and launching a script

    Mar 11, 2015 · Start-Process -FilePath "powershell" -Verb RunAsUser will pop up a dialog for the user to enter the credentials of the target user.

  9. How to execute a PowerShell script using C# - Stack Overflow

    Apr 28, 2020 · Here's the full code that will run a PowerShell script when you create a console app in Visual Studio that will ByPass any restrictions. Just change the ps1File variable to your …

  10. Windows sandbox and Powershell : how to make script executable …

    Aug 1, 2022 · Logon.cmd - Contents powershell -executionpolicy RemoteSigned -command "start powershell {-noexit -File C:\users\WDAGUtilityAccount\Documents\Scripts\script.ps1}" …