About 277,000 results
Open links in new tab
  1. How to run powershell script from .ps1 file? - Stack Overflow

    Oct 23, 2019 · I'm trying to automate the execution of a simple PS script (to delete a certain .txt file). Obviously, I'm new to powershell :) When I run the code in shell, it works flawless. But …

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

    How do I run a PowerShell script? I have a script named myscript.ps1 I have all the necessary frameworks installed I set that execution policy thing I have followed the instructions on this …

  3. What are the different PowerShell file types? - Stack Overflow

    Jun 27, 2020 · .ps1 files are PowerShell scripts; it is the most common type of PowerShell file and one that is the most like other shell scripts like .sh, .bat files .psm1 files are PowerShell …

  4. Call PowerShell script PS1 from another PS1 script inside …

    I want call execution for a myScript1.ps1 script inside a second myScript2.ps1 script inside Powershell ISE. The following code inside MyScript2.ps1, works fine from Powershell …

  5. Adding git branch on the Bash command prompt - Stack Overflow

    See commit 8976500 by Richard Hansen (richardhansen): Both bash and zsh subject the value of PS1 to parameter expansion, command substitution, and arithmetic expansion. Rather than …

  6. Why are my PowerShell scripts not running? - Stack Overflow

    Aug 14, 2008 · This is a fairly terrifying answer. For one, it permanently changes Powershell's default security level in possibly undesirable (and insecure) ways. For another, it fails to even …

  7. How to fix "running scripts is disabled on this system"?

    Nov 1, 2020 · This is because of Execution Policy. This defines how powershell scripts will run. In Default windows desktops, it is Restricted, not allowing any scripts (signed or unsigned) only …

  8. How to pass command-line arguments to a PowerShell ps1 file

    Aug 18, 2009 · To add to EBGreen's comment, the basic security problem that PowerShell's tries to avoid is folks double-clicking on PS1 files attached to email and having the script run. That's …

  9. How can I pass an argument to a PowerShell script?

    powershell.exe itunesForward.ps1 Is it possible to pass an argument from the command line and have it applied in the script instead of the hardcoded 30 seconds value?

  10. Windows Powershell policy execution bypass - Stack Overflow

    Apr 26, 2021 · In order to permanently change the execution policy, you need to run your powershell or registry change elevated, i.e Run as administrator. Additionally, you may have to …