Skip to content

Commit 1a0a092

Browse files
author
Sean Wheeler
authored
Merging latest updates to Live (#1977)
* Update the example of `Where-Object -IsNot` (#1841) * Update Example 5 in Group-Object.md (#1845) * removing @{Text=} tags * fixing UTF8 characters * removed empty H3 * added H3 for input and output types * removed mangled UTF8 character * updating Out-* commands with -NoNewLine per Issue 1739 * Fix the example of `Format-Table -DisplayError` (#1848) The example is a `-DisplayError` parameter example. But it uses `-ShowError` parameter. * Fix the example of `Format-Wide -DisplayError` (#1850) * Fix the example of `Format-Custom -DisplayError` (#1849) The example is a -DisplayError parameter example. But it uses -ShowError parameter. * updating set-acl docs per PR#901 * using semantic link breaks * Fix the example of `Format-Wide -ShowError` (#1851) * Fixed Test-ScriptFileInfo example (#1852) * fixing issue 1768 * Formatting, example fix for Body parameter (#1847) 1. Replaced variable names with PascalCase convention and for consistency 2. Removed directory information [c:\] in the examples 3. Put powershell keyword for formatting examples 4. Replaced Invoke-RestMethod with Invoke-WebRequest in the Body example, added method Post 5. Removed InformationAction and InformationVariable parameters, which were mistakenly a copy of Body, included already in CommonVariables part * fixing style consistency across articles * Fix example numbers in Resume-Job.md (#1857) Example 4 is duplicated. * Fixes typo $WebSiteName in separatingEnvData.md (#1856) - Adds the website name to common node property inside configuration data. - Also, it is now referenced (e.g. $Node.WebSiteName) in the DSC configuration document in MyWebApp.ps1. * Updates configurations.md (#1855) Two set of changes made. - Example scripts e.g. MyDscConfiguration.ps1 define the configuration inside them and call the configuration at the end line. Removed the call to the configuration at the end. Since the article demonstrates dot-sourcing the file and calling the configuration explicitly. - Fixed typo in the file name (TEST-PC1.mof to localhost.mof ), since the ComputerName was not specified it should default to using 'localhost' as the default argument for it. P.S. - There is a comment on the web-page regarding the fixes made * Fix typo in comment (#1854) * Updating the help content for v6. (#1853) * Updating the help content for v6. * Address code review comments * Fix broken links * Fix example numbers in about_Transactions.md (#1859) Example number '7' is duplicated. * Update Alias-Provider.md (#1831) 1. Removed statement that an alias is to an executable, the definition cotnains the path. It may - but does not need to be. For example: Try Set-Alias np Notepad then look at the definition. 2. Clarified that an alias can also be to a powershell script (ps1 file). 3. Tidied up the language removing multiple 'And,' clauses to improve readability. * Add documentation of new -AsHashtable switch for ConvertFrom-Json introduced by PR #5043 (#1858) * add documentation of new -AsHashTable switch for ConvertFrom-Json and also document the behaviour in case of duplicate strings. * correct casing of -AsHashtable switch. * Address PR comments about -AsHashtable switch for ConvertFrom-Json.md * Accept pipeline input: False for -AsHashtable switch in ConvertFrom-Json.md * Revert "Accept pipeline input: False for -AsHashtable switch in ConvertFrom-Json.md" Accidentally change the wrong field. This reverts commit 6e76191. * Accept pipeline input: False for -AsHashtable switch in ConvertFrom-Json.md * Fix example numbers in Invoke-WebRequest.md (#1862) Example number '4' is duplicated. * reformatting and integrating changes from PR#1831 (#1860) * Fix example numbers in Get-Help.md (#1869) Example number 12 and 13 are missing. * Fix example numbers in Import-Module.md (#1868) Example number '10' is duplicated. * Fix example number in ConvertTo-Html.html (#1867) Example number '10' is duplicated. * Update dscCiCd.md (#1865) Missing a period on line 378. Should be `$(Build.ArtifactStagingDirectory)\` not `$(BuildArtifactStagingDirectory)\`. * Web Cmdlets 6.0.0 Documentation Refresh (#1870) * Web Cmdlets 6.0.0 Documentation Refresh * Address PR Feedback * Merge Example 4 and 5 in Get-Member.md (#1874) Example 4 and 5 in Get-Member.md v3.0 and v4.0 are almost the same. They should be merged as with v5.0. * Remove hash algorithms unsupported in v6.0 (#1873) MACTripleDES and RIPEMD160 are no longer supported in v6.0. * Update outputs of Get-Verb (#1872) Since v6.0, `Get-Verb` returns not MemberDefinition but VerbInfo that has Verb and Group properties. * Fix typo in ConvertTo-Html.md (UTF-x) (#1879) * Fix "Accept wildcard characters" in Get-Service.md v6 (#1878) * Fixed "False" -> "True" (`DisplayName`, `Exclude`, `Include`, and `Name`) * Removed `InformationAction` and `InformationVariable` * Fixed Get-WindowsFeature cmdlet HyperLink (#1877) * Fixed Get-WindowsFeature cmdlet HyperLink Minor edit. Update Get-WindowsFeature cmdlet HyperLink to https://technet.microsoft.com/library/jj205469(v=wps.630).aspx * Changed URL to new docs.microsoft.com location The TechNet URL did not work. TechNet and MSDN are being retired. * Update Get-WinEvent.md (#1876) Removed future tense in a couple of places to improve readability. Minor edit. * Update Example 8 in Get-Process.md (find the owner of a process) (#1875) * Update Example 8 in Get-Process.md (Find the owner of a process) * Update to attempt to avoid build errors It seems that the build system does not accept multiple script blocks per one Example header. * updated localmachine\Root to LocalMachine\My (#1880) The example where we import the PFX on the target node should import the cert into Personal store and not root. * Update Group property example in Get-Verb.md (#1881) * adding missing space (#1885) * removing stray character (#1886) * Update Example 9 in Get-Process.md (#1888) * powershell -> pwsh (only v6.0) * Windows PowerShell -> PowerShell * Remove "About ISE" files of v6.0 (#1891) * Remove "About ISE" files of v6.0 ISE is no longer bundled with PowerShell 6.0. * Remove links for "About ISE" files of v6.0 * Update Get-Process.md (#1890) Fixed name parameter details to show it accepts wildcards in the name * Update productincompat.md (#1892) The list of compatible systems should include Skype For Business Server 2015 and Lync Server 2013. * Update unapproved verbs examples in Get-Verb.md (#1896) * Updated Example 4 * Removed Example 5 * Removing extra space in the Example 5A script (#1894) It was highlighting as string in the documentation, I was trying to remove all the extra space. * fixing merge conflict * updates to style and contrib * tweak format * tweak format 2 * fix typo * fix number list example * adding review feedback * fix broken links * incorporating feedback from zach * reformatting About_* for 80 columns - part 1 * reformat about_* * reformatting About_* topics - Part 2 * fixing broken links * fixing more broken links * more broken links fixed * Fix parameter's position in Get-Random.md (#1901) * Fix parameter's position in Measure-Command.md (#1905) * Fix parameter's position in Trace-Command.md (#1904) * Actually call the configuration in the example (#1906) On line 74, it says... "The last line of the example containing only the name of the configuration, calls the configuration." This change actually makes that call. * reformatting About_* for 80 columns - part 3 (#1902) * reformatting About_* * reformatting About_* part 3 * fixing broken links * fixing more broken links * one more time with the links * reformatting About_* for 80 columns - part 4 * Adding PreRelease versioning info for PSGallery & PSGet (#1903) * PowerShellGet PreRelease Support Adding descriptive doc for pre-release versioning support * Correcting typos in pre-release doc Minor typos and case issues fixed * Updated prerelease info based on feedback Mostly cosmetic updates. Functional change: added line 28, stating we only support 3-segment module versions. * Adding prerelease to module install update find save commands * Updating PSGet -Script commands for Prerelease support * Hyphen listed as optional rather than preferred in Prereleasestring * Minor corrections from Rebro review * Addressing @sdwheeler feedback on links and double slashes * Fixing broken link * Update PreReleaseScript.md * Style tweaks in STYLE.md (#1913) * Fix YAML metadata on "Understanding Concepts" (#1911) I'm not quite sure what this means, but it certainly looks terrible on docs.microsoft.com when it's malformed. (To be perfectly honest, I only managed to even figure out it's called "YAML metadata" by peeking at the DOM of github's HTML.) * Fix parameter's position in Join-Path.md (#1909) * typo correction on line 85 (#1916) E:\Windows\Sytem32 sould be E:\Windows\System32 * Fix parameter's position in Get-TraceSource.md (#1917) * Changed required PSGet version to 1.6.0 (#1920) * Update Example 5 in Get-Process.md (#1923) * fixing backlashes reported in PR1921 (#1924) * fixing backlashes reported in PR1921 * found more backslashes * reformatting About_* for 80 columns - part 5 * reformatting About_* for 80 columns - part 6 * incorporating review feedback * reformatting About_* for 80 columns - part 7 * Fixed formatting of output per issue #808 * Fix typo in syntax description (#1931) * Fix parameter's position in ConvertTo-Xml.md (#1929) * Remove descriptions about ComputerName parameter in Get-Process.md v6.0 (#1928) * Line 192 Single Quote Breaks Example (#1930) * Line 192 Single Quote Breaks Example * clarified the example for -Regex * Update Example 2 in Get-Alias.md (ineffective Exclude) (#1935) `-Exclude Get-*` is ineffective because there are no aliases that begin with `Get-`. * Fix formatting: DESCRIPTION section in ConvertTo-Xml.md (#1934) * Fix typo in Unregister-ScheduledJob (#1932) * Update Unregister-ScheduledJob.md * Update Unregister-ScheduledJob.md * Update Unregister-ScheduledJob.md * Update Unregister-ScheduledJob.md * Fix parameter's position in ConvertFrom-Csv.md (#1937) * fix typo on metaConfig.md (#1936) fixed typo * Quick edits (#1938) * Changed required PSGet version to 1.6.0 * Fixes to PSGet TOC and WMF 5.1 compat page * Update Get-Item.md (#1942) Proof-read some of the examples. The first two were wrong entirely: The user must be in the ps-test folder for the result shown to happen. * Add description about Format-Hex -InputObject (#1939) * Fix parameter's position in Add-Member.md (#1946) * Fix parameter's position in Select-Object.md (#1945) * Correcting add to hash table example (#1944) * Update about_Hash_Tables.md corrected add to hash table example in 3.0 * Update about_Hash_Tables.md corrected add to hash table examples in 4.0 * Update about_Hash_Tables.md corrected add to hash table example in 5.0 * Update about_Hash_Tables.md corrected add to hash table example in 5.1 * Update about_Hash_Tables.md corrected add to hash table example in 6 * Fix Set-TraceSource -ListenerOption parameter (#1949) * Fixed the value of "Accepted values:" * Fixed minor differences in formatting and wording * Fix Trace-Command -ListenerOption parameter (#1948) * Fixed the value of "Accepted values:" * Fixed minor differences in formatting and wording * Fix parameter's position in Select-Xml.md (#1953) * Fix Get-Alias -Name parameter (#1952) * Position: 0 * Default value: All aliases * Accept wildcard characters: True * Fixed minor differences in formatting and wording And also removed InformationAction/InformationVariable in v6.0. * Wmf 5.1 cleanup (#1950) * Changed required PSGet version to 1.6.0 * Fixes to PSGet TOC and WMF 5.1 compat page * Add note explaining WMF does not ship in Windows * Typo fix ("you will are not" -> "you will not"). (#1951) * Typo fix ("you will are not" -> "you will not"). * Changed from passive voice to active voice * added article about formatting code samples * fixing typos * fixed typos and incorporated feedback * updating metadata tags in docfx.json * fixing filename spelling * Fix parameter's position in Get-Content.md (#1959) * Fix parameter's position in Get-Member.md (#1958) * Update PSGallery "Items Tab" (for the new prerelease feature) (#1957) * Fix link for about_WorkflowCommonParameters in New-PSWorkflowExecutionOption.md (#1962) * Fix link for about_Types.ps1xml in Update-TypeData.md (#1961) * Fix parameter's position in Group-Object.md (#1966) * Fix hex values in about_Arithmetic_Operators.md (#1965) * Indent headers as subheaders (#1967) * Update minor typo in Limit-EventLog.md (#1968) * Update Example 3 in Get-FileHash.md (#1969) * Fix parameter's position in Tee-Object.md (#1970) * fixing output example per issue 1933 * fix -Path metadata to reflect wildcard support * fixing issue 1640 * fixing issue 1651 * Fix link for about_Remote_Requirements (#1976) * Split parameter set in Sort-Object.md v6.0 (#1975) Since v6.0, Sort-Object cmdlet has two parameter sets, "Default" and "Bottom".
1 parent 5dbf78b commit 1a0a092

File tree

84 files changed

+812
-764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+812
-764
lines changed

gallery/psgallery/psgallery_items_tab.md

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,50 @@ keywords: gallery,powershell,cmdlet,psgallery
66
title: psgallery_items_tab
77
---
88

9-
Items Tab
10-
==========
9+
# Items Tab
1110

12-
The Items Tab displays all available items in the PowerShell Gallery.
13-
14-
To see only Modules in the PowerShell Gallery, click Modules in the Items Tab drop down. Similarly, to see only Scripts in the PowerShell Gallery, click Scripts in the Items Tab drop down.
11+
The [Items tab](https://www.powershellgallery.com/items) displays all available items in the PowerShell Gallery.
1512

13+
There are several ways to filter, sort, and search the items.
1614
To see more details about a particular item, click the item.
1715

18-
There are several ways to sort the items:
16+
## Filter By
17+
18+
The drop-down under "Filter By" allows users to filter the results by:
19+
* Include Prerelease
20+
* Stable Only
21+
22+
For information about "Prerelease" and "Stable", see [Prerelease Versioning Added to PowerShellGet and PowerShell Gallery](https://blogs.msdn.microsoft.com/powershell/2017/12/05/prerelease-versioning-added-to-powershellget-and-powershell-gallery/) in the PowerShell Team Blog.
23+
24+
The checkboxes under the drop-down allow users to filter the results by:
25+
* Item Types
26+
- Module
27+
- Script
28+
* Categories
29+
- Cmdlet
30+
- DSC Resource
31+
- Function
32+
- Role Capability
33+
- Workflow
1934

20-
##Filter By##
21-
The Filter By section allows users to filter the results by:
22-
* Item Type:
23-
* Modules
24-
* Scripts
25-
* Category:
26-
* Cmdlet
27-
* DSC Resource
28-
* Function
29-
* Workflow
35+
To see only modules in the PowerShell Gallery, check Module in the Item Types.
36+
Similarly, to see only scripts in the PowerShell Gallery, check Script in the Item Types.
3037

31-
Note: Filters are inclusive.
32-
Example: An item containing both Cmdlets and Functions will appear if either Cmdlet or Function (or both) are checked. If neither are selected, the item will not appear.
33-
Similarly, if all categories are selected, only items containing one of those categories will appear. **Items that do not belong to any of those categories will not appear.**
38+
> [!NOTE]
39+
> Filters are inclusive.
40+
> Example: An item containing both cmdlets and functions will appear if either Cmdlet or Function (or both) are checked.
41+
> If neither are selected, the item will not appear.
42+
> Similarly, if all categories are selected, only items containing one of those categories will appear.
43+
> **Items that do not belong to any of those categories will not appear.**
3444
35-
##Sort By##
36-
The Sort By drop down allows users to sort the results by:
37-
* Popularity - Popularity is determined by Download Count.
38-
* A-Z - Alphabetically by item name.
39-
* Recent - Items appear in order of publish date.
45+
## Sort By
4046

47+
The Sort By drop-down allows users to sort the results by:
48+
* Popularity - Popularity is determined by Download Count
49+
* A-Z - Alphabetically by item name
50+
* Recent - Items appear in order of publish date
4151

42-
##Search Box##
43-
The Search Box allows users to search the items on keywords.
44-
See [Search Syntax](./psgallery_search_syntax.md) for more details.
52+
## Search Box
4553

54+
The Search Box allows users to search the items on keywords.
55+
For more information, see [Gallery Search Syntax](psgallery_search_syntax.md).

reference/3.0/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ right operand determine how many bits of the left operand are shifted.
501501
|`21 -shr 31` | 0 | 0000 0000 | 0x00 |
502502
|`21 -shr 32` | 21 | 0001 0101 | 0x15 |
503503
|`21 -shr 64` | 21 | 0001 0101 | 0x15 |
504-
|`21 -shr 65` | 10 | 0000 1010 | 0x15 |
505-
|`21 -shr 66` | 5 | 0000 0101 | 0x15 |
504+
|`21 -shr 65` | 10 | 0000 1010 | 0x0A |
505+
|`21 -shr 66` | 5 | 0000 0101 | 0x05 |
506506
|`[int]::MaxValue -shr 1`| 1073741823 | | 0x3FFFFFFF |
507507
|`[int]::MinValue -shr 1`| -1073741824| | 0xC0000000 |
508508
|`-1 -shr 1` | -1 | | 0xFFFFFFFF |

reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ $a[-1]
617617
```
618618

619619
```output
620-
0
621-
0
620+
1
621+
1
622622
4
623623
4
624624
```

reference/3.0/Microsoft.PowerShell.Core/About/about_Split.md

Lines changed: 66 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 2017-12-01
2+
ms.date: 2017-12-20
33
schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
@@ -35,11 +35,10 @@ The following diagram shows the syntax for the -split operator.
3535
The parameter names do not appear in the command. Include only the parameter
3636
values. The values must appear in the order specified in the syntax diagram.
3737

38-
```powershell
38+
```
3939
-Split <String>
40-
40+
-Split (<String[]>)
4141
<String> -Split <Delimiter>[,<Max-substrings>[,"<Options>"]]
42-
4342
<String> -Split {<ScriptBlock>} [,<Max-substrings>]
4443
```
4544

@@ -51,14 +50,14 @@ are applied.
5150

5251
## PARAMETERS
5352

54-
### \<String\>
53+
### \<String\> or \<String[]\>
5554

5655
Specifies one or more strings to be split. If you submit multiple strings, all
5756
the strings are split using the same delimiter rules.
5857

5958
Example:
6059

61-
```powershell
60+
```
6261
-split "red yellow blue green"
6362
red
6463
yellow
@@ -73,7 +72,7 @@ whitespace, including spaces and non-printable characters, such as newline
7372
(\`n) and tab (\`t). When the strings are split, the delimiter is omitted from
7473
all the substrings. Example:
7574

76-
```powershell
75+
```
7776
"Lastname:FirstName:Address" -split ":"
7877
Lastname
7978
FirstName
@@ -90,7 +89,7 @@ as a split.
9089

9190
Examples:
9291

93-
```powershell
92+
```
9493
"Lastname:FirstName:Address" -split "(:)"
9594
Lastname
9695
:
@@ -139,6 +138,9 @@ Example:
139138
```powershell
140139
$c = "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune"
141140
$c -split ",", 5
141+
```
142+
143+
```Output
142144
Mercury
143145
Venus
144146
Earth
@@ -156,6 +158,9 @@ Example:
156158
```powershell
157159
$c = "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune"
158160
$c -split {$_ -eq "e" -or $_ -eq "p"}
161+
```
162+
163+
```Output
159164
M
160165
rcury,V
161166
nus,
@@ -173,7 +178,7 @@ Enclose the option name in quotation marks. Options are valid only when the
173178

174179
The syntax for the Options parameter is:
175180

176-
```powershell
181+
```
177182
"SimpleMatch [,IgnoreCase]"
178183
179184
"[RegexMatch] [,IgnoreCase] [,CultureInvariant]
@@ -214,13 +219,16 @@ The unary split operator (`-split <string>`) has higher precedence than a
214219
comma. As a result, if you submit a comma-separated list of strings to the
215220
unary split operator, only the first string (before the first comma) is split.
216221

217-
To split more than one string, use the binary split operator (<string> -split
218-
<delimiter>). Enclose all the strings in parentheses, or store the strings in
219-
a variable, and then submit the variable to the split operator.
222+
Use one of the following patterns to split more than one string:
223+
224+
- Use the binary split operator (\<string[]\> -split \<delimiter\>)
225+
- Enclose all the strings in parentheses
226+
- Store the strings in a variable then submit the variable to the split
227+
operator
220228

221229
Consider the following example:
222230

223-
```powershell
231+
```
224232
PS > -split "1 2", "a b"
225233
1
226234
2
@@ -251,7 +259,11 @@ b
251259
The following statement splits the string at whitespace.
252260

253261
```powershell
254-
PS > -split "Windows PowerShell 2.0`nWindows PowerShell with remoting"
262+
-split "Windows PowerShell 2.0`nWindows PowerShell with remoting"
263+
```
264+
265+
```Output
266+
255267
Windows
256268
PowerShell
257269
2.0
@@ -264,7 +276,10 @@ remoting
264276
The following statement splits the string at any comma.
265277

266278
```powershell
267-
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split ','
279+
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split ','
280+
```
281+
282+
```Output
268283
Mercury
269284
Venus
270285
Earth
@@ -278,7 +293,10 @@ Neptune
278293
The following statement splits the string at the pattern "er".
279294

280295
```powershell
281-
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split 'er'
296+
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split 'er'
297+
```
298+
299+
```Output
282300
M
283301
cury,Venus,Earth,Mars,Jupit
284302
,Saturn,Uranus,Neptune
@@ -287,15 +305,21 @@ cury,Venus,Earth,Mars,Jupit
287305
The following statement performs a case-sensitive split at the letter "N".
288306

289307
```powershell
290-
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -cSplit 'N'
308+
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -cSplit 'N'
309+
```
310+
311+
```Output
291312
Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,
292313
eptune
293314
```
294315

295316
The following statement splits the string at "e" and "t".
296317

297318
```powershell
298-
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split '[et]'
319+
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split '[et]'
320+
```
321+
322+
```Output
299323
M
300324
rcury,V
301325
nus,
@@ -312,8 +336,10 @@ The following statement splits the string at "e" and "r", but limits the
312336
resulting substrings to six substrings.
313337

314338
```powershell
315-
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" `
316-
-split '[er]', 6
339+
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split '[er]', 6
340+
```
341+
342+
```Output
317343
M
318344
319345
cu
@@ -325,7 +351,10 @@ arth,Mars,Jupiter,Saturn,Uranus,Neptune
325351
The following statement splits a string into three substrings.
326352

327353
```powershell
328-
PS > "a,b,c,d,e,f,g,h" -split ",", 3
354+
"a,b,c,d,e,f,g,h" -split ",", 3
355+
```
356+
357+
```Output
329358
a
330359
b
331360
c,d,e,f,g,h
@@ -335,7 +364,10 @@ The following statement splits two strings into three substrings.
335364
(The limit is applied to each string independently.)
336365

337366
```powershell
338-
PS > "a,b,c,d", "e,f,g,h" -split ",", 3
367+
"a,b,c,d", "e,f,g,h" -split ",", 3
368+
```
369+
370+
```Output
339371
a
340372
b
341373
c,d
@@ -353,13 +385,15 @@ can use options, such as Multiline, only when the Max-substrings value is
353385
specified.
354386

355387
```powershell
356-
PS > $a = @'
388+
$a = @'
357389
1The first line.
358390
2The second line.
359391
3The third of three lines.
360392
'@
393+
$a -split "^\d", 0, "multiline"
394+
```
361395

362-
PS > $a -split "^\d", 0, "multiline"
396+
```Output
363397
364398
The first line.
365399
@@ -381,8 +415,10 @@ can use options, such as SimpleMatch, only when the Max-substrings value is
381415
specified.
382416

383417
```powershell
384-
PS > "This.is.a.test" -split ".", 0, "simplematch"
418+
"This.is.a.test" -split ".", 0, "simplematch"
419+
```
385420

421+
```Output
386422
This
387423
is
388424
a
@@ -393,10 +429,12 @@ The following statement splits the string at one of two delimiters, depending
393429
on the value of a variable.
394430

395431
```powershell
396-
PS > $i = 1
397-
PS > $c = "LastName, FirstName; Address, City, State, Zip"
398-
PS > $c -split {if ($i -lt 1) {$-eq ","} else {$-eq ";"}}
432+
$i = 1
433+
$c = "LastName, FirstName; Address, City, State, Zip"
434+
$c -split {if ($i -lt 1) {$-eq ","} else {$-eq ";"}}
435+
```
399436

437+
```Output
400438
LastName, FirstName
401439
Address, City, State, Zip
402440
```

reference/3.0/Microsoft.PowerShell.Core/New-PSSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ You can pipe a computer name (string), ConnectionURI (URI), or session (PSSessio
541541
### System.Management.Automation.Runspaces.PSSession
542542
543543
## NOTES
544-
* This cmdlet uses the Windows PowerShell remoting infrastructure. To use this cmdlet, the local computer and any remote computers must be configured for Windows PowerShell remoting. For more information, see about_Remote_Requirements (http://go.microsoft.com/fwlink/?LinkID=135187).
544+
* This cmdlet uses the Windows PowerShell remoting infrastructure. To use this cmdlet, the local computer and any remote computers must be configured for Windows PowerShell remoting. For more information, see [about_Remote_Requirements](About/about_Remote_Requirements.md).
545545
* To create a PSSession on the local computer, start Windows PowerShell with the "Run as administrator" option.
546546
* When you are finished with the PSSession, use the Remove-PSSession cmdlet to delete the PSSession and release its resources.
547547

0 commit comments

Comments
 (0)