... Home  
... Impressum
... ColorConsole

... CMD
... Netsh-XP
... Netsh-7
... Netsh-Vista
... Powershell

Download the Windows 7 Starter, Home (Basic Premium), Professional und Ultimate!


... facebook.de
 
 
ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.

C:\Windows-7>Powershell get-help about_Redirection -full
# TOPIC
about_Redirection

# SHORT DESCRIPTION
Describes how to redirect output from Windows PowerShell to text files.

# LONG DESCRIPTION
By default, Windows PowerShell sends its command output to the Windows
PowerShell console. However, you can direct the output to a text
file, and you can redirect error output to the regular output stream.

You can use the following methods to redirect output:

- Use the Out-File cmdlet, which sends command output to a text file.
Typically, you use the Out-File cmdlet when you need to use its
parameters, such as the Encoding, Force, Width, or NoClobber
parameters.

- Use the Tee-Object cmdlet, which sends command output to a text file
and then sends it to the pipeline.

- Use the Windows PowerShell redirection operators.

The Windows PowerShell redirection operators are as follows.

Operator Description Example
-------- ---------------------- ------------------------------
> Sends output to the get-process > process.txt
specified file.

>> Appends the output to dir *.ps1 >> scripts.txt
the contents of the
specified file.

2> Sends errors to the get-process none 2> errors.txt
specified file.

2>> Appends the errors to get-process none 2>> save-errors.txt
the contents of the
specified file.

2>&1 Sends errors to the get-process none, powershell 2>&1
success output stream.

The syntax of the redirection operators is as follows:

<input> <operator> [<path>\]<file>

If the specified file already exists, the redirection operators that do not
append data (> and 2>) overwrite the current contents of the file without
warning. However, if the file is a read-only, hidden, or system file, the
redirection fails. The append redirection operators (>> and 2>>) do not
write to a read-only file, but they append content to a system or hidden
file.

To force the redirection of content to a read-only, hidden, or system file,
use the Out-File cmdlet with its Force parameter. When you are writing to
files, the redirection operators use Unicode encoding. If the file has a
different encoding, the output might not be formatted correctly. To
redirect content to non-Unicode files, use the Out-File cmdlet with its
Encoding parameter.

SEE ALSO
Out-File
Tee-Object
about_Operators
about_Command_Syntax
about_Path_Syntax

C:\Windows>powershell get-help about_Ref -full

OS: Windows-7 / Windows-Vista // Windows Server 2008
»»»» ColorConsole


0.078
Die Ordnergrösse in einer Spalte anzeigen lassen, geht das?  / Was ist, wenn der Window-7 Aktivierungszeitraum abgelaufen ist?  / Wie kann ich verhindern dass Q-Dir *. zip, *. rar, *. cab Ordner öffnet?  / Wie kann ich in Windows 7 in den übergeordneten Ordner wechseln?  / Neben Schreiben,Löschen und Unbenennen würde ich auch noch gerne Kopieren überwachen?  / Wie starte ich die cmd.exe?  / Hilfe, Windows 7 hat keine Spiele?  / Eine Windows 7 Universal DVD / ISO mit allen Editionen erstellen!  / / Lesetipp: 234  / Was für Systemvoraussetzungen brauche ich in Windows 7 für Nutzung des XP-Mode?  / How can I create a New-Folder?  / Es werden nur Favoriten von IE angezeigt !?  / Kann mann in Windows 7 die Aero Transparenz anpassen, oder ausschalten?  / Wie kann ich Windows-7 telefonisch aktivieren?  / Wie kann ich Windows 7 wieder Deinstallieren?  /