File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
source/Modules/FailoverCluster.Common Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ $script:localizedData = Get-LocalizedData -DefaultUICulture 'en-US'
1212 Distinguished Name to be converted to a Simple Name
1313#>
1414
15- function Convert-DistinguishedNameToSimpleName {
15+ function Convert-DistinguishedNameToSimpleName
16+ {
1617 [Diagnostics.CodeAnalysis.SuppressMessageAttribute (' PSUseDeclaredVarsMoreThanAssignments' , ' returnValue' )]
1718 [CmdletBinding ()]
1819 [OutputType ([string ])]
@@ -25,7 +26,8 @@ function Convert-DistinguishedNameToSimpleName {
2526
2627 $returnValue = $DistinguishedName
2728
28- if ($DistinguishedName -match ' ^(\s*CN\s*=\w*)((\s*,\s*OU\s*=\w*)*)((\s*,\s*DC\s*=\w*)*)$' ) {
29+ if ($DistinguishedName -match ' ^(\s*CN\s*=\w*)((\s*,\s*OU\s*=\w*)*)((\s*,\s*DC\s*=\w*)*)$' )
30+ {
2931 $returnValue = ((($DistinguishedName -split ' ,' )[0 ]) -split ' =' )[1 ]
3032 }
3133
You can’t perform that action at this time.
0 commit comments