Skip to content

Merging latest updates to Live #1977

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 144 commits into from
Dec 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 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)
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
8c303f1
Fix parameter's position in Get-Content.md (#1959)
matt9ucci Dec 15, 2017
2dffaff
Fix parameter's position in Get-Member.md (#1958)
matt9ucci Dec 15, 2017
fa5064b
Update PSGallery "Items Tab" (for the new prerelease feature) (#1957)
matt9ucci Dec 15, 2017
8190bfc
Fix link for about_WorkflowCommonParameters in New-PSWorkflowExecutio…
matt9ucci Dec 18, 2017
9cfd38a
Fix link for about_Types.ps1xml in Update-TypeData.md (#1961)
matt9ucci Dec 18, 2017
219e848
Fix parameter's position in Group-Object.md (#1966)
matt9ucci Dec 19, 2017
91a778c
Fix hex values in about_Arithmetic_Operators.md (#1965)
matt9ucci Dec 19, 2017
7569a34
Indent headers as subheaders (#1967)
lavahot Dec 19, 2017
a6c39a2
Update minor typo in Limit-EventLog.md (#1968)
DannyMeister Dec 19, 2017
4dfa90f
Update Example 3 in Get-FileHash.md (#1969)
matt9ucci Dec 20, 2017
9603e0f
Fix parameter's position in Tee-Object.md (#1970)
matt9ucci Dec 20, 2017
45517f9
fixing output example per issue 1933
Dec 20, 2017
4c8ad5c
fix -Path metadata to reflect wildcard support
Dec 20, 2017
7f07ed2
fixing issue 1640
Dec 20, 2017
e3d2746
fixing issue 1651
Dec 20, 2017
83a1f36
Merge pull request #1974 from sdwheeler/sdw-issue1651
joeyaiello Dec 20, 2017
9fea401
Merge pull request #1973 from sdwheeler/sdw-issue1640
joeyaiello Dec 20, 2017
703bce7
Merge pull request #1972 from sdwheeler/sdw-issue1672
joeyaiello Dec 20, 2017
700455e
Merge pull request #1971 from sdwheeler/sdw-issue1933
joeyaiello Dec 20, 2017
2247085
Fix link for about_Remote_Requirements (#1976)
matt9ucci Dec 21, 2017
2f7bd31
Split parameter set in Sort-Object.md v6.0 (#1975)
matt9ucci Dec 21, 2017
bfb1184
Merge branch 'live' into staging
Dec 21, 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
64 changes: 37 additions & 27 deletions gallery/psgallery/psgallery_items_tab.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,50 @@ keywords: gallery,powershell,cmdlet,psgallery
title: psgallery_items_tab
---

Items Tab
==========
# Items Tab

The Items Tab displays all available items in the PowerShell Gallery.

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.
The [Items tab](https://www.powershellgallery.com/items) displays all available items in the PowerShell Gallery.

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

There are several ways to sort the items:
## Filter By

The drop-down under "Filter By" allows users to filter the results by:
* Include Prerelease
* Stable Only

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.

The checkboxes under the drop-down allow users to filter the results by:
* Item Types
- Module
- Script
* Categories
- Cmdlet
- DSC Resource
- Function
- Role Capability
- Workflow

##Filter By##
The Filter By section allows users to filter the results by:
* Item Type:
* Modules
* Scripts
* Category:
* Cmdlet
* DSC Resource
* Function
* Workflow
To see only modules in the PowerShell Gallery, check Module in the Item Types.
Similarly, to see only scripts in the PowerShell Gallery, check Script in the Item Types.

Note: Filters are inclusive.
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.
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.**
> [!NOTE]
> Filters are inclusive.
> 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.
> 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.**

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

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

##Search Box##
The Search Box allows users to search the items on keywords.
See [Search Syntax](./psgallery_search_syntax.md) for more details.
## Search Box

The Search Box allows users to search the items on keywords.
For more information, see [Gallery Search Syntax](psgallery_search_syntax.md).
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ right operand determine how many bits of the left operand are shifted.
|`21 -shr 31` | 0 | 0000 0000 | 0x00 |
|`21 -shr 32` | 21 | 0001 0101 | 0x15 |
|`21 -shr 64` | 21 | 0001 0101 | 0x15 |
|`21 -shr 65` | 10 | 0000 1010 | 0x15 |
|`21 -shr 66` | 5 | 0000 0101 | 0x15 |
|`21 -shr 65` | 10 | 0000 1010 | 0x0A |
|`21 -shr 66` | 5 | 0000 0101 | 0x05 |
|`[int]::MaxValue -shr 1`| 1073741823 | | 0x3FFFFFFF |
|`[int]::MinValue -shr 1`| -1073741824| | 0xC0000000 |
|`-1 -shr 1` | -1 | | 0xFFFFFFFF |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ $a[-1]
```

```output
0
0
1
1
4
4
```
Expand Down
94 changes: 66 additions & 28 deletions reference/3.0/Microsoft.PowerShell.Core/About/about_Split.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 2017-12-01
ms.date: 2017-12-20
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
Expand Down Expand Up @@ -35,11 +35,10 @@ The following diagram shows the syntax for the -split operator.
The parameter names do not appear in the command. Include only the parameter
values. The values must appear in the order specified in the syntax diagram.

```powershell
```
-Split <String>

-Split (<String[]>)
<String> -Split <Delimiter>[,<Max-substrings>[,"<Options>"]]

<String> -Split {<ScriptBlock>} [,<Max-substrings>]
```

Expand All @@ -51,14 +50,14 @@ are applied.

## PARAMETERS

### \<String\>
### \<String\> or \<String[]\>

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

Example:

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

```powershell
```
"Lastname:FirstName:Address" -split ":"
Lastname
FirstName
Expand All @@ -90,7 +89,7 @@ as a split.

Examples:

```powershell
```
"Lastname:FirstName:Address" -split "(:)"
Lastname
:
Expand Down Expand Up @@ -139,6 +138,9 @@ Example:
```powershell
$c = "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune"
$c -split ",", 5
```

```Output
Mercury
Venus
Earth
Expand All @@ -156,6 +158,9 @@ Example:
```powershell
$c = "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune"
$c -split {$_ -eq "e" -or $_ -eq "p"}
```

```Output
M
rcury,V
nus,
Expand All @@ -173,7 +178,7 @@ Enclose the option name in quotation marks. Options are valid only when the

The syntax for the Options parameter is:

```powershell
```
"SimpleMatch [,IgnoreCase]"

"[RegexMatch] [,IgnoreCase] [,CultureInvariant]
Expand Down Expand Up @@ -214,13 +219,16 @@ The unary split operator (`-split <string>`) has higher precedence than a
comma. As a result, if you submit a comma-separated list of strings to the
unary split operator, only the first string (before the first comma) is split.

To split more than one string, use the binary split operator (<string> -split
<delimiter>). Enclose all the strings in parentheses, or store the strings in
a variable, and then submit the variable to the split operator.
Use one of the following patterns to split more than one string:

- Use the binary split operator (\<string[]\> -split \<delimiter\>)
- Enclose all the strings in parentheses
- Store the strings in a variable then submit the variable to the split
operator

Consider the following example:

```powershell
```
PS > -split "1 2", "a b"
1
2
Expand Down Expand Up @@ -251,7 +259,11 @@ b
The following statement splits the string at whitespace.

```powershell
PS > -split "Windows PowerShell 2.0`nWindows PowerShell with remoting"
-split "Windows PowerShell 2.0`nWindows PowerShell with remoting"
```

```Output

Windows
PowerShell
2.0
Expand All @@ -264,7 +276,10 @@ remoting
The following statement splits the string at any comma.

```powershell
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split ','
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split ','
```

```Output
Mercury
Venus
Earth
Expand All @@ -278,7 +293,10 @@ Neptune
The following statement splits the string at the pattern "er".

```powershell
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split 'er'
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split 'er'
```

```Output
M
cury,Venus,Earth,Mars,Jupit
,Saturn,Uranus,Neptune
Expand All @@ -287,15 +305,21 @@ cury,Venus,Earth,Mars,Jupit
The following statement performs a case-sensitive split at the letter "N".

```powershell
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -cSplit 'N'
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -cSplit 'N'
```

```Output
Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,
eptune
```

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

```powershell
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split '[et]'
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split '[et]'
```

```Output
M
rcury,V
nus,
Expand All @@ -312,8 +336,10 @@ The following statement splits the string at "e" and "r", but limits the
resulting substrings to six substrings.

```powershell
PS > "Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" `
-split '[er]', 6
"Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune" -split '[er]', 6
```

```Output
M

cu
Expand All @@ -325,7 +351,10 @@ arth,Mars,Jupiter,Saturn,Uranus,Neptune
The following statement splits a string into three substrings.

```powershell
PS > "a,b,c,d,e,f,g,h" -split ",", 3
"a,b,c,d,e,f,g,h" -split ",", 3
```

```Output
a
b
c,d,e,f,g,h
Expand All @@ -335,7 +364,10 @@ The following statement splits two strings into three substrings.
(The limit is applied to each string independently.)

```powershell
PS > "a,b,c,d", "e,f,g,h" -split ",", 3
"a,b,c,d", "e,f,g,h" -split ",", 3
```

```Output
a
b
c,d
Expand All @@ -353,13 +385,15 @@ can use options, such as Multiline, only when the Max-substrings value is
specified.

```powershell
PS > $a = @'
$a = @'
1The first line.
2The second line.
3The third of three lines.
'@
$a -split "^\d", 0, "multiline"
```

PS > $a -split "^\d", 0, "multiline"
```Output

The first line.

Expand All @@ -381,8 +415,10 @@ can use options, such as SimpleMatch, only when the Max-substrings value is
specified.

```powershell
PS > "This.is.a.test" -split ".", 0, "simplematch"
"This.is.a.test" -split ".", 0, "simplematch"
```

```Output
This
is
a
Expand All @@ -393,10 +429,12 @@ The following statement splits the string at one of two delimiters, depending
on the value of a variable.

```powershell
PS > $i = 1
PS > $c = "LastName, FirstName; Address, City, State, Zip"
PS > $c -split {if ($i -lt 1) {$-eq ","} else {$-eq ";"}}
$i = 1
$c = "LastName, FirstName; Address, City, State, Zip"
$c -split {if ($i -lt 1) {$-eq ","} else {$-eq ";"}}
```

```Output
LastName, FirstName
Address, City, State, Zip
```
Expand Down
2 changes: 1 addition & 1 deletion reference/3.0/Microsoft.PowerShell.Core/New-PSSession.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ You can pipe a computer name (string), ConnectionURI (URI), or session (PSSessio
### System.Management.Automation.Runspaces.PSSession

## NOTES
* 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).
* 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).
* To create a PSSession on the local computer, start Windows PowerShell with the "Run as administrator" option.
* When you are finished with the PSSession, use the Remove-PSSession cmdlet to delete the PSSession and release its resources.

Expand Down
Loading