Skip to content

Merging latest into Live #1956

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 122 commits into from
Dec 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
2a3ccf3
Update the example of `Where-Object -IsNot` (#1841)
matt9ucci Nov 7, 2017
f778a37
Update Example 5 in Group-Object.md (#1845)
matt9ucci Nov 8, 2017
1357977
removing @{Text=} tags
Nov 7, 2017
efba651
fixing UTF8 characters
Nov 7, 2017
b93a6ba
removed empty H3
Nov 7, 2017
ec505bf
added H3 for input and output types
Nov 7, 2017
c2abb44
removed mangled UTF8 character
Nov 8, 2017
bbffd77
updating Out-* commands with -NoNewLine per Issue 1739
Nov 9, 2017
2bdb9e6
Fix the example of `Format-Table -DisplayError` (#1848)
matt9ucci Nov 9, 2017
61cb77d
Fix the example of `Format-Wide -DisplayError` (#1850)
matt9ucci Nov 10, 2017
882b0e8
Fix the example of `Format-Custom -DisplayError` (#1849)
matt9ucci Nov 10, 2017
67db02a
updating set-acl docs per PR#901
Nov 7, 2017
9799c2b
using semantic link breaks
Nov 10, 2017
a5f21c5
Fix the example of `Format-Wide -ShowError` (#1851)
matt9ucci Nov 13, 2017
9467262
Fixed Test-ScriptFileInfo example (#1852)
alan-null Nov 13, 2017
b5d12a3
fixing issue 1768
Nov 7, 2017
b04197f
Formatting, example fix for Body parameter (#1847)
ebrucucen Nov 13, 2017
b6b156a
fixing style consistency across articles
Nov 13, 2017
e03a354
fixing conflicts
Nov 13, 2017
07b21b0
Fix example numbers in Resume-Job.md (#1857)
matt9ucci Nov 14, 2017
348ed70
Fixes typo $WebSiteName in separatingEnvData.md (#1856)
DexterPOSH Nov 14, 2017
b04a75a
Updates configurations.md (#1855)
DexterPOSH Nov 14, 2017
484d598
Fix typo in comment (#1854)
ciriarte Nov 14, 2017
e46d3a1
Merge pull request #1846 from sdwheeler/sdw-issue1739
zjalexander Nov 14, 2017
f42a62f
Updating the help content for v6. (#1853)
adityapatwardhan Nov 15, 2017
eade8e4
Fix example numbers in about_Transactions.md (#1859)
matt9ucci Nov 15, 2017
518fde2
Update Alias-Provider.md (#1831)
doctordns Nov 15, 2017
248e283
Add documentation of new -AsHashtable switch for ConvertFrom-Json int…
bergmeister Nov 15, 2017
bcedaf0
Fix example numbers in Invoke-WebRequest.md (#1862)
matt9ucci Nov 16, 2017
8e4ac81
Merge branch 'live' into staging
Nov 16, 2017
1f54577
reformatting and integrating changes from PR#1831 (#1860)
Nov 16, 2017
aeeb091
Fix example numbers in Get-Help.md (#1869)
matt9ucci Nov 17, 2017
83b1241
Fix example numbers in Import-Module.md (#1868)
matt9ucci Nov 17, 2017
99be9ad
Fix example number in ConvertTo-Html.html (#1867)
matt9ucci Nov 17, 2017
919d940
Update dscCiCd.md (#1865)
tomlarse Nov 17, 2017
cb00730
Web Cmdlets 6.0.0 Documentation Refresh (#1870)
markekraus Nov 18, 2017
6e31c85
Merge Example 4 and 5 in Get-Member.md (#1874)
matt9ucci Nov 18, 2017
cc018bf
Remove hash algorithms unsupported in v6.0 (#1873)
matt9ucci Nov 19, 2017
b98aa67
Update outputs of Get-Verb (#1872)
matt9ucci Nov 19, 2017
1b2889e
Fix typo in ConvertTo-Html.md (UTF-x) (#1879)
matt9ucci Nov 20, 2017
4fec39b
Fix "Accept wildcard characters" in Get-Service.md v6 (#1878)
matt9ucci Nov 20, 2017
061245d
Fixed Get-WindowsFeature cmdlet HyperLink (#1877)
keeratsingh Nov 20, 2017
496832f
Update Get-WinEvent.md (#1876)
doctordns Nov 20, 2017
c644c38
Update Example 8 in Get-Process.md (find the owner of a process) (#1875)
matt9ucci Nov 20, 2017
58b15dd
updated localmachine\Root to LocalMachine\My (#1880)
rchaganti Nov 20, 2017
69c037d
Update Group property example in Get-Verb.md (#1881)
matt9ucci Nov 21, 2017
d69465e
adding missing space (#1885)
mairaw Nov 21, 2017
a066c77
removing stray character (#1886)
mairaw Nov 21, 2017
bf70ac9
Update Example 9 in Get-Process.md (#1888)
matt9ucci Nov 22, 2017
6687a84
Remove "About ISE" files of v6.0 (#1891)
matt9ucci Nov 27, 2017
23afc78
Update Get-Process.md (#1890)
doctordns Nov 27, 2017
5a8d5f4
Update productincompat.md (#1892)
Cloud-Writer Nov 27, 2017
46d7c99
Update unapproved verbs examples in Get-Verb.md (#1896)
matt9ucci Nov 28, 2017
a88c947
Removing extra space in the Example 5A script (#1894)
vrnithinkumar Nov 28, 2017
a2d0e9b
fixing merge conflict
Nov 28, 2017
f0f0da0
resolving conflict
Nov 28, 2017
d395d0e
updates to style and contrib
Nov 16, 2017
d4d446d
tweak format
Nov 16, 2017
67ad296
tweak format 2
Nov 16, 2017
7883844
fix typo
Nov 16, 2017
b4877f3
fix number list example
Nov 16, 2017
9e6ebd0
adding review feedback
Nov 22, 2017
323e325
fix broken links
Nov 22, 2017
e6b4a53
incorporating feedback from zach
Nov 27, 2017
7514fcf
reformatting About_* for 80 columns - part 1
Nov 27, 2017
66ecafd
reformat about_*
Nov 28, 2017
56dc2df
reformatting About_* topics - Part 2
Nov 28, 2017
d310e14
fixing broken links
Nov 28, 2017
e084dc5
fixing more broken links
Nov 28, 2017
05ff294
more broken links fixed
Nov 28, 2017
a935671
Fix parameter's position in Get-Random.md (#1901)
matt9ucci Nov 29, 2017
9040d65
Fix parameter's position in Measure-Command.md (#1905)
matt9ucci Nov 30, 2017
c715ab2
Fix parameter's position in Trace-Command.md (#1904)
matt9ucci Nov 30, 2017
6824d85
Actually call the configuration in the example (#1906)
charlesbihis Nov 30, 2017
cece485
reformatting About_* for 80 columns - part 3 (#1902)
Nov 30, 2017
877c2cc
reformatting About_* for 80 columns - part 4
Nov 30, 2017
1e0c256
Adding PreRelease versioning info for PSGallery & PSGet (#1903)
Dec 1, 2017
38d64d4
Style tweaks in STYLE.md (#1913)
SamB Dec 2, 2017
c6f3f13
Fix YAML metadata on "Understanding Concepts" (#1911)
SamB Dec 2, 2017
92e1b1b
Fix parameter's position in Join-Path.md (#1909)
matt9ucci Dec 2, 2017
b71d428
typo correction on line 85 (#1916)
J0F3 Dec 4, 2017
4e6505f
Fix parameter's position in Get-TraceSource.md (#1917)
matt9ucci Dec 4, 2017
a935850
Changed required PSGet version to 1.6.0 (#1920)
Dec 4, 2017
96504e3
Update Example 5 in Get-Process.md (#1923)
matt9ucci Dec 5, 2017
f586a98
fixing backlashes reported in PR1921 (#1924)
Dec 5, 2017
a08dbd5
Merge branch 'live' into staging
Dec 5, 2017
66349ff
reformatting About_* for 80 columns - part 5
Dec 1, 2017
6424e0d
reformatting About_* for 80 columns - part 6
Dec 1, 2017
03211c6
incorporating review feedback
Dec 4, 2017
a0b952c
reformatting About_* for 80 columns - part 7
Dec 2, 2017
bbe8f07
Fixed formatting of output per issue #808
Dec 4, 2017
eb2a12b
Merge branch 'live' into staging
Dec 5, 2017
6976ff4
Fix typo in syntax description (#1931)
TheSecretSquad Dec 6, 2017
6712f85
Fix parameter's position in ConvertTo-Xml.md (#1929)
matt9ucci Dec 6, 2017
6686c23
Remove descriptions about ComputerName parameter in Get-Process.md v6…
matt9ucci Dec 6, 2017
a0b2502
Line 192 Single Quote Breaks Example (#1930)
YuriySamorodov Dec 6, 2017
00a2675
Update Example 2 in Get-Alias.md (ineffective Exclude) (#1935)
matt9ucci Dec 7, 2017
010d9e5
Fix formatting: DESCRIPTION section in ConvertTo-Xml.md (#1934)
matt9ucci Dec 7, 2017
89de813
Fix typo in Unregister-ScheduledJob (#1932)
wemyss Dec 7, 2017
59ff97e
Fix parameter's position in ConvertFrom-Csv.md (#1937)
matt9ucci Dec 8, 2017
d428986
fix typo on metaConfig.md (#1936)
DaniSQL Dec 8, 2017
c070f79
Quick edits (#1938)
Dec 8, 2017
5119bda
Update Get-Item.md (#1942)
skycommand Dec 11, 2017
54a3de4
Add description about Format-Hex -InputObject (#1939)
matt9ucci Dec 11, 2017
4e663d6
Fix parameter's position in Add-Member.md (#1946)
matt9ucci Dec 12, 2017
2342a7e
Fix parameter's position in Select-Object.md (#1945)
matt9ucci Dec 12, 2017
7e23ff9
Correcting add to hash table example (#1944)
Koshersalt Dec 12, 2017
7009825
Merge branch 'live' into staging
Dec 12, 2017
4e99941
Fix Set-TraceSource -ListenerOption parameter (#1949)
matt9ucci Dec 13, 2017
85a3adb
Fix Trace-Command -ListenerOption parameter (#1948)
matt9ucci Dec 13, 2017
ba3ae32
Fix parameter's position in Select-Xml.md (#1953)
matt9ucci Dec 14, 2017
e9721d2
Fix Get-Alias -Name parameter (#1952)
matt9ucci Dec 14, 2017
41dc145
Wmf 5.1 cleanup (#1950)
Dec 14, 2017
c11cc97
Typo fix ("you will are not" -> "you will not"). (#1951)
relsqui Dec 14, 2017
8be92ec
added article about formatting code samples
Dec 14, 2017
52c3d1d
fixing typos
Dec 14, 2017
da136b5
fixed typos and incorporated feedback
Dec 14, 2017
7f1bfb6
updating metadata tags in docfx.json
Dec 14, 2017
4a0e687
Merge pull request #1954 from sdwheeler/sdw-codestyle
joeyaiello Dec 14, 2017
f190e9d
Merge pull request #1955 from sdwheeler/sdw-metafix
joeyaiello Dec 14, 2017
ff9fc52
Merge branch 'live' into staging
Dec 14, 2017
d0b75bb
fixing filename spelling
Dec 14, 2017
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
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ The following topics explain how to contribute to the PowerShell documentation.
1. [Get started](./contributing/GETSTARTED.md)
2. [Writing PowerShell documentation](./contributing/WRITING.md)
3. [Style Guide](./contributing/STYLE.md)
4. [Formatting code blocks](./contributing/FORMATTING-CODE.md).
171 changes: 171 additions & 0 deletions contributing/FORMATTING-CODE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
# Formatting code blocks

The existing documentation has used multiple styles, over time, and the formatting rules have changed multiple times.
We want to adopt a consistent style for PowerShell code blocks and output in our documentation.
The current Open Publishing System (OPS) we use has a syntax highlighting feature that supports many languages.
OPS also adds a **Copy** button that copies the contents of the code block to the clipboard.
This allows you to quickly paste the code into a script for testing the code example.
However, not all examples in our documentation are intended to be run.
Some code blocks are simple illustrations of a PowerShell concept.

We are defining two scenarios for code blocks:

1. Illustrative examples
2. Executable examples

## Formatting illustrative examples

Illustrative examples are used to explain a PowerShell concept.
They are not meant to be copied to the clipboard for execution.
These are most commonly used for simple examples that are easy to type.
They are also used for syntax examples where you are illustrating the syntax of a command.

Illustrative examples use a "naked" code fence to mark the beginning and end of the code block.
The code block may contain example output from the command being illustrated.

### Syntax block

Here is an example of a syntax block:

```
Get-Command [-Verb <String[]>] [-Noun <String[]>] [-Module <String[]>]
[-FullyQualifiedModule <ModuleSpecification[]>] [-TotalCount <Int32>] [-Syntax] [-ShowCommandInfo]
[[-ArgumentList] <Object[]>] [-All] [-ListImported] [-ParameterName <String[]>]
[-ParameterType <PSTypeName[]>] [<CommonParameters>]
```

This example illustrates all of the possible parameters of the `Get-Command` cmdlet.

Here is another syntax example describing the `for` statement in generalized terms:

```
for (<init>; <condition>; <repeat>)
{<statement list>}
```

### Simple illustration example

Here is an example illustrating PowerShell comparison operators:

```
PS> 2 -eq 2
True

PS> 2 -eq 3
False

PS> 1,2,3 -eq 2
2

PS> "abc" -eq "abc"
True

PS> "abc" -eq "abc", "def"
False

PS> "abc", "def" -eq "abc"
abc
```

Note that this example has the simplified PowerShell prompt and shows the resulting output.
In this case, we don't intend the reader to copy this example and try to run the copied code.

## Formatting executable examples

More complex examples or examples that would be useful to copy and execute should use <code>\`\`\`powershell</code> &hellip; <code>\`\`\`</code> code fence markers.
Output emitted by PowerShell commands should be enclosed in a **Output** code block to prevent syntax highlighting.

For example:

```powershell
Get-Command -Module Microsoft.PowerShell.Security
```

```Output
CommandType Name Version Source
----------- ---- ------- ------
Cmdlet ConvertFrom-SecureString 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet ConvertTo-SecureString 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-Acl 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-AuthenticodeSignature 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-Credential 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-ExecutionPolicy 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-PfxCertificate 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet New-FileCatalog 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Protect-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Set-Acl 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Set-AuthenticodeSignature 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Set-ExecutionPolicy 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Test-FileCatalog 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Unprotect-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security
```

The **Output** code label is not an official "language" supported by the syntax highlighting system.
However, this label is useful because OPS adds the "Output" label to the code box on the web page.
And this "Output" code box has no syntax highlighting.

## Understanding the COPY button

OPS also adds a **Copy** button that copies the contents of the code block to the clipboard.
This allows you to quickly paste the code into a script for testing the code example.
The **Copy** button also removes PowerShell prompts from the text before copying it to the clipboard.
The **Copy** button uses the following javascript code to remove the prompts.

```javascript
if (language === 'powershell') {
text = text.replace(/\bPS [a-z]:\\>\s?/gi, '');
}
```

Note that the regex used only matches simple prompts like "`PS C:\>`".
Prompts that include subdirectories or paths from other PSDrive providers will not be removed.
See the general guidelines, in the next section, for the appropriate use of prompts in examples.

## General guidelines

- Code fences

Markdown allows for indentation to signify a code block, but this pattern can be problematic and should be avoided.
All code blocks should be contained in a code fence.
A code fence is a block of code surrounded by <code>\`\`\`</code> strings.
The code fence markers must be on their own line before and after the code sample.
The marker at the start of the code block may have an optional language label.
See the previous discussion about illustrative and executable examples for the proper use of language labels.

- Line continuation in code samples

Avoid using line continuation characters (\`) in PowerShell code examples.
These are hard to see and can cause problems if there are extra spaces on the end of the line.
Use PowerShell splatting to reduce line length for cmdlets that have a lot of parameters.
Take advantage of PowerShell's natural line break opportunities, like after pipe (\|) characters and opening braces, parentheses, and brackets.

- PowerShell prompts in examples

PowerShell prompts should only be used in illustrative examples.
Prompts should **NOT** be used in executable examples.
For most of these examples, the prompt string should be "`PS>`".
This prompt is independent of OS-specific indicators.
Use of the prompt string is discouraged and should be limited to scenarios that are meant to illustrate command line usage.
More complex prompt strings are required for examples that illustrate commands that alter the prompt
or when the path displayed is significant to the scenario being illustrated.
The following example illustrate how the prompt changes when using the Registry provider.

```
PS C:\> cd HKCU:\System\
PS HKEY_CURRENT_USER\System\> dir


Hive: HKEY_CURRENT_USER\System


Name Property
---- --------
CurrentControlSet
GameConfigStore GameDVR_Enabled : 1
GameDVR_FSEBehaviorMode : 2
Win32_AutoGameModeDefaultProfile : {2, 0, 1, 0...}
Win32_GameModeRelatedProcesses : {1, 0, 1, 0...}
GameDVR_HonorUserFSEBehaviorMode : 0
GameDVR_DXGIHonorFSEWindowsCompatible : 0
```
43 changes: 5 additions & 38 deletions contributing/STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ There are several variants of PowerShell.
This table defines some of the different terms used to discuss PowerShell.

| Terminology | Definition |
| ----- | -----|
| ----- | ----- |
| PowerShell | This is the default. We are shipping PowerShell. The term PowerShell can be legitimately used to indicate any of the particular editions. This can be used to refer to the language, framework and default cmdlets, etc. |
| PowerShell Core (PSCore) | PowerShell built on .NET Core Common Language Runtime (CoreCLR) for any of the platforms. |
| Windows PowerShell | PowerShell built on .NET Common Language Runtime (CLR). Windows PowerShell ships only on Windows and requires the complete CLR. |
Expand Down Expand Up @@ -84,43 +84,6 @@ Adding or removing H2 causes a build break.

This [`Write-Host`](..\reference\6\Microsoft.PowerShell.Utility\Write-Host.md) cmdlet uses the **-Object** parameter to ...

## Formatting code blocks

* All PowerShell syntax blocks should use <code>\`\`\`powershell</code> &hellip; <code>\`\`\`</code> code fence markers.

* Do **NOT** start PowerShell commands with the PowerShell prompt ("`PS C:\>`").

* Avoid using line continuation characters (\`) in PowerShell code examples.
These are a hard to see and can cause problems if there are extra spaces on the end of the line.

* Output emitted by PowerShell commands should be enclosed in a naked code block to prevent it from recieving syntax highlighting.

For example:

```powershell
Get-Command -Module Microsoft.PowerShell.Security
```

```
CommandType Name Version Source
----------- ---- ------- ------
Cmdlet ConvertFrom-SecureString 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet ConvertTo-SecureString 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-Acl 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-AuthenticodeSignature 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-Credential 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-ExecutionPolicy 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Get-PfxCertificate 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet New-FileCatalog 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Protect-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Set-Acl 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Set-AuthenticodeSignature 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Set-ExecutionPolicy 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Test-FileCatalog 3.0.0.0 Microsoft.PowerShell.Security
Cmdlet Unprotect-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security
```

## Lists

* Do not end list items with a period (unless they contain multiple sentences)
Expand Down Expand Up @@ -162,6 +125,10 @@ There are special rules for linking to reference topics from conceptual topics.

\[TO DO\] - document special rules

## Next steps

See [Formatting code blocks](FORMATTING-CODE.md).

<!-- External URLs -->
[pascal-case]: https://en.wikipedia.org/wiki/PascalCase
[issue1806]: https://github.com/PowerShell/PowerShell-Docs/issues/1806
Expand Down
2 changes: 1 addition & 1 deletion dsc/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"manager": "carmonm",
"ms.devlang": "powershell",
"ms.tgt_pltfr": "windows",
"ms.author": "eslesar"
"ms.author": "sewhee"
},
"resource": [
{
Expand Down
4 changes: 2 additions & 2 deletions gallery/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"manager": "carmonm",
"ms.devlang": "powershell",
"ms.tgt_pltfr": "windows, macos, linux",
"author": "juanpablojofre",
"ms.author": "jpjofre"
"author": "JKeithB",
"ms.author": "keithb"
},
"resource": [
{
Expand Down
2 changes: 1 addition & 1 deletion jea/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"manager": "carmonm",
"ms.devlang": "powershell",
"ms.tgt_pltfr": "windows",
"ms.author": "jpjofre"
"ms.author": "sewhee"
},
"resource": [
{
Expand Down
22 changes: 12 additions & 10 deletions reference/3.0/Microsoft.PowerShell.Utility/Get-Alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ Gets the aliases for the current session.
## SYNTAX

### Default (Default)
```
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]
```powershell
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>]
[<CommonParameters>]
```

### Definition
```
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>] [<CommonParameters>]
```powershell
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -139,19 +141,19 @@ Accept wildcard characters: True
```

### -Name
Specifies the aliases to retrieve.
Specifies the aliases that this cmdlet gets.
Wildcards are permitted.
By default, Get-Alias retrieves all aliases defined for the current session.
The parameter name ("Name") is optional.
You can also pipe alias names to Get-Alias.
By default, `Get-Alias` retrieves all aliases defined for the current session.
The parameter name **Name** is optional.
You can also pipe alias names to `Get-Alias`.

```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Aliases:

Required: False
Position: 1
Position: 0
Default value: All aliases
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: True
Expand Down
26 changes: 15 additions & 11 deletions reference/3.0/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,27 @@ Finds text in an XML string or document.
## SYNTAX

### Xml (Default)
```
Select-Xml [-Xml] <XmlNode[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Path
```
Select-Xml [-Path] <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Path] <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### LiteralPath
```
Select-Xml -LiteralPath <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -LiteralPath <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Content
```
Select-Xml -Content <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -Content <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -214,7 +218,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
Expand All @@ -231,7 +235,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -249,7 +253,7 @@ Parameter Sets: Xml
Aliases: Node

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Expand Down
Loading