diff --git a/src/DLConversion.ps1 b/src/DLConversion.ps1 index 0e52071..c2bea03 100644 --- a/src/DLConversion.ps1 +++ b/src/DLConversion.ps1 @@ -422,7 +422,7 @@ function ConvertFrom-DN { switch ($item.TrimStart().Substring(0,2)) { - 'CN' {$CN = '/' + $item.Replace("CN=","")} + 'CN' {$CN = '/' + $item.Replace("CN=","").Replace("/","\/")} 'OU' {$OU += ,$item.Replace("OU=","");$OU += '/'} @@ -7480,4 +7480,4 @@ if ($convertToContact -eq $TRUE) cleanupSessions #Clean up - were outta here. -archiveFiles #Achive the move files so we have them for future reference. \ No newline at end of file +archiveFiles #Achive the move files so we have them for future reference.