Skip to content

Commit fff6c05

Browse files
author
Sean Wheeler
authored
Merging latest changes to Live (#2144)
* 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 * Minor typo fix in Format-List.md (#2129) Checked "Accept wildcard characters" from "False" to "True" for "-Property". Example 4 clearly shows that this parameter accepts wildcards. * Added missing bullet (#2133) * Fixed empty bullet (#2132) * fix broken yaml blocks in content * Adds foreach & where method added in PowerShell v4 (#2139) Adding details about foreach & where methods being added in PowerShell v4 and that they aren't available downlevel (for historical purposes) and also points to using the Pipeline methods with the resulting Foreach-Object & Where-Object cmdlets * Missing y in Active Directory (#2137) For copy and paste reasons (also it would now make a bit more sense) * #5816 add message and msg alias to Write-Information and Write-Host (#2141)
1 parent 05d576c commit fff6c05

File tree

14 files changed

+40
-27
lines changed

14 files changed

+40
-27
lines changed

reference/3.0/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
ms.date: 2017-06-09
33
schema: 2.0.0
44
locale: en-us
@@ -89,7 +89,9 @@ Valid values are:
8989

9090
Encoding is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.
9191

92-
When reading from and writing to binary files, use a value of Byte for the Encoding dynamic parameter and a value of 0 for the ReadCount parameter. A ReadCount value of 0 reads the entire file in a single read operation and converts it into a single object (PSObject). The default ReadCount value, 1, reads one byte in each read operation and converts each byte into a separate object, which causes errors when you use the Set-Content cmdlet to write the bytes to a file. For more information, see the examples.```yaml
92+
When reading from and writing to binary files, use a value of Byte for the Encoding dynamic parameter and a value of 0 for the ReadCount parameter. A ReadCount value of 0 reads the entire file in a single read operation and converts it into a single object (PSObject). The default ReadCount value, 1, reads one byte in each read operation and converts each byte into a separate object, which causes errors when you use the Set-Content cmdlet to write the bytes to a file. For more information, see the examples.
93+
94+
```yaml
9395
Type: FileSystemCmdletProviderEncoding
9496
Parameter Sets: (All)
9597
Aliases:
@@ -115,7 +117,9 @@ You can use this parameter to split a large file into smaller files by specifyin
115117
116118
Delimiter is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.
117119
118-
Troubleshooting Note: Currently, when the value of the Delimiter parameter is an empty string, Get-Content does not return anything. This is a known issue. To force Get-Content to return the entire file as a single, undelimited string, enter a value that does not exist in the file.```yaml
120+
Troubleshooting Note: Currently, when the value of the Delimiter parameter is an empty string, Get-Content does not return anything. This is a known issue. To force Get-Content to return the entire file as a single, undelimited string, enter a value that does not exist in the file.
121+
122+
```yaml
119123
Type: String
120124
Parameter Sets: (All)
121125
Aliases:
@@ -148,7 +152,9 @@ Ignores newline characters and returns the entire contents of a file in one stri
148152
149153
Raw is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.
150154
151-
This parameter is introduced in Windows PowerShell 3.0.```yaml
155+
This parameter is introduced in Windows PowerShell 3.0.
156+
157+
```yaml
152158
Type: SwitchParameter
153159
Parameter Sets: (All)
154160
Aliases:
@@ -163,7 +169,9 @@ Accept wildcard characters: False
163169
### -Wait
164170
Waits for the cmdlet to get the content before returning the command prompt. While waiting, Get-Content checks the file once each second until you interrupt it, such as by pressing CTRL+C.
165171
166-
Wait is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.```yaml
172+
Wait is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.
173+
174+
```yaml
167175
Type: SwitchParameter
168176
Parameter Sets: (All)
169177
Aliases:
@@ -180,7 +188,9 @@ Gets the contents of the specified alternate NTFS file stream from the file. Ent
180188
181189
Stream is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.
182190
183-
This parameter is introduced in Windows PowerShell 3.0.```yaml
191+
This parameter is introduced in Windows PowerShell 3.0.
192+
193+
```yaml
184194
Type: String
185195
Parameter Sets: (All)
186196
Aliases:

reference/3.0/Microsoft.PowerShell.Management/Remove-Item.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
ms.date: 2017-06-09
33
schema: 2.0.0
44
locale: en-us
@@ -89,7 +89,9 @@ Stream is a dynamic parameter that the FileSystem provider adds to the Remove-It
8989

9090
You can use the Remove-Item cmdlet to delete an alternate data stream. However, it is not the recommended way to eliminate security checks that block files that are downloaded from the Internet. If you verify that a downloaded file is safe, use the Unblock-File cmdlet.
9191

92-
This parameter is introduced in Windows PowerShell 3.0.```yaml
92+
This parameter is introduced in Windows PowerShell 3.0.
93+
94+
```yaml
9395
Type: String[]
9496
Parameter Sets: (All)
9597
Aliases:

reference/3.0/Microsoft.PowerShell.Management/Test-Path.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
ms.date: 2017-06-09
33
schema: 2.0.0
44
locale: en-us
@@ -97,7 +97,9 @@ For example, you can use Test-Path to test the path to a registry key, but if yo
9797
### -OlderThan
9898
Returns "True" when the LastWriteTime value of a file is less than the specified date. Otherwise, it returns "False". Enter a DateTime object, such as one that the Get-Date cmdlet returns, or a string that can be converted to a DateTime object, such as "August 10, 2011 2:00 PM".
9999

100-
OlderThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0.```yaml
100+
OlderThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0.
101+
102+
```yaml
101103
Type: DateTime
102104
Parameter Sets: (All)
103105
Aliases:
@@ -112,7 +114,9 @@ Accept wildcard characters: False
112114
### -NewerThan
113115
Returns "True" when the LastWriteTime value of a file is greater than the specified date. Otherwise, it returns "False". Enter a DateTime object, such as one that the Get-Date cmdlet returns, or a string that can be converted to a DateTime object, such as "August 10, 2011 2:00 PM".
114116
115-
NewerThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0.```yaml
117+
NewerThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0.
118+
119+
```yaml
116120
Type: DateTime
117121
Parameter Sets: (All)
118122
Aliases:

reference/3.0/Microsoft.PowerShell.Utility/New-Object.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,8 @@ New-Object returns the object that is created.
266266
## NOTES
267267
* New-Object provides the most commonly-used functionality of the VBScript CreateObject function. A statement like Set objShell = CreateObject("Shell.Application") in VBScript can be translated to $objShell = New-Object -COMObject "Shell.Application" in Windows PowerShell.
268268
269-
New-Object expands upon the functionality available in the Windows Script Host environment by making it easy to work with .NET Framework objects from the command line and within scripts.
269+
* New-Object expands upon the functionality available in the Windows Script Host environment by making it easy to work with .NET Framework objects from the command line and within scripts.
270270
271-
*
272271
## RELATED LINKS
273272
274273
[Compare-Object](Compare-Object.md)

reference/4.0/Microsoft.PowerShell.Utility/New-Object.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ New-Object returns the object that is created.
276276
## NOTES
277277
* New-Object provides the most commonly-used functionality of the VBScript CreateObject function. A statement like Set objShell = CreateObject("Shell.Application") in VBScript can be translated to $objShell = New-Object -COMObject "Shell.Application" in Windows PowerShell.
278278
279-
New-Object expands upon the functionality available in the Windows Script Host environment by making it easy to work with .NET Framework objects from the command line and within scripts.
280-
281-
*
279+
* New-Object expands upon the functionality available in the Windows Script Host environment by making it easy to work with .NET Framework objects from the command line and within scripts.
282280
283281
## RELATED LINKS
284282

reference/5.0/Microsoft.PowerShell.Utility/New-Object.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ You cannot pipe input to this cmdlet.
277277
* **New-Object** provides the most commonly-used functionality of the VBScript CreateObject function. A statement like `Set objShell = CreateObject("Shell.Application")` in VBScript can be translated to `$objShell = New-Object -COMObject "Shell.Application"` in Windows PowerShell.
278278
* **New-Object** expands upon the functionality available in the Windows Script Host environment by making it easy to work with .NET Framework objects from the command line and within scripts.
279279

280-
*
281-
282280
## RELATED LINKS
283281

284282
[Compare-Object](Compare-Object.md)

reference/5.1/Microsoft.PowerShell.Utility/Format-List.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Required: False
209209
Position: 0
210210
Default value: None
211211
Accept pipeline input: False
212-
Accept wildcard characters: False
212+
Accept wildcard characters: True
213213
```
214214
215215
### -ShowError

reference/5.1/Microsoft.PowerShell.Utility/New-Object.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ You cannot pipe input to this cmdlet.
277277
* **New-Object** provides the most commonly-used functionality of the VBScript CreateObject function. A statement like `Set objShell = CreateObject("Shell.Application")` in VBScript can be translated to `$objShell = New-Object -COMObject "Shell.Application"` in Windows PowerShell.
278278
* **New-Object** expands upon the functionality available in the Windows Script Host environment by making it easy to work with .NET Framework objects from the command line and within scripts.
279279

280-
*
281-
282280
## RELATED LINKS
283281

284282
[Compare-Object](Compare-Object.md)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ for each element of the array.
437437
The following example shows how use the foreach method. In this case the
438438
intent is to generate the square value of the elements in the array.
439439

440+
Please note this method was added in PowerShell v4 and is not available in versions below this.
441+
For prior versions please use the Pipelining method to the ForEach-Object Cmdlet
442+
440443
```powershell
441444
$a = @(0 .. 3)
442445
$a.ForEach({ $_ * $_})
@@ -478,6 +481,9 @@ the element to show after the `Where`
478481
479482
The following example shows how to select all odd numbers from the array.
480483

484+
Please note this method was added in PowerShell v4 and is not available in versions below this.
485+
For prior versions please use the Pipelining method to the Where-Object Cmdlet
486+
481487
```powershell
482488
@(0..9).Where{ $_ % 2 }
483489
```

reference/6/Microsoft.PowerShell.Utility/ConvertFrom-Json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
ms.date: 2017-06-09
33
schema: 2.0.0
44
locale: en-us

0 commit comments

Comments
 (0)