From 3fba7f2cdb5684096dfb7e6316cba01915880523 Mon Sep 17 00:00:00 2001 From: Alexander Stavitsky Date: Tue, 13 Apr 2021 11:45:28 -0400 Subject: [PATCH] Update DLConversion.ps1 --- src/DLConversion.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.