Skip to content

Commit 2ff130a

Browse files
authored
Update about_PowerShell_exe.md to match .exe help
Change paragraph on -File needing to be last parameter if it's for a script to match help output in console for PowerShell.exe.
1 parent d0caf6b commit 2ff130a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ because it has no special meaning to the current **cmd.exe** shell. The
138138
**Command** parameter, since there it will be interpreted as PowerShell code.
139139

140140
When the value of **File** is a file path, **File** _must_ be the last
141-
parameter specified because any characters typed after the command are
142-
interpreted as the command arguments.
141+
parameter in the command because any characters typed after the **File**
142+
parameter name are interpreted as the script file path followed by the script
143+
parameters.
143144

144145
You can include the script parameters and values in the value of the **File**
145146
parameter. For example: `-File .\Get-Script.ps1 -Domain Central`

0 commit comments

Comments
 (0)