I have a text file in this format:
ServerName:srvrX1
IP:
Location:NY
OS:
ServerName:srvrX2
IP:
Location:NY
OS:Windows Server 2012
XYZ:
ServerName:srvrX3
IP:
Location:STK
OS: Win2k3
ServerName:srvrX4
IP:
Location:STK
OS:Win2k8
ServerName:srvrX5
IP:
Location:STK
OS: RedHat Linux 5
ServerName:srvrX6
IP:
Location:TKY
OS: Windows Server 2012
The number of fields could vary for each server and the number of empty lines between each server info is randm . I want the output in tabular format. I am new to powershell could someone please help.
Thanks a lot. Nel