You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ Puppet provides a built-in `exec` type that is capable of executing commands. Th
26
26
27
27
### Requirements
28
28
29
-
The `powershell` provider requires [Windows PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-5.1) and have `powershell.exe` available in the system PATH. Note that most Windows operating systems already have Windows PowerShell installed.
29
+
The `powershell` provider requires you install [Windows PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-5.1) and have `powershell.exe` available in the system PATH. Note that most Windows operating systems already have Windows PowerShell installed.
30
30
31
31
The `pwsh` provider requires you install [PowerShell Core](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-6) and make `pwsh` available either in the system PATH or specified in the `path` parameter.
32
32
33
-
For example, when PowerShell Core is installed in `/usr/alice/pscore`the following manifest is needed:
33
+
For example, when you install PowerShell Core in `/usr/alice/pscore`, you need the following manifest:
34
34
35
35
~~~puppet
36
36
exec { 'RESOURCENAME':
@@ -141,9 +141,9 @@ However, to produce output from a script, use the `Write-` prefixed cmdlets such
141
141
142
142
#### Provider
143
143
144
-
* powershell: Adapts the Puppet `exec` resource to run [Windows PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-5.1) commands.
144
+
*`powershell`: Adapts the Puppet `exec` resource to run [Windows PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-5.1) commands.
145
145
146
-
* pwsh: Adapts the Puppet `exec` resource to run [PowerShell Core](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-6) commands.
146
+
*`pwsh`: Adapts the Puppet `exec` resource to run [PowerShell Core](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-6) commands.
147
147
148
148
#### Parameters
149
149
@@ -209,8 +209,12 @@ Runs the `exec`, unless the command returns 0. Valid options: String. Default: U
209
209
210
210
## Limitations
211
211
212
-
* The `powershell` provider is only supported on Windows Server 2008 and above, and Windows 7 and above.
0 commit comments