About 50 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 when i save …

  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 MSDN help

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

    Jun 27, 2020 · 48 .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 modules; …

  4. ps1 cannot be loaded because running scripts is disabled on this system

    May 30, 2017 · ps1 cannot be loaded because running scripts is disabled on this system Asked 9 years, 4 months ago Modified 11 months ago Viewed 1.0m times

  5. How to fix "can't load file ...\Activate.ps1 because script execution ...

    Dec 25, 2023 · How to fix "can't load file ...\Activate.ps1 because script execution is disabled on this system" when trying to setup venv for Python on VS Code?

  6. What’s in your PowerShell `profile.ps1` file? - Stack Overflow

    Sep 26, 2008 · The main profile.ps1 sets the subfolder with the name Addons as a PSDrive, and then finds all .ps1 files underneath that folder to load. I quite like the go command, which stores a …

  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. run powershell .ps1 to be embedded in a cmd or .bat file

    Apr 2, 2025 · Why do you want to build another script file? You can just copy the ps1 file into the directory with the files to be processed, and then double click on the ps1 script file.

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

    There's a PowerShell script named itunesForward.ps1 that makes iTunes fast forward 30 seconds: $iTunes = New-Object -ComObject iTunes.Application if ($iTunes ...

  10. Powershell ps1 file "is not recognized as a cmdlet, function, operable ...

    PS> .\listAllPaths.ps1 c:\ *.pdf testingPDF.txt As Matt alluded to, by declaring the function, when you called the script, it would create the function and then exit. A PowerShell script is basically a function …