Commit 2d0c75c 1 parent ab1047b commit 2d0c75c Copy full SHA for 2d0c75c
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1242
1242
1243
1243
[String ]$PsoName = $confXML.n.Admin.PSOs.ItAdminsPSO.Name
1244
1244
1245
- $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -eq $PsoName }
1245
+ $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -like $PsoName }
1246
1246
1247
1247
if (-not ($PSOexists )) {
1248
1248
Write-Verbose - Message (' Creating {0} PSO.' -f $PsoName )
1265
1265
1266
1266
$PSOexists = New-ADFineGrainedPasswordPolicy @Splat
1267
1267
If ( -not $PSOexists ) {
1268
- $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -eq $PsoName }
1268
+ $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -like $PsoName }
1269
1269
}
1270
1270
1271
1271
} # End If PSO exists
1405
1405
1406
1406
[String ]$PsoName = $confXML.n.Admin.PSOs.ServiceAccountsPSO.Name
1407
1407
1408
- $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -eq $PsoName }
1408
+ $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -like $PsoName }
1409
1409
1410
1410
if (-not ($PSOexists )) {
1411
1411
Write-Verbose - Message (' Creating {0} PSO.' -f $PsoName )
1427
1427
}
1428
1428
$PSOexists = New-ADFineGrainedPasswordPolicy @Splat
1429
1429
If (-not $PSOexists ) {
1430
- $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { cn -eq $PsoName }
1430
+ $PSOexists = Get-ADFineGrainedPasswordPolicy - Filter { name -like $PsoName }
1431
1431
}
1432
1432
1433
1433
# $PSOexists = Get-ADFineGrainedPasswordPolicy -Identity $PsoName
You can’t perform that action at this time.
0 commit comments