Collections:
Other Resources:
Out-Host - Standard Output in Windows PowerShell Scripts
How to use the "Out-Host" cmdlet in Windows PowerShell scripts? I want to output information the standard output channel.
✍: FYIcenter.com
The "Out-Host" cmdlet sends output to the Windows PowerShell host for display.
The host displays the output to the PowerShell console.
Because "Out-Host" is the default cmdlet, you do not need to specify it unless you want to use its parameters to change the display settings. In other words, if you write an expression in a command line without giving any cmdlet, "Out-Host" will be automatically used process the expression as the "-InputObject" parameter. So the following 2 commands are identical:
(Get-Date).ToString() Out-Host -InputObject (Get-Date).ToString()
Of course, "Out-Host" can take a piped object as the "-InputObject" parameter too: So the following 3 commands are identical:
(Get-Date).ToString() Out-Host -InputObject (Get-Date).ToString() (Get-Date).ToString() | Out-Host
⇒ Console Input and Output in Windows PowerShell Scripts
⇐ If-Else Conditions in Windows PowerShell Scripts
2016-10-30, ∼3522🔥, 0💬
Popular Posts:
What is "Net.Tcp Listener Adapter" in my Windows 7 service list? And how is "Net.Tcp Listener Adapte...
How to remove BacsTray.exe from the startup application list to gain performance and reduce security...
What is the "CmRcService.exe" process on windows 7? Is the "CmRcService.exe" process a virus? Can I ...
Signing in on my computer that doesn't run 8 works just fine. So must be windows eight that is causi...
What is "Software Protection" in my Windows 7 service list? And how is "Software Protection" service...