Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Table to line

$
0
0

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 


Viewing all articles
Browse latest Browse all 10624

Trending Articles