|
How to get Errors in an external file Hi, I am trying to get error messages out of a script into an external file
For example:
New-Item d:\ -Name $Eingabe -type directory | Out-File -FilePath $Logfile
-Append
$? | Out-File -FilePath $Logfile -Append
I am getting the results out of $? (true) in an file, but I want an extra
file for every false message.
Is there something like an error level in PowerShell?
Greetz
--
MCSE 2003 |