PowerShell_Scripts/base.linux/Edit-MountUnit.ps1

15 lines
292 B
PowerShell

[CmdletBinding()]param(
[string]$MountPath,
[switch]$NoAutoMount
)
$local:pathChar = [IO.Path]::DirectorySeparatorChar
$MountPath = Get-Path $MountPath
$local:MountName = $($($(
$MountPath -replace '-','\\x2d'
).Replace( $pathChar, '-' )
) -replace '^-',''
)
$MountName