ich hatte den Befehl nur per c+p eingefügt
get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.providername –match "wininit"} | fl timecreated, message | out-file Desktop\CHKDSKResults.txt
edit:
Out-File : Es wurde kein Parameter gefunden, der dem Parameternamen "FilterHashTable" entspricht.
Bei Zeile:1 Zeichen:195
+ get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.providername -match "wininit"} | fl timecreat
ed, message | out-file Desktop\CHKDSKResults.txtget-winevent -FilterHashTable <<<< @{logname="Application"; id="1001"}
| ?{$_.providername -match "wininit"} | fl timecreated, message | out-file Desktop\CHKDSKResults.txt
+ CategoryInfo : InvalidArgument: (:) [Out-File], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comman ds.OutFileCommand
Da ist total der Wurm drin.
Oder wie lautet der Befehl korrekt?
PS, manchmal tut Powershell auch überhaupt nichts und erzeugt noch nicht mal eine Fehlermeldung, und ich habe noch nicht mal eine Möglichkeit zum Editieren, Einfügen oder Kopieren in dem (mi******) Terminal ... :-
Lesezeichen