I've below sample text in a text file and wanted to get the value after id to be captured in a variable for later use.
id : 42cdb643-0a11-416b-b66b-7bb28a9a20ea
isReadOnly : False
somestring : False
somestring : {}
name :
id : d006d69e-8d04-48d7-8806-cdc39c18e679
somestring : False
somestring : False
somestring : 822F0340-818A-4F23-AA78-633B6436913F
upstreamDataflowsOfDatasets : {}
I have the same set of data in the text file. I'm looking for a PowerShell code which will scan the text and return value for id as 42cdb643-0a11-416b-b66b-7bb28a9a20ea
and so on.