Skip to content
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

Fix Spelling and Add words to dictionary #11514

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
17 changes: 16 additions & 1 deletion .vscode/cspell/psdocs/dictionaries/psdocs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ autogenerated
autogenerates
autoload
autoloaded
autoloading
autoloads
autosave
autosaved
Expand All @@ -36,13 +37,15 @@ callstack
carmonm
ccontains
CentOS
Certmgr
cheatsheet
cheatsheets
checkboxes
cimv2
clike
cmatch
cmdlet
cmdletbinding
cmdlets
cnotcontains
cnotlike
Expand All @@ -57,10 +60,12 @@ coreclr
CoreOS
CredSSP
creplace
cscript
customizations
DACL
datacenter
datacenters
DCOM
Debian
deserialization
deserialize
Expand Down Expand Up @@ -94,6 +99,7 @@ frontmatter
glob
globbing
globs
gpedit
GUID
hardlink
hashtable
Expand Down Expand Up @@ -147,14 +153,17 @@ notmatch
nslookup
NTFS
NTLM
ntoskrnl
nuget
nupkg
onboarding
openpublishing
openSUSE
pageable
parameterless
Passthru
sdwheeler marked this conversation as resolved.
Show resolved Hide resolved
PATHEXT
pbpaste
pltfrm
POSIX
PowerShell
Expand All @@ -168,6 +177,7 @@ prerelease
prereleases
psadapted
psbase
pscredential
pscustomobject
PSES
psextended
Expand Down Expand Up @@ -196,6 +206,7 @@ remoting
reparse
RHEL
RIPEMD160
robocopy
runbook
runbooks
runspace
Expand Down Expand Up @@ -226,14 +237,14 @@ Snover
SPACEBAR
Sqlcmd
SQLPS
SQLSERVER
stepover
struct
subcontainer
subcontainers
subexpression
subexpressions
subfolder
subfolder
subfolders
subkey
subkeys
Expand All @@ -250,6 +261,7 @@ taskbar
timespan
Titlecase
TMPDIR
Traceroute
triaged
Ubuntu
UMCI
Expand All @@ -272,6 +284,7 @@ unregistering
unregisters
untrusted
updateable
UPDATECHECK
USERMODE
USERROLE
userspace
Expand All @@ -285,4 +298,6 @@ WinCompat
wmicimv2
workgroup
workgroups
wscript
wwwroot
xclip
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ in the `bash` process, outside of the PowerShell host, the output isn't
affected by **OutputRendering**.

```bash
pwsh -noprofile -command 'Get-Childitem' > out.txt
pwsh -noprofile -command 'Get-ChildItem' > out.txt
```

When you inspect the contents of `out.txt` you see the ANSI escape sequences.
Expand All @@ -239,7 +239,7 @@ By contrast, when redirection occurs within the PowerShell session,
**OutputRendering** affects the redirected output.

```bash
pwsh -noprofile -command 'Get-Childitem > out.txt'
pwsh -noprofile -command 'Get-ChildItem > out.txt'
```

When you inspect the contents of `out.txt` there are no ANSI escape sequences.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ following example, the negative value can't be cast to an unsigned integer, and
the unsigned integer is too large to be cast to `Int32`:

```powershell
([int32]::minvalue + [uint32]::maxvalue).gettype().fullname
([int32]::minvalue + [uint32]::maxvalue).GetType().FullNname
sdwheeler marked this conversation as resolved.
Show resolved Hide resolved
```

```output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,11 @@ PS> .\Update-Month.ps1

.EXAMPLE

PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv
PS> .\Update-Month.ps1 -InputPath C:\Data\January.csv

.EXAMPLE

PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv -outputPath `
PS> .\Update-Month.ps1 -InputPath C:\Data\January.csv -outputPath `
C:\Reports\2009\January.csv
#>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ A single-quoted here-string that uses the `ConvertFrom-StringData` cmdlet:

```powershell
DATA {
ConvertFrom-StringData -stringdata @'
ConvertFrom-StringData -StringData @'
Text001 = Windows 7
Text002 = Windows Server 2008 R2
'@
Expand All @@ -184,7 +184,7 @@ A double-quoted here-string that uses the `ConvertFrom-StringData` cmdlet:

```powershell
DATA {
ConvertFrom-StringData -stringdata @"
ConvertFrom-StringData -StringData @"
Msg1 = To start, press any key.
Msg2 = To exit, type "quit".
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ ${function:Clear-Host}
This command gets the `man` function from the `Function:` drive. It uses the
`Get-Item` cmdlet to get the function. The pipeline operator (`|`) sends the
result to `Format-Table`. The `-Wrap` parameter directs text that does not fit
on the line onto the next line. The `-Autosize` parameter resizes the table
on the line onto the next line. The `-AutoSize` parameter resizes the table
columns to accommodate the text.

```powershell
Get-Item -Path man | Format-Table -Wrap -Autosize
Get-Item -Path man | Format-Table -Wrap -AutoSize
```

### Working with Function provider paths
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ key. To scroll through a list of values, press the <kbd>Tab</kbd> key again.

- [about_Command_Syntax](about_Command_Syntax.md)
- [about_Path_Syntax](about_Path_Syntax.md)
- [about_PSReadline](../../PSReadline/About/about_PSReadline.md)
- [about_PSReadLine](../../PSReadline/About/about_PSReadline.md)
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ PowerShell supports configuring two categories of logging:
```powershell
$psrl = Get-Module PSReadLine
$psrl.LogPipelineExecutionDetails = $true
Get-Module PSReadline | Select-Object Name, LogPipelineExecutionDetails
Get-Module PSReadLine | Select-Object Name, LogPipelineExecutionDetails
```

```Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PowerShell supports configuring two categories of logging:
```powershell
$psrl = Get-Module PSReadLine
$psrl.LogPipelineExecutionDetails = $true
Get-Module PSReadline | Select-Object Name, LogPipelineExecutionDetails
Get-Module PSReadLine | Select-Object Name, LogPipelineExecutionDetails
```

```Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ This example stores a command in a string and executes it using the call
operator.

```
PS> $c = "get-executionpolicy"
PS> $c = "Get-ExecutionPolicy"
PS> $c
get-executionpolicy
Get-ExecutionPolicy
PS> & $c
AllSigned
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ function Measure-Lines {
}
foreach ($file in $Files) {
$result = [ordered]@{ }
$result.Add('File', $file.fullname)
$result.Add('File', $file.FullName)

$content = Get-Content -LiteralPath $file.fullname
$content = Get-Content -LiteralPath $file.FullName

if ($Lines) { $result.Add('Lines', $content.Length) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ shown above has a different way to force case sensitivity.
- For `Select-String`, use the **CaseSensitive** parameter.
- For operators that use regular expressions, use the case-sensitive version:
`-cmatch`, `-creplace`, or `-csplit`
- For the `switch` statement, use the `-casesensitive` option
- For the `switch` statement, use the `-CaseSensitive` option

## Character literals

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ running on the current system and saves them to a log file. The log filename is
created from the current date.

```powershell
$date = (get-date).dayofyear
get-service | out-file "$date.log"
$date = (Get-Date).DayOfYear
Get-Service | Out-File "$date.log"
```

To create this script, open a text editor or a script editor, type these
Expand Down Expand Up @@ -182,7 +182,7 @@ param ($ComputerName = $(throw "ComputerName parameter is required."))

function CanPing {
$error.clear()
$tmp = test-connection $computername -erroraction SilentlyContinue
$tmp = Test-Connection $computername -ErrorAction SilentlyContinue

if (!$?)
{write-host "Ping failed: $ComputerName."; return $false}
Expand All @@ -191,7 +191,7 @@ function CanPing {
}

function CanRemote {
$s = new-pssession $computername -erroraction SilentlyContinue
$s = New-PSSession $computername -ErrorAction SilentlyContinue

if ($s -is [System.Management.Automation.Runspaces.PSSession])
{write-host "Remote test succeeded: $ComputerName."}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ a certificate file in the file system directory.
At the PowerShell prompt, type:

```powershell
Get-ChildItem cert:\CurrentUser\my -codesigning
Get-ChildItem cert:\CurrentUser\my -CodeSigning
```

This command uses the PowerShell Certificate provider to view information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ PowerShell has the following type operators:
- `-is` |Returns TRUE when the input is an instance of the specified .NET type.

```powershell
(get-date) -is [DateTime] # Result is True
(Get-Date) -is [DateTime] # Result is True
```

- `-isnot`|Returns TRUE when the input not an instance of the specified.NET type.

```powershell
(get-date) -isnot [DateTime] # Result is False
(Get-Date) -isnot [DateTime] # Result is False
```

- `-as` |Converts the input to the specified .NET type.
Expand Down Expand Up @@ -155,7 +155,7 @@ False
PS> 32 -is "int"
True

PS> (get-date) -is [DateTime]
PS> (Get-Date) -is [DateTime]
True

PS> "12/31/2007" -is [DateTime]
Expand All @@ -180,25 +180,25 @@ return **System.Globalization.CultureInfo** objects, a collection of these
objects is a System.Object array.

```powershell
PS> (get-culture) -is [System.Globalization.CultureInfo]
PS> (Get-Culture) -is [System.Globalization.CultureInfo]
True

PS> (get-uiculture) -is [System.Globalization.CultureInfo]
PS> (Get-UICulture) -is [System.Globalization.CultureInfo]
True

PS> (get-culture), (get-uiculture) -is [System.Globalization.CultureInfo]
PS> (Get-Culture), (Get-UICulture) -is [System.Globalization.CultureInfo]
False

PS> (get-culture), (get-uiculture) -is [Array]
PS> (Get-Culture), (Get-UICulture) -is [Array]
True

PS> (get-culture), (get-uiculture) | foreach {
PS> (Get-Culture), (Get-UICulture) | foreach {
$_ -is [System.Globalization.CultureInfo])
}
True
True

PS> (get-culture), (get-uiculture) -is [Object]
PS> (Get-Culture), (Get-UICulture) -is [Object]
True
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ For more information about `Update-TypeData`, see
[Update-TypeData](xref:Microsoft.PowerShell.Utility.Update-TypeData).

```powershell
Update-Typedata -PrependPath $PSHOME\MyTypes.ps1xml
Update-TypeData -PrependPath $PSHOME\MyTypes.ps1xml
```

To test the change, run a `Get-ChildItem` command to get the PowerShell.exe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ a wildcard in paths, but `Get-ChildItem` does not attempt to resolve any
wildcards in the values of the `-LiteralPath` parameter.

```powershell
Get-ChildItem -Literalpath ?
Get-ChildItem -LiteralPath ?
```

### Get ReadOnly and Constant variables
Expand Down
2 changes: 1 addition & 1 deletion reference/7.5/Microsoft.PowerShell.Core/Get-Command.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ This command uses the **ArgumentList** and **Syntax** parameters to get the synt
that the Certificate Provider adds to the session.

```powershell
Get-Command -Name Get-Childitem -Args Cert: -Syntax
Get-Command -Name Get-ChildItem -Args Cert: -Syntax
```

When you compare the syntax displayed in the output with the syntax that is displayed when you omit
Expand Down
2 changes: 1 addition & 1 deletion reference/7.5/Microsoft.PowerShell.Core/Get-Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ in Windows PowerShell 3.0.
### Example 6: Group all modules by name

```powershell
Get-Module -ListAvailable -All | Format-Table -Property Name, Moduletype, Path -Groupby Name
Get-Module -ListAvailable -All | Format-Table -Property Name, ModuleType, Path -GroupBy Name
```

```Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $sessionConfiguration = @{
Register-PSSessionConfiguration @sessionConfiguration
```

To use this configuration, type `New-PSSession -ConfigurationName newshell`.
To use this configuration, type `New-PSSession -ConfigurationName NewShell`.

### Example 2: Register a MaintenanceShell session configuration

Expand All @@ -120,7 +120,7 @@ This example registers the **AdminShell** session configuration.

The `$sessionParams` variable is a hashtable containing all the parameter values. This hashtable is
passed to the cmdlet using PowerShell splatting. The `Register-PSSessionConfiguration` command uses
the **SecurityDescritorSDDL** parameter to specify the SDDL in the value of the `$sddl` variable and
the **SecurityDescriptorSDDL** parameter to specify the SDDL in the value of the `$sddl` variable and
the **MaximumReceivedObjectSizeMB** parameter to increase the object size limit. It also uses the
**StartupScript** parameter to specify a script that configures the session.

Expand Down
Loading