2022-01-31 03:14:18 +00:00
|
|
|
[CmdletBinding()]param(
|
|
|
|
[string]$MountPath,
|
|
|
|
[switch]$NoAutoMount
|
|
|
|
)
|
|
|
|
|
|
|
|
$local:pathChar = [IO.Path]::DirectorySeparatorChar
|
|
|
|
$MountPath = Get-Path $MountPath
|
2022-02-04 00:08:16 +00:00
|
|
|
$local:MountName = $($($(
|
|
|
|
$MountPath -replace '-','\\x2d'
|
|
|
|
).Replace( $pathChar, '-' )
|
|
|
|
) -replace '^-',''
|
|
|
|
)
|
2022-01-31 03:14:18 +00:00
|
|
|
|
|
|
|
$MountName
|