4 COMMENTS

  1. Hello Ardian,
    Thank you so much for the script, I found it really helpful.
    If i may, I wanted to point out a small mistake on the script.
    # $account = [ADSI](“WinNT://$computers/Administartor.user”) it should be a comma
    # $account = [ADSI](“WinNT://$computers/Administartorm,user”)

  2. Hi, I am new to PS, need some lowest level help… Re $Computers = $Get-Content -Path $FileLocation, accumulated questions as follows:
    a/ if my file is at C:\PCList.txt, should I change to $Computers = $Get-Content -Path $C:\PCList.txt

    b/ we have a local admin account called overseer, can we use this script to change the password for overseer – by replacing the Administrator with overseer – so the resulting script will be
    # $account = [ADSI](“WinNT://$computers/overseer,user”)

    Pls advise. Many thanks
    Lenny

LEAVE A REPLY

Please enter your comment!
Please enter your name here