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