2 Responses

  1. Bobby at |

    Great Script Peter!

    I get the following error when running it though:

    Could not compare “0” to “”. Error: “Cannot convert the “Microsoft.ActiveDirectory.Management.ADPropertyValueCollection” value of
    type “Microsoft.ActiveDirectory.Management.ADPropertyValueCollection” to type “System.Int32″.”
    At C:\Users\ceales_admin\Desktop\LDAD.ps1:48 char:11
    + for($i=0; $i -lt $arrADComputers.count; $i++) {
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : ComparisonFailure

    Any Ideas?

    Reply

Leave a Reply

Cylon Detector * Time limit is exhausted. Please reload CAPTCHA.