I'm using
Get-WmiObject -Class Win32_MappedLogicalDisk | Select-Object -Property DeviceID,ProviderName
to find mapped drives and it work with an output to a table but I',m looking to have it in a string
ei {DeviceID = X; ProviderName= \\server\share1, DeviceID = y; ProviderName= \\server\share2)
is this possible