TroubleShootLimit-Job.ps1


#
Test-ModuleManifest .\Powershell.Helper.Extension.psd1
Import-Module .\Powershell.Helper.Extension.psd1
$VerbosePreference="Continue"

$path = Join-Path(Join-Path($env:ALLUSERSPROFILE)$(New-Guid).ToString())$(New-Guid).ToString()
$pattern = "([a-zA-Z:]{2,2})*"
$found =  $path -match $pattern
if($found){
    $replace = $Matches[0]
    $givenPath = $path -replace $replace, "\\$($env:COMPUTERNAME)\$($replace.Replace(":", "`$" ))"
                                
    $testPath = Add-Path $givenPath
}
Remove-Module "Powershell.Helper.Extension"