PowerShell_Scripts/base.linux/Get-Mount.ps1

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 = $_
})
}