Skip to content

Commit 299df22

Browse files
authored
Merge pull request puppetlabs#209 from Iristyle/maint/minor-PowerShell-README-syntax-updates
(maint) Minor PowerShell syntax updates to README
2 parents 8b56d04 + 41cdb75 commit 299df22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The powershell module adapts the Puppet [exec](http://docs.puppet.com/references
3434

3535
~~~ puppet
3636
exec { 'RESOURCENAME':
37-
command => '$(SOMECOMMAND)',
37+
command => 'SOMECOMMAND',
3838
provider => powershell,
3939
}
4040
~~~
@@ -47,7 +47,7 @@ For instance, to rename the Guest account:
4747

4848
~~~ puppet
4949
exec { 'rename-guest':
50-
command => '$(Get-WMIObject Win32_UserAccount -Filter "Name=\'guest\'").Rename("new-guest")',
50+
command => '(Get-WMIObject Win32_UserAccount -Filter "Name=\'guest\'").Rename("new-guest")',
5151
unless => 'if (Get-WmiObject Win32_UserAccount -Filter "Name=\'guest\'") { exit 1 }',
5252
provider => powershell,
5353
}

0 commit comments

Comments
 (0)