15 lines
369 B
PowerShell
15 lines
369 B
PowerShell
|
[CmdletBinding()]param()
|
||
|
|
||
|
& mount |
|
||
|
ForEach-Object {
|
||
|
$null = $_ -match "^(.*) on (/.*) type ([^ ]*)( (.*))?$";
|
||
|
[PSCustomObject]([ordered]@{
|
||
|
Path = $matches[2]
|
||
|
Type = $matches[3]
|
||
|
Name = $matches[1]
|
||
|
Options = $matches[5]
|
||
|
# Matches = $Matches
|
||
|
# Raw = $_
|
||
|
})
|
||
|
}
|