Skip to content

Commit 05d576c

Browse files
author
Sean Wheeler
authored
Merging latest changes into Live (#2128)
* 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". * Fix link for about_Preference_Variables (#1982) http://... -> relative path * Fix broken headers in Get-CimSession.md v6.0 (#1981) * Update Example 1 in Import-Counter.md (#1980) * move $OFS to prefs article added note about read-only (#1978) * Update decisionMaker.md (#1984) Slight, but critical corrections to the definition of DevOps. * Update configurations.md (#1985) * Fix parameter's position in Restart-Service.md (#1993) * Fix link for logical operators in about_Operator_Precedence.md (#1992) * Update scriptResource.md (#1986) Match specified GetScript rule * Bad link (#1988) The link "http://go.microsoft.com/fwlink/?LinkId=119096" is supposed to point to a page or a document about "Code-Signing Best Practices". However, it points to a video about "Understanding Extension INFs and Component INFs". I watched the whole video and there is nothing inside about "Code-Signing Best Practices". The best match I have found is the following one: http://download.microsoft.com/download/a/f/7/af7777e5-7dcd-4800-8a0a-b18336565f5b/best_practices.doc It would be a very good idea to make a web page from this document. Pieces of advice it contains are still accurate. * Update Example 1 of Protect-CmsMessage (#1987) The existing example did not specify you needed to create the INF. This not only says so but does so using a script block piped to out-file * Small edits for mispellings (#1989) * Corrected command (#1990) The CanPauseAndContinue property is a boolean so the correct comparison to use is $true rather than "True". * removing module ref for modules that do not ship in v6-rc2 (#1996) * Fix parameter's position in Resume-Service.md (#1998) * Fix link for about_Providers (#1999) * Help doc enhancement for ConvertFrom-StringData cmdlet (#2002) * Help doc correction Removed an unwanted * from Notes section Corrected intenting for last example Removed unwanted ... from example 2 * Help doc wnhancements in all versions for ConvertFrom-StringData Removed an unwanted * from Notes section Corrected intenting for last example Removed unwanted ... from example 2 * PowerShell 6 logging on Windows, Linux, and MacOS (#1922) * First draft of PowerShell 6 logging * Fix style guideline issues. * Document logging settings in PowerShellProperties.json * Address PR Feedback Limit lines to 80 columns, when possible Insert <br> in selected locations to improve readability of rendered markdown. * Reformatted tables Reformatted tables to work with new processing of About_* topics * Adding calling the ComputerName parameter to the example (#1964) * Adding calling the ComputerName parameter to the example * Changing quotes to brackets * Removed unused variable in Example 1 (#2004) The variable was declared but not used. It also appears in the same place in Example 2 but is used later on. * Made surrounding text agree with sample code. (#2003) * Reformatting v4 About_ topics missed in first pass (#2006) * v4 about scrub missed files * fixing broken links * fix broken link * Reformatting v3 About_ topics missed in first pass (#2005) * v3 about scrub missed files * fixing broken links * fix broken link * Reformatting v5 About_ topics missed in first pass (#2008) * v5 about scrub missed files * fixing broken links * v5.1 about scrub missed files (#2009) * Reformatting v6 About_ topics missed in first pass (#2010) * v6 about scrub missed files * fixing broken links and removing non-v6 content * final pass on About_ topic reformat (#2011) * Corrected Example 3 (#2014) * Corrected Example 3 Example 3 is an example to remove the user from the group but instead it was removing the group completely. This change adds the correct syntax to perform what was intended. See #2001 * minor edits for spacing and metadata * Enable running pandoc on about topic files (#2012) * Enable running pandoc on about topic files * Remove extra line * Removed --ascii parameter from pandoc as it is not required * Creates output directory as pandoc needs it (#2018) * remove alias `sc` to match PSCore6 (#2021) * Cmdlet help for ConvertFrom-Clixml and ConvertTo-Clixml (#2022) * Cmdlet help for ConvertFrom-Clixml and ConvertTo-Clixml for Powershell#3898 * minor edits - Removed -information* common parameters - reformat code blocks - renumbered example * minor updates - reformatted examples - removed common paramters * update link to about topic * minor edits - removed common parameters - formatted code blocks * minor edits - reformatted code blocks - removed common parameters * fix broken link (#2024) * Adding more info to Contributor Guide (#2023) * adding notes about OPS extensions * added notes about OPS extensions and linking * fix typo * fix typo * Support lifecycle doc (#1994) * first pass of support lifecycle doc * add notes on MIT license * address slee's comments on support lifecycle * respond to lifecycle feedback from Sean * add lifecycle image * Fixed spelling typo * add lifecycle to TOC * respond to feedback on lifecycle * Removed en-us from URLs You need to remove locale paths from URLs. Including en-us forces the reader to English rather than being redirected to the localized version of the article that matches their locale. * add note on 12 months, fix en-us * Fixed typo * Move setup/install and remoting docs into PowerShell-Docs (#2026) This creates a couple new topics around WSMan remoting, SSH remoting, and installing/configuring PowerShell Core. It also adds a topic on using VS Code with PowerShell. * PowerShell Core 6.0 release notes (#2020) What's New in PowerShell Core 6.0 * update TOC and change title of setup mac/linux article (#2030) * update TOC and change title of setup mac/linux article * fix typos * attempt to fix images (#2033) * attempt to fix images * update to docfx to support images * Update docfx to add image support (#2040) * attempt to fix images * update to docfx to support images * update root docfx for images * update docfx for image support * Update Installing-PowerShell-Core-on-Windows.md (#2042) The original paged rendered badly - this edit is a move of a 'to do' comment in the MD so as to not break the sentence. * Fix $PSVersionTable.OS in What's New 6.0 (#2039) $PSVersionTable.OS is: x [System.Environment]::OSVersion.VersionString o [System.Runtime.InteropServices.RuntimeInformation]::OSDescription * Update WSMan-Remoting-in-PowerShell-Core.md (#2038) The current example doesn't work for me when specifying the full file path. It just outputs the file location rather than running the script. I had to move to the location of the file and run it from there. The parameter PowerShellVersion also doesn't appear to exist anymore so I have removed that. I've also changes file paths to match the 6.0.0 GA release rather than the previous alpha 9. * Update Get-FormatData.md (#2034) Updated Get-FormatData Markdown. Fixes #1895 * Update Get-FormatData Markdown (#2035) Updated Get-FormatData Markdown. Fixes #1895 * Updated Get-Runspace Help (#2032) Updated Get-Runspace Markdown. Fixes #1883 * updated docfx to try to fix images (#2043) * attempt to fix images * update to docfx to support images * update root docfx for images * update docfx for image support * update docfx for images * Add resource per version in docfx.json (#2046) * Change 'PowerShellProperties.json' to 'powershell.config.json' in about_logging (#2050) * OPS Build config changes and minor article edits (#2051) * clean up warnings from build log * clean up moniker mapping and add image types to config * removing unneeded index pages * fixing typos * Update New-PSSessionOption.md (#2052) Missing "are" between "they" and "effective". * Update Add-Member.md example layouts (#2055) * Update Add-Member.md fixed layout of examples 1,2 ,3 * fixed format of example 5 * Removes unnecessary description about the RunAsAdministrator parameter (#2057) There is no need to have documentation for functions which do not exists in the product. There is no need to specify in which version this feature was added. Otherwise we need to add such remarks to many other features as well * Fix Example 2 in Set-PSReadlineKeyHandler.md (#2058) * Fix Example 1 in Remove-PSReadlineKeyHandler.md (#2059) * Fix minor Markdown syntax error (#2060) "Backwards compatibility with Windows PowerShell" anchor reference had incorrect Markdown syntax. * Update secureMOF.md (#2061) Update "On the Target Node: create and export the certificate" section * remove eric and jp from metadata * update docs to reflect change by https://github.com/PowerShell/PowerShell/pull/5923y (#2064) * Fix release links/names (6.0.0) (#2056) Corrected links and names to match the 6.0.0 release * Removes unexistent RunAsAdministrator parameter from the Syntax section (#2066) * Fixed path inconsistencies in Set-ItemProperty Example 2 (#2072) * Corrected path error in Example 2 * Corrected path error in Example 2 * Corrected error in Example 2 * Updated About documentation links to relative paths (#2071) * Gallery ui manifest (#2073) * Changed required PSGet version to 1.6.0 * New doc explaining how manifests affect Gallery UI * Adding new topic to TOC * Escapes angle brackets in about_Requires (#2075) This change makes content in this brackets displayable * add links for topics * About_Windows_PowerShell_5.1 #1171 * fix typo * about_Type_Operators issues #1915 * fix typos * add note about reboot (#2076) * Removed empty bullet point below notes. (#2078) A minor typo. * change PowerShellProperties.json to powershell.config.json (#2079) * Update metaConfig.md (#2081) * Update metaConfig.md * Update metaConfig.md * Fix typo in code example (#2082) * Fix example VB code (#2084) * Fix example VB code This VB code writen in a line is not compilable. `VBFromFilePublic` also requires a space. * Fix example 4 VB code for all versions * Remove the mentioning of version 2.0 * Adds missing SslProtocol parameter from Invoke-WebRequest cmdlet. (#2085) * Add SslProtocol parameter. * Add libcurl note to Certificate parameter. * Import-Csv Update examples, and UseCulture (#2086) * address example formatting Also includes some update to wording that I'll expand on in PR. * Start on update formatting for 3.0 doc * More formatting * Correcting examples and format of them. * 3.0 update format example 1 * 3.0 update to example 2 * 3.0 update example 4 * 4.0 update example 1-4 * 5.0 update example 3 and 4 * 5.1 update example 4 paragraph format * 3.0 update example 5 * 4.0 update example 5 * 5.0 update example 5 * 5.1 update example 5 * 5.1 update example 6 * 5.0 update example 6 * 4.0 update example 6 * 3.0 update example 6 * 3.0 update format of param Delimiter and Encoding * 4.0 update format of param Delimiter and Encoding * 5.0 update format of param Encoding * 5.1 update format of param Encoding * 5.0 update param header * 4.0 update param header info * 3.0 update param header info * 5.1 update remaining parameter format * 5.0 update remaining parameter format * 4.0 update remaining parameter format * 3.0 update remaining parameter format * 3.0 update remaining parameter format * 5.1 update notes format and add related link * 5.0 update notes format and add related link * 4.0 update notes format and add related link * 3.0 update notes format and add related link * update to example 1 across 3.0 to 5.1 * 6.0 Updates to description and example 1 * 4.0 update to example 1 * 3.0 - 5.1 update case of file name * 6.0 update example 2 and 3 * 3.0 - 5.1 update case of file name * 6.0 working on updating example 4 This example does not give same results I have on 6.0.1. Think other examples are going to be bad as well, have to go back and test those. * update example 4 * update example 5 * 6.0 example 6 and parameter format * addtional touchups on format * Use a working URL in Clipboard examples (#2087) * Fixed bad link in about_Hash_Tables.md docs (#2090) Links to about_Object_Creation.md were malformed in all references versions. * restoring changes made in PR#1870 (#2089) * Remove repeat description (#2093) * remove duplicate sentences (#2094) * add escape \ for the delimiter (#2095) * Fix typos in Invoke-WebRequest.md. (#2099) * Small typo in Get-PfxCertificate.md fixed (#2101) * Modify incorrect link (#2102) There is no MacOS part in linux.md, now * Update pull server documentation (#2097) * improve clarity on pull service * remove line at top of page * add community references * remove extra lines * fixed line break in bolded text This should remove the build warning. * fix toc title (#2105) * Merging changes to TOC into Staging (#2107) * refactoring TOC (#2096) * refactoring TOC * fix typo in TOC * adding redirects for deleted files (#2106) * refactoring TOC * fix typo in TOC * adding redir for deleted files * fix broken links * Fix about_Switch.md. (#2109) * fix about_Switch.md. * Fix formatting. * Fix Windows-PowerShell-Glossary.md. (#2110) * Add info on POWERSHELL_TELEMETRY_OPTOUT environment variable. (#2111) * Add details of where to look (#2112) Add details of where to look for version information. * Update Stop-Process.md (#2113) Clean up unordered list formatting. * Add ValidateDrive and ValidateUserDrive attributes information. (#2114) * Update Installing-Windows-PowerShell.md (#2118) PowerShell 6.0 has already been released. * Update Add-Member.md (#2121) Fixed Layout of Example 3 * fixing example 4 per Issue #2122 * Update Write-Debug.md (#2120) * Added new line to powershell output Added new line to clarify that the new line is a command vs output of previous command `$DebugPreference` * Added newline break to clarify between PowerShell output and command * fix typo (#2124) fix typo of invoke-command session parameter * Typo in Windows-PowerShell-Integrated-Scripting-Environment--ISE-.md (#2127) Remove duplicated 'the'. * Fixing issue 1585 - removing Information* parameters * added missing H3 for -Name param * Fixing issue 1434 * Fix issue 1434
1 parent 755d7bc commit 05d576c

File tree

117 files changed

+1212
-3920
lines changed

Some content is hidden

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

117 files changed

+1212
-3920
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Switch has the following parameters:
154154
| |you use Wildcard, Regex and Exact are ignored. Also, if |
155155
| |the match clause is not a string, the parameter is ignored.|
156156
|Exact |Indicates that the match clause, if it is a string, must |
157-
| |match exactly. Regex and Wildcard and Exact are ignored. |
157+
| |match exactly. Regex and Wildcard are ignored. |
158158
| |Also, if the match clause is not a string, this parameter |
159159
| |is ignored. |
160160
|CaseSensitive|Performs a case-sensitive match. If the match clause is not|
@@ -210,8 +210,8 @@ executed. To change this behavior, use the Break or Continue keywords.
210210

211211
The Break keyword stops processing and exits the Switch statement.
212212

213-
The Continue keyword continues processing the current value and any
214-
subsequent values.
213+
The Continue keyword stops processing the current value, but continues
214+
processing any subsequent values.
215215

216216
If the condition is an expression or a script block, it is evaluated just
217217
before it is compared to the value. The value is assigned to the $_

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 2017-11-30
2+
ms.date: 2018-02-14
33
schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
@@ -8,11 +8,11 @@ title: about_pipelines
88

99
# About Pipelines
1010

11-
### Short Description
11+
## Short Description
1212

1313
Combining commands into pipelines in the PowerShell
1414

15-
### Long Description
15+
## Long Description
1616

1717
A pipeline is a series of commands connected by pipeline operators (`|`)
1818
(ASCII 124). Each pipeline operator sends the results of the preceding command
@@ -117,7 +117,7 @@ tmp2.txt 114000
117117
tmp3.txt 114000
118118
```
119119

120-
### Using Pipelines
120+
## Using Pipelines
121121

122122
The PowerShell cmdlets were designed to be used in pipelines. For example, you
123123
can usually pipe the results of a Get cmdlet to an action cmdlet (such as a
@@ -178,7 +178,7 @@ Get-Process winlogon | Format-List -Property *
178178
With a bit of practice, you'll find that combining simple commands into
179179
pipelines saves time and typing, and makes your scripting more efficient.
180180

181-
### How Pipelines Work
181+
## How Pipelines Work
182182

183183
When you "pipe" objects, that is send the objects in the output of one command
184184
to another command, PowerShell tries to associate the piped objects with one
@@ -209,7 +209,7 @@ objects with a particular parameter. You cannot even suggest a parameter.
209209
Instead, the logic of the component manages the piping as efficiently as
210210
possible.
211211

212-
### One-At-A-Time Processing
212+
## One-At-A-Time Processing
213213

214214
Piping objects to a command is much like using a parameter of the command to
215215
submit the objects.
@@ -309,7 +309,7 @@ For example,
309309
This distinction can be important, so remember that when you pipe objects to a
310310
cmdlet, they are delivered one at a time.
311311

312-
### Accepts Pipeline Input
312+
## Accepts Pipeline Input
313313

314314
In order to receive objects in a pipeline, the receiving cmdlet must have a
315315
parameter that accepts pipeline input. You can use a `Get-Help` command with
@@ -366,7 +366,7 @@ This means that you can send objects (PsObjects) through the pipeline to the
366366
`Where-Object` cmdlet and PowerShell will associate the object with the
367367
**InputObject** and **Name** parameters.
368368

369-
### Methods Of Accepting Pipeline Input
369+
## Methods Of Accepting Pipeline Input
370370

371371
Cmdlets parameters can accept pipeline input in one of two different ways:
372372

@@ -389,7 +389,7 @@ Cmdlets parameters can accept pipeline input in one of two different ways:
389389
Some parameters can accept objects by value or by property name. These
390390
parameters are designed to take input from the pipeline easily.
391391

392-
### Investigating Pipeline Errors
392+
## Investigating Pipeline Errors
393393

394394
If a command fails because of a pipeline error, you can investigate the
395395
failure and rewrite the command.
@@ -519,7 +519,7 @@ For example,
519519

520520
```powershell
521521
Get-Item -Path HKLM:\software\mycompany\design |
522-
Move-ItemProperty -Dest HKLM:\software\mycompany\design -Name product
522+
Move-ItemProperty -Dest HKLM:\software\mycompany\sales -Name product
523523
```
524524

525525
To verify that the command worked, use a `Get-ItemProperty` command:
@@ -542,7 +542,7 @@ PSProvider : Microsoft.PowerShell.Core\Registry
542542
Product : 18
543543
```
544544

545-
# See Also
545+
## See Also
546546

547547
[about_objects](about_objects.md)
548548

0 commit comments

Comments
 (0)