How do strip a result of select-string to a file without the path
I need to select certain types of Servers output to another text file
select-string -path C:\Powershell\Host\winservers2.txt -pattern ^hostname
C:\Powershell\Host\winservers2.txt:562:hostname00
C:\Powershell\Host\winservers2.txt:563:hostname01
C:\Powershell\Host\winservers2.txt:564:hostname02
C:\Powershell\Host\winservers2.txt:565:hostname04
how do i pass just the hostname* to text without the C:\Powershell\Host\winservers2.txt:565