Skip to content

Commit 86f5654

Browse files
Update docs/powershell/run-windows-powershell-steps-in-sql-server-agent.md
Co-authored-by: William Assaf MSFT <wiassaf@microsoft.com>
1 parent a873cb8 commit 86f5654

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/powershell/run-windows-powershell-steps-in-sql-server-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Each SQL Server Agent job step that runs PowerShell with the **sqlps** module la
7777
```cmd
7878
PowerShell.exe -Command "& {&SQLCmd.exe -S $(ESCAPE_NONE(SRVR)) -Q 'select @@version'}"
7979
```
80-
- Example 3: Runs a PowerShell script (using PS7, which would have to be installed on the server). Note that the path to the script is local to the server where SQL Agent is running.
80+
- Example 3: Runs a PowerShell script (using `pwsh.exe`, the executable name in PowerShell 7.0, which must be installed on the server). Note that the path to the script is local to the server where SQL Agent is running.
8181
```cmd
8282
PWSH.exe -ExecutionPolicy RemoteSigned -File X:\MyScripts\script001.ps1
8383
```

0 commit comments

Comments
 (0)