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

  2. Home | PSXDEV

    After over 13 years of PSXDEV.NET, this website has been temporarily shutdown for a several weeks due to both high operating costs and it causing our server CPU to be at 100% core …

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

    I have a batch script which runs a ps1 file but with a profile. That profile.ps1 outputs text when it loads. In some scripts, I want to disable the output of that text if I don't need it. For that, I …

  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. python - 'virtualenv' won't activate on Windows - Stack Overflow

    Scripts\activate.ps1 instead of activate.bat which doesn't work in PowerShell any more. Also deactivate it by just typing

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

    Powershell.exe -executionpolicy remotesigned -File C:\Users\SE\Desktop\ps.ps1 Otherwise PowerShell considers the arguments a line to execute and while Set-ExecutionPolicy is a …

  7. How can I get the current PowerShell executing file?

    In function: MyInvocation.ScriptName: C:\temp\test.ps1 script:MyInvocation.MyCommand.Name: test.ps1 MyInvocation.MyCommand.Name: printme Notice how the above accepted answer …

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

  9. Is there a way to make a PowerShell script work by double clicking …

    11 You may set the default file association of ps1 files to be powershell.exe which will allow you to execute a powershell script by double clicking on it. In Windows 10, Right click on a ps1 file …

  10. python - virtualenv in PowerShell? - Stack Overflow

    Now, just use activate.ps1 (rather than activate.bat) to activate from a Powershell environment. Original answer: Here 's a post that contains a Powershell script that allows you to run batch …