web analytics

How to run a PowerShell script?

Options

codeling 1599 - 6654
@2019-04-18 09:27:40
  1. Launch Windows PowerShell, and wait a moment for the PS command prompt to appear
  2. Navigate to the directory where the script lives

    PS> cd C:\my_path\yada_yada\ (enter)
  3. Execute the script:

    PS> .\run_import_script.ps1 (enter)

Or: you can run the PowerShell script from cmd.exe like this:

powershell -noexit "& ""C:\my_path\yada_yada\run_import_script.ps1"""

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com