hallo,
ich möchte Logdateien auswerten und benötige nur die MSGTRK. Also greift bei gci der -path msgtrk*.log nicht. Mittels -filter müsste ja auch Regular Expression möglich sein. Komme aber leider nicht weiter. die Dateien sind unterschiedlich lang. Auch ForEach
oder IF oder Substring(1,6) hilft mir im Moment nicht ohne Regular Expression.
MSGTRK2017020102-1.LOG
MSGTRK2017020105-1.LOG
MSGTRK2017020106-1.LOG
MSGTRKMD2017013122-1.LOG
MSGTRKMD2017020106-1.LOG
MSGTRKMS2017013122-1.LOG
MSGTRKMS2017020101-1.LOG
-Filter <String> Specifies a filter in the provider's format or language. The value of this parameter qualifies the Path parameter. The syntax of the filter, including the
use of wildcards, depends on the provider. Filters are more efficient than other parameters, because the provider applies them when retrieving the objects, rather than having Windows PowerShell filter the objects after they are retrieved.
Chris