powershell object to string

23 views Asked by At

I use powershell very few times and I would like to do something very simple ... but for which I have not found a solution.

How do I remove the {} brackets from the result? From what I understand I am reading a property of the object

Get-DbaXESession -SqlInstance localhost -Session Logins | where-Object Status -eq 'Running' | select TargetFile

# this is the result
TargetFile                              
----------                              
{C:\Traces\Logins\XE_Logins_Tuesday.xel}

Thanks Alen

0

There are 0 answers