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

    Oct 23, 2019 · There are several ways to run a .ps1 file. The simplest way is to right-click the file and choose 'Run with PowerShell'. As others have suggested, you can also run your .ps1 file …

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

    \Nico\Scripts\Script1.ps1 \Script2.ps1 \Problem1\Solution1.ps1 \ParameterForSolution1.config \Problem2\Solution2.ps1 \ParameterForSolution2.config Solutions1 and Solutions2 call the …

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

    Aug 18, 2009 · I wanted to automate the "Unblocking" of files downloaded from the internet in Windows, so I got my .ps1 file working, but when I wanted to make it as a "right-click" menu …

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

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

    If your script is named with the .ps1 extension and you're in a PowerShell window, you just run ./myscript.ps1 (assuming the file is in your working directory). This is true for me anyway on …

  6. How to output something in PowerShell - Stack Overflow

    Jan 11, 2010 · then, if you call the script with redirected output, something like yourscript.ps1 > out.txt, you will get test2 on the screen test1\ntest3\n in the "out.txt". Note that "test3" and the …

  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 do I get help messages to appear for my Powershell script ...

    I have a powershell script (setup.ps1), that we use as the entry point for our development environment setup scripts. It takes a parameter: param( …

  9. What is the purpose of the *.psm1 files in a Powershell module?

    Apr 27, 2019 · Listing *.ps1 files in NesteModules vs. dot-sourcing them from the RootModule. While there should be no difference in functionality, using a *.psm1 RootModule to dot-source …

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

    In my particular use-case, I wanted to access the arguments from the profile which ignored the params, and simply checked for the existence of an argument (essentially a switch).

Refresh