none
Create Local Admin based off of CSV RRS feed

  • Question

  • I have a CSV that has the following data:

    ComputerName,Password

    computer1,Password1

    computer2,Password2

    My ultimate goal is the following: Run this script as a GPO, where it creates a local user on the computer (all the same username), adds it to the Administrators group, and sets its password BASED on the computername filed in the CSV.

    Example:

    Computer1 will get a local admin of KI.Admin and a password of Password1

    Computer2 will get a local admin of KI.Admin and a password of Password2

    Any help? Whenever i try to assign variables to each column (computername and password) it only ever returns the last record in the csv.

    Monday, February 11, 2019 5:51 PM

All replies