diff --git a/reference/3.0/Microsoft.PowerShell.Management/Get-Content.md b/reference/3.0/Microsoft.PowerShell.Management/Get-Content.md index a459dc0acb9..c136fb2d631 100644 --- a/reference/3.0/Microsoft.PowerShell.Management/Get-Content.md +++ b/reference/3.0/Microsoft.PowerShell.Management/Get-Content.md @@ -1,4 +1,4 @@ ---- +--- ms.date: 2017-06-09 schema: 2.0.0 locale: en-us @@ -89,7 +89,9 @@ Valid values are: Encoding is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives. -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 +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 Type: FileSystemCmdletProviderEncoding Parameter Sets: (All) Aliases: @@ -115,7 +117,9 @@ You can use this parameter to split a large file into smaller files by specifyin Delimiter is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives. -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 +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 Type: String Parameter Sets: (All) Aliases: @@ -148,7 +152,9 @@ Ignores newline characters and returns the entire contents of a file in one stri Raw is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives. -This parameter is introduced in Windows PowerShell 3.0.```yaml +This parameter is introduced in Windows PowerShell 3.0. + +```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: @@ -163,7 +169,9 @@ Accept wildcard characters: False ### -Wait 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. -Wait is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives.```yaml +Wait is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives. + +```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: @@ -180,7 +188,9 @@ Gets the contents of the specified alternate NTFS file stream from the file. Ent Stream is a dynamic parameter that the FileSystem provider adds to the Get-Content cmdlet. This parameter works only in file system drives. -This parameter is introduced in Windows PowerShell 3.0.```yaml +This parameter is introduced in Windows PowerShell 3.0. + +```yaml Type: String Parameter Sets: (All) Aliases: diff --git a/reference/3.0/Microsoft.PowerShell.Management/Remove-Item.md b/reference/3.0/Microsoft.PowerShell.Management/Remove-Item.md index c6ba9036793..501cfb7c1c7 100644 --- a/reference/3.0/Microsoft.PowerShell.Management/Remove-Item.md +++ b/reference/3.0/Microsoft.PowerShell.Management/Remove-Item.md @@ -1,4 +1,4 @@ ---- +--- ms.date: 2017-06-09 schema: 2.0.0 locale: en-us @@ -89,7 +89,9 @@ Stream is a dynamic parameter that the FileSystem provider adds to the Remove-It 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. -This parameter is introduced in Windows PowerShell 3.0.```yaml +This parameter is introduced in Windows PowerShell 3.0. + +```yaml Type: String[] Parameter Sets: (All) Aliases: diff --git a/reference/3.0/Microsoft.PowerShell.Management/Test-Path.md b/reference/3.0/Microsoft.PowerShell.Management/Test-Path.md index 7f44f9923ed..3f2f9e4387d 100644 --- a/reference/3.0/Microsoft.PowerShell.Management/Test-Path.md +++ b/reference/3.0/Microsoft.PowerShell.Management/Test-Path.md @@ -1,4 +1,4 @@ ---- +--- ms.date: 2017-06-09 schema: 2.0.0 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 ### -OlderThan 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". -OlderThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0.```yaml +OlderThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0. + +```yaml Type: DateTime Parameter Sets: (All) Aliases: @@ -112,7 +114,9 @@ Accept wildcard characters: False ### -NewerThan 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". -NewerThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0.```yaml +NewerThan is a dynamic parameter that works only on file system paths. It was introduced in Windows PowerShell 3.0. + +```yaml Type: DateTime Parameter Sets: (All) Aliases: diff --git a/reference/3.0/Microsoft.PowerShell.Utility/New-Object.md b/reference/3.0/Microsoft.PowerShell.Utility/New-Object.md index a1ff521f01d..b255738b8a5 100644 --- a/reference/3.0/Microsoft.PowerShell.Utility/New-Object.md +++ b/reference/3.0/Microsoft.PowerShell.Utility/New-Object.md @@ -266,9 +266,8 @@ New-Object returns the object that is created. ## NOTES * 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. - 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. +* 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. -* ## RELATED LINKS [Compare-Object](Compare-Object.md) diff --git a/reference/4.0/Microsoft.PowerShell.Utility/New-Object.md b/reference/4.0/Microsoft.PowerShell.Utility/New-Object.md index 9cc8ab24d19..1373556571a 100644 --- a/reference/4.0/Microsoft.PowerShell.Utility/New-Object.md +++ b/reference/4.0/Microsoft.PowerShell.Utility/New-Object.md @@ -276,9 +276,7 @@ New-Object returns the object that is created. ## NOTES * 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. - 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. - -* +* 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. ## RELATED LINKS diff --git a/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md b/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md index 0e12ab7f341..1213b86e672 100644 --- a/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md +++ b/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md @@ -277,8 +277,6 @@ You cannot pipe input to this cmdlet. * **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. * **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. -* - ## RELATED LINKS [Compare-Object](Compare-Object.md) diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Format-List.md b/reference/5.1/Microsoft.PowerShell.Utility/Format-List.md index f7cb0d02d24..c7fa1a3ed49 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Format-List.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Format-List.md @@ -209,7 +209,7 @@ Required: False Position: 0 Default value: None Accept pipeline input: False -Accept wildcard characters: False +Accept wildcard characters: True ``` ### -ShowError diff --git a/reference/5.1/Microsoft.PowerShell.Utility/New-Object.md b/reference/5.1/Microsoft.PowerShell.Utility/New-Object.md index 39b66755217..ce672a168ba 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/New-Object.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/New-Object.md @@ -277,8 +277,6 @@ You cannot pipe input to this cmdlet. * **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. * **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. -* - ## RELATED LINKS [Compare-Object](Compare-Object.md) diff --git a/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md b/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md index 385ad7e9e73..b6c23d82134 100644 --- a/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md +++ b/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md @@ -437,6 +437,9 @@ for each element of the array. The following example shows how use the foreach method. In this case the intent is to generate the square value of the elements in the array. +Please note this method was added in PowerShell v4 and is not available in versions below this. +For prior versions please use the Pipelining method to the ForEach-Object Cmdlet + ```powershell $a = @(0 .. 3) $a.ForEach({ $_ * $_}) @@ -478,6 +481,9 @@ the element to show after the `Where` The following example shows how to select all odd numbers from the array. +Please note this method was added in PowerShell v4 and is not available in versions below this. +For prior versions please use the Pipelining method to the Where-Object Cmdlet + ```powershell @(0..9).Where{ $_ % 2 } ``` diff --git a/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-Json.md b/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-Json.md index 8e92b438799..2e4481f7218 100644 --- a/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-Json.md +++ b/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-Json.md @@ -1,4 +1,4 @@ ---- +--- ms.date: 2017-06-09 schema: 2.0.0 locale: en-us diff --git a/reference/6/Microsoft.PowerShell.Utility/New-Object.md b/reference/6/Microsoft.PowerShell.Utility/New-Object.md index 1b35b8f4637..a65b3d06218 100644 --- a/reference/6/Microsoft.PowerShell.Utility/New-Object.md +++ b/reference/6/Microsoft.PowerShell.Utility/New-Object.md @@ -241,8 +241,6 @@ You cannot pipe input to this cmdlet. * **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. * **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. -* - ## RELATED LINKS [Compare-Object](Compare-Object.md) diff --git a/reference/6/Microsoft.PowerShell.Utility/Write-Host.md b/reference/6/Microsoft.PowerShell.Utility/Write-Host.md index 1a7a2e14ff5..bbdd6eacf4a 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Write-Host.md +++ b/reference/6/Microsoft.PowerShell.Utility/Write-Host.md @@ -166,7 +166,7 @@ Objects to display in the host. ```yaml Type: Object Parameter Sets: (All) -Aliases: +Aliases: Message, Msg Required: False Position: 0 diff --git a/reference/6/Microsoft.PowerShell.Utility/Write-Information.md b/reference/6/Microsoft.PowerShell.Utility/Write-Information.md index 2cd33ed3673..cdc178f9651 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Write-Information.md +++ b/reference/6/Microsoft.PowerShell.Utility/Write-Information.md @@ -105,7 +105,7 @@ An example is "Test complete." ```yaml Type: Object Parameter Sets: (All) -Aliases: Msg +Aliases: Message, Msg Required: True Position: 1 diff --git a/reference/docs-conceptual/setup/PS-remoting-second-hop.md b/reference/docs-conceptual/setup/PS-remoting-second-hop.md index 937b7e20e5a..a1a42d35992 100644 --- a/reference/docs-conceptual/setup/PS-remoting-second-hop.md +++ b/reference/docs-conceptual/setup/PS-remoting-second-hop.md @@ -110,7 +110,7 @@ module into your session: ```powershell PS C:\> Add-WindowsFeature RSAT-AD-PowerShell -PS C:\> Import-Module ActiveDirector +PS C:\> Import-Module ActiveDirectory ``` Several available cmdlets now have a **PrincipalsAllowedToDelegateToAccount** parameter: