5 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

  3. Hello,
    Thank you very much for the article.
    A very newbie question:

    When I input 2 or more hostnames on seperate lines, it does not work. Do I need it format the .txt file, problem of escape character?

    I just wrote like:

    MachineA
    MachineB

    Not working.
    But with one hostname it works.

    Thank you.
    Bests.
    Frank

LEAVE A REPLY

Please enter your comment!
Please enter your name here