Skip to content

Commit f95e4eb

Browse files
authored
Merge pull request #116 from ThmsRynr/patch-3
Update Naming-Conventions.md
2 parents 839e032 + 819e626 commit f95e4eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Style-Guide/Naming-Conventions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Every PowerShell scripter learns the actual command names, but different people
88

99
```PowerShell
1010
# Do not write:
11-
gwmi -Class win32_service
11+
gps -Name Explorer
1212
1313
# Instead write:
14-
Get-WmiObject -Class Win32_Service
14+
Get-Process -Name Explorer
1515
```
1616

1717
#### Use full parameter names.
@@ -20,10 +20,10 @@ Because there are so many commands in PowerShell, it's impossible for every scri
2020

2121
```PowerShell
2222
# Do not write:
23-
Get-WmiObject win32_service name,state
23+
Get-Process Explorer
2424
2525
# Instead write:
26-
Get-WmiObject -Class win32_service -Property name,state
26+
Get-Process -Name Explorer
2727
```
2828

2929
#### Use full, explicit paths when possible.

0 commit comments

Comments
 (0)