Skip to content

Fix incorrect case/capitalization in reference documents (17/38) #11924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ as follows:
- `s` (system)

For more information about the mode flags, see
[about_Filesystem_Provider](../Microsoft.PowerShell.Core/About/about_Filesystem_Provider.md#attributes-flagsexpression).
[about_FileSystem_Provider](../Microsoft.PowerShell.Core/About/about_Filesystem_Provider.md#attributes-flagsexpression).

### Example 2: Get child item names in a directory

Expand Down Expand Up @@ -357,8 +357,8 @@ point. In PowerShell, this information is available from the **Target** property
object returned by `Get-ChildItem`.

```powershell
PS D:\> New-Item -ItemType Junction -Name tmp -Target $env:TEMP
PS D:\> Get-ChildItem | Select-Object name,*target
PS D:\> New-Item -ItemType Junction -Name tmp -Target $Env:TEMP
PS D:\> Get-ChildItem | Select-Object Name, *Target

Name Target
---- ------
Expand Down Expand Up @@ -979,7 +979,7 @@ The cmdlet outputs this type when accessing the `Env:` drive.

### System.IO.FileInfo

The cmdlet outputs these types when accessing the Filesystem drives.
The cmdlet outputs these types when accessing the FileSystem drives.

### System.Management.Automation.FunctionInfo

Expand Down
16 changes: 8 additions & 8 deletions reference/5.1/Microsoft.PowerShell.Management/Get-HotFix.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ Get-HotFix [-Description <String[]>] [-ComputerName <String[]>] [-Credential <PS

> **This cmdlet is only available on the Windows platform.**

The `Get-Hotfix` cmdlet uses the **Win32_QuickFixEngineering** WMI class to list hotfixes that are
The `Get-HotFix` cmdlet uses the **Win32_QuickFixEngineering** WMI class to list hotfixes that are
installed on the local computer or specified remote computers.

## EXAMPLES

### Example 1: Get all hotfixes on the local computer

The `Get-Hotfix` cmdlet gets all hotfixes installed on the local computer.
The `Get-HotFix` cmdlet gets all hotfixes installed on the local computer.

```powershell
Get-HotFix
Expand All @@ -56,14 +56,14 @@ Server01 Update KB4480056 NT AUTHORITY\SYSTEM 1/24/2019 00:

### Example 2: Get hotfixes from multiple computers filtered by a string

The `Get-Hotfix` command uses parameters to get hotfixes installed on remote computers. The results
The `Get-HotFix` command uses parameters to get hotfixes installed on remote computers. The results
are filtered by a specified description string.

```powershell
Get-HotFix -Description Security* -ComputerName Server01, Server02 -Credential Domain01\admin01
```

`Get-Hotfix` filters the output with the **Description** parameter and the string **Security** that
`Get-HotFix` filters the output with the **Description** parameter and the string **Security** that
includes the asterisk (`*`) wildcard. The **ComputerName** parameter includes a comma-separated
string of remote computer names. The **Credential** parameter specifies a user account that has
permission to access the remote computers and run commands.
Expand All @@ -81,7 +81,7 @@ $A | ForEach-Object { if (!(Get-HotFix -Id KB957095 -ComputerName $_))

The `$A` variable contains computer names that were obtained by `Get-Content` from a text file. The
objects in `$A` are sent down the pipeline to `ForEach-Object`. An `if` statement uses the
`Get-Hotfix` cmdlet with the **Id** parameter and a specific Id number for each computer name. If a
`Get-HotFix` cmdlet with the **Id** parameter and a specific Id number for each computer name. If a
computer doesn't have the specified hotfix Id installed, the `Add-Content` cmdlet writes the
computer name to a file.

Expand All @@ -93,7 +93,7 @@ This example gets the most recent hotfix installed on a computer.
(Get-HotFix | Sort-Object -Property InstalledOn)[-1]
```

`Get-Hotfix` sends the objects down the pipeline to the `Sort-Object` cmdlet. `Sort-Object` sorts
`Get-HotFix` sends the objects down the pipeline to the `Sort-Object` cmdlet. `Sort-Object` sorts
objects by ascending order and uses the **Property** parameter to evaluate each **InstalledOn**
date. The array notation `[-1]` selects the most recent installed hotfix.

Expand All @@ -104,7 +104,7 @@ date. The array notation `[-1]` selects the most recent installed hotfix.
Specifies a remote computer. Type the NetBIOS name, an Internet Protocol (IP) address, or a fully
qualified domain name (FQDN) of a remote computer.

When the **ComputerName** parameter isn't specified, `Get-Hotfix` runs on the local computer.
When the **ComputerName** parameter isn't specified, `Get-HotFix` runs on the local computer.

The **ComputerName** parameter doesn't rely on Windows PowerShell remoting. If your computer isn't
configured to run remote commands, use the **ComputerName** parameter.
Expand Down Expand Up @@ -196,7 +196,7 @@ You can pipe a string containing a computer name to this cmdlet.

## OUTPUTS

### System.Management.ManagementObject#root\CIMV2\Win32_QuickFixEngineering
### System.Management.ManagementObject#root\cimv2\Win32_QuickFixEngineering

This cmdlet returns objects representing the hotfixes on the computer.

Expand Down
6 changes: 3 additions & 3 deletions reference/5.1/Microsoft.PowerShell.Management/Get-Item.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ cmdlet with the PowerShell Registry provider to get registry keys and subkeys, b
`Get-ItemProperty` cmdlet to get the registry values and data.

```powershell
Get-Item HKLM:\Software\Microsoft\Powershell\1\Shellids\Microsoft.Powershell\
Get-Item HKLM:\Software\Microsoft\PowerShell\1\Shellids\Microsoft.PowerShell\
```

### Example 7: Get items in a directory that have an exclusion
Expand Down Expand Up @@ -527,7 +527,7 @@ The cmdlet outputs this type when accessing the `Env:` drive.

### System.IO.FileInfo

The cmdlet outputs these types when accessing the Filesystem drives.
The cmdlet outputs these types when accessing the FileSystem drives.

### System.Management.Automation.FunctionInfo

Expand Down Expand Up @@ -563,7 +563,7 @@ to get registry values and data. The registry values are considered to be proper
registry key.

This cmdlet is designed to work with the data exposed by any provider. To list the providers
available in your session, type `Get-PsProvider`. For more information, see
available in your session, type `Get-PSProvider`. For more information, see
[about_Providers](../Microsoft.PowerShell.Core/About/about_Providers.md).

## RELATED LINKS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ D 1211.06 123642.32 FileSystem D:\
This command gets the D: drive on the computer. Note that the drive letter in the command is not
followed by a colon.

### Example 3: Get all the drives that are supported by the Windows PowerShell file system provider
### Example 3: Get all the drives that are supported by the Windows PowerShell FileSystem provider

```
PS C:\> Get-PSDrive -PSProvider FileSystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ This command displays a list of all available PowerShell providers.
### Example 2: Display a list of all PowerShell providers that begin with specified letters

```powershell
Get-PSProvider f*, r* | Format-List
Get-PSProvider F*, R* | Format-List
```

This command displays a list of all PowerShell providers with names that begin with the letter `f`
or `r`.
This command displays a list of all PowerShell providers with names that begin with the letter `F`
or `R`.

### Example 3: Find snap-ins or module that added providers to your session

Expand All @@ -67,7 +67,7 @@ WSMan Microsoft.WSMan.Management
```

```powershell
Get-PSProvider | Where {$_.ModuleName -eq "Microsoft.PowerShell.Security"}
Get-PSProvider | where {$_.ModuleName -eq "Microsoft.PowerShell.Security"}
```

```Output
Expand All @@ -89,7 +89,7 @@ values of their Name, Module, and PSSnapin properties.
The second command uses the `Where-Object` cmdlet to get the providers that come from the
**Microsoft.PowerShell.Security** snap-in.

### Example 4: Resolve the path of the Home property of the file system provider
### Example 4: Resolve the path of the Home property of the FileSystem provider

```powershell
C:\> Resolve-Path ~
Expand All @@ -102,7 +102,7 @@ C:\Users\User01
```

```powershell
PS C:\> (get-psprovider FileSystem).home
PS C:\> (Get-PSProvider FileSystem).Home
```

```Output
Expand All @@ -111,7 +111,7 @@ C:\Users\User01

This example shows that the tilde symbol (`~`) represents the value of the **Home** property of the
FileSystem provider. The **Home** property value is optional, but for the **FileSystem** provider,
it is defined as `$env:HOMEDRIVE\$env:HOMEPATH` or `$HOME`.
it is defined as `$Env:HOMEDRIVE\$Env:HOMEPATH` or `$HOME`.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ though the default display lists them in kilobytes and megabytes.

```powershell
$A = Get-Process
$A | Get-Process | Format-Table -View priority
$A | Get-Process | Format-Table -View Priority
```

These commands list the processes on the computer in groups based on their priority class. The first
Expand Down Expand Up @@ -257,13 +257,13 @@ The second command gets the PowerShell process that is hosting the current sessi
### Example 10: Get all processes that have a main window title and display them in a table

```powershell
Get-Process | Where-Object {$_.mainWindowTitle} | Format-Table Id, Name, mainWindowtitle -AutoSize
Get-Process | Where-Object {$_.MainWindowTitle} | Format-Table Id, Name, MainWindowTitle -AutoSize
```

This command gets all the processes that have a main window title, and it displays them in a table
with the process ID and the process name.

The **mainWindowTitle** property is just one of many useful properties of the **Process** object
The **MainWindowTitle** property is just one of many useful properties of the **Process** object
that `Get-Process` returns. To view all of the properties, pipe the results of a `Get-Process`
command to the `Get-Member` cmdlet `Get-Process | Get-Member`.

Expand Down Expand Up @@ -476,7 +476,7 @@ of all of the properties of process objects, see
- **VM(M)**: The amount of virtual memory that the process is using, in megabytes. Virtual memory
includes storage in the paging files on disk.
- **CPU(s)**: The amount of processor time that the process has used on all processors, in seconds.
- **ID**: The process ID (PID) of the process.
- **Id**: The process ID (PID) of the process.
- **ProcessName**: The name of the process. For explanations of the concepts related to processes,
see the Glossary in Help and Support Center and the Help for Task Manager.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ display name finds network-related services even when the service name doesn't i
xmlprov, the Network Provisioning Service.

```powershell
Get-Service -Displayname "*network*"
Get-Service -DisplayName "*network*"
```

### Example 4: Get services that begin with a search string and an exclusion
Expand Down Expand Up @@ -119,7 +119,7 @@ This example gets services that have dependent services.
Get-Service |
Where-Object {$_.DependentServices} |
Format-List -Property Name, DependentServices, @{
Label="NoOfDependentServices"; Expression={$_.dependentservices.count}
Label="NoOfDependentServices"; Expression={$_.DependentServices.Count}
}
```

Expand Down Expand Up @@ -153,7 +153,7 @@ property, stopped services appear before running services. This happens because
To list running services first, use the **Descending** parameter of the `Sort-Object` cmdlet.

```powershell
Get-Service "s*" | Sort-Object status
Get-Service "s*" | Sort-Object Status
```

```Output
Expand All @@ -178,7 +178,7 @@ Running seclogon Secondary Logon

```powershell
Get-Service -Name "WinRM" -ComputerName "localhost", "Server01", "Server02" |
Format-Table -Property MachineName, Status, Name, DisplayName -auto
Format-Table -Property MachineName, Status, Name, DisplayName -Auto
```

```Output
Expand Down
4 changes: 2 additions & 2 deletions reference/5.1/Microsoft.PowerShell.Management/Join-Path.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ the `System\*` child path. It displays the same files and folders as `Get-ChildI
displays the fully qualified path to each item. In this command, the `Path` and `ChildPath` optional
parameter names are omitted.

### Example 4: Use Join-Path with the PowerShell registry provider
### Example 4: Use Join-Path with the PowerShell Registry provider

```powershell
PS HKLM:\> Join-Path -Path System -ChildPath *ControlSet* -Resolve
Expand Down Expand Up @@ -103,7 +103,7 @@ This command uses `Join-Path` to combine multiple path roots with a child path.
### Example 6: Combine the roots of a file system drive with a child path

```powershell
Get-PSDrive -PSProvider filesystem | ForEach-Object {$_.root} | Join-Path -ChildPath "Subdir"
Get-PSDrive -PSProvider FileSystem | ForEach-Object {$_.Root} | Join-Path -ChildPath "Subdir"
```

```output
Expand Down
14 changes: 7 additions & 7 deletions reference/5.1/Microsoft.PowerShell.Management/New-Item.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ This command creates a text file that is named "testfile1.txt" in the current di
follows the **Value** parameter is added to the file as content.

```powershell
New-Item -Path . -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."
New-Item -Path . -Name "testfile1.txt" -ItemType "File" -Value "This is a text string."
```

### Example 2: Create a directory
Expand All @@ -90,7 +90,7 @@ This command creates a directory named "Logfiles" in the `C:` drive. The **ItemT
specifies that the new item is a directory, not a file or other file system object.

```powershell
New-Item -Path "c:\" -Name "logfiles" -ItemType "directory"
New-Item -Path "C:\" -Name "logfiles" -ItemType "Directory"
```

### Example 3: Create a profile
Expand All @@ -112,7 +112,7 @@ For more information, see [about_Automatic_Variables](../Microsoft.PowerShell.Co
and [about_Profiles](../Microsoft.PowerShell.Core/About/about_Profiles.md).

```powershell
New-Item -Path $PROFILE -ItemType "file" -Force
New-Item -Path $PROFILE -ItemType "File" -Force
```

> [!NOTE]
Expand All @@ -128,7 +128,7 @@ instead of being specified in the value of **Name**. As indicated by the syntax,
is valid.

```powershell
New-Item -ItemType "directory" -Path "c:\ps-test\scripts"
New-Item -ItemType "Directory" -Path "C:\ps-test\scripts"
```

### Example 5: Create multiple files
Expand All @@ -137,7 +137,7 @@ This example creates files in two different directories. Because **Path** takes
you can use it to create multiple items.

```powershell
New-Item -ItemType "file" -Path "c:\ps-test\test.txt", "c:\ps-test\Logs\test.log"
New-Item -ItemType "File" -Path "C:\ps-test\test.txt", "C:\ps-test\Logs\test.log"
```

### Example 6: Use wildcards to create files in multiple directories
Expand Down Expand Up @@ -221,7 +221,7 @@ Mode LastWriteTime Length Name
### Example 9: Use the -Force parameter to overwrite existing files

This example creates a file with a value and then recreates the file using `-Force`. This overwrites
the existing file, as you can see by the length property.
the existing file, as you can see by the **Length** property.

```powershell
PS> New-Item ./TestFile.txt -ItemType File -Value 'This is just a test file'
Expand Down Expand Up @@ -676,7 +676,7 @@ Windows PowerShell includes the following aliases for `New-Item`:
- `ni`

`New-Item` is designed to work with the data exposed by any provider. To list the providers
available in your session, type `Get-PsProvider`. For more information, see
available in your session, type `Get-PSProvider`. For more information, see
[about_Providers](../Microsoft.PowerShell.Core/About/about_Providers.md).

## RELATED LINKS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ $newValue = New-ItemProperty -Path "HKLM:\SOFTWARE\ContosoCompany\" -Name 'HereS
This is text which contains newlines
It can also contain "quoted" strings
"@
$newValue.multistring
$newValue.HereString
```

```output
Expand All @@ -111,7 +111,7 @@ The example shows how to use an array of values to create the `MultiString` valu

```powershell
$newValue = New-ItemProperty -Path "HKLM:\SOFTWARE\ContosoCompany\" -Name 'MultiString' -PropertyType MultiString -Value ('a','b','c')
$newValue.multistring[0]
$newValue.MultiString[0]
```

```output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ as follows:
- `s` (system)

For more information about the mode flags, see
[about_Filesystem_Provider](../Microsoft.PowerShell.Core/About/about_Filesystem_Provider.md#attributes-flagsexpression).
[about_FileSystem_Provider](../Microsoft.PowerShell.Core/About/about_Filesystem_Provider.md#attributes-flagsexpression).

### Example 2: Get child item names in a directory

Expand Down Expand Up @@ -398,8 +398,8 @@ point. In PowerShell, this information is available from the **LinkTarget** prop
filesystem object returned by `Get-ChildItem` and is displayed in the default output.

```powershell
PS D:\> New-Item -ItemType Junction -Name tmp -Target $env:TEMP
PS D:\> Get-ChildItem | Select-Object name, LinkTarget
PS D:\> New-Item -ItemType Junction -Name tmp -Target $Env:TEMP
PS D:\> Get-ChildItem | Select-Object Name, LinkTarget

Name LinkTarget
---- ----------
Expand Down Expand Up @@ -991,7 +991,7 @@ The cmdlet outputs this type when accessing the `Env:` drive.

### System.IO.FileInfo

The cmdlet outputs these types when accessing the Filesystem drives.
The cmdlet outputs these types when accessing the FileSystem drives.

### System.Management.Automation.FunctionInfo

Expand Down
Loading