Hello,
im trying to extract hostnames from log file, these hostnames are written in their UNC format
Log.txt example:
\\pc-xp1 random text..
.. random text ... \\pc-xp2
... another random text ...
$logfile = gc .\log.txt
$extract = [regex]::matches($logfile,$pattern)
Can u help me with that pattern value? Result should be just
pc-xp1
pc-xp2