txt doc all of the lines are not the same, some do not contain Mac Addresses or IP address." I had overlooked this statement, which was embedded in a quote block: "The following is an example of 3 lines with in the. Select-Object -ExpandProperty ComputerName \Logins.txt -Delimiter ' ' -Header $headers | Assuming the file does not contain a header row, something like this: $headers = # No idea what to call that third redacted field. I'd probably use Import-Csv, though, just because it handles quoting and embedded delimiters. Yep, looks like it's just a semicolon-delimited file.
0 Comments
Leave a Reply. |