- Thread Author
- #1
Hi
In the PowerShell 2.0 console in Windows 7 SP1, I wrote:
Where I'm wrong?
Thanks
Bye
In the PowerShell 2.0 console in Windows 7 SP1, I wrote:
Code:
PS C:\Users\test\Documents\PowerShell> Get-Help * | Get-Help -Detailed | Out-File C:\Users\test\Documents\PowerShell\PowerShell_2,0_Guide.txt
Out-File: Can not convert 'System.Object[]' to 'System.String' type required from 'FilePath' parameter. Specified method is not supported.
In line:1 car:43
+ Get-Help * | Get-Help -Detailed | Out-File <<<< C:\Users\test\Documents\PowerShell\PowerShell_2,0_Guide.txt
+ CategoryInfo : InvalidArgument: (:) [Out-File], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.OutFileCommand
PS C:\Users\test\Documents\PowerShell> Get-Help * | Get-Help -Detailed > C:\Users\test\Documents\PowerShell\PowerShell_2,0_Guide.txt
Get-Help : Can not convert 'System.Object[]' to 'System.String' type required from 'Name' parameter. Specified method is not supported.
In line:1 car:22
+ Get-Help * | Get-Help <<<< -Detailed > C:\Users\test\Documents\PowerShell\PowerShell_2,0_Guide.txt
+ CategoryInfo : InvalidArgument: (:) [Get-Help], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.GetHelpCommand
PS C:\Users\test\Documents\PowerShell>
Where I'm wrong?
Thanks
Bye