GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

Reset the local administrator password for all the pc using batch

Home Forums Scripting General Scripting Reset the local administrator password for all the pc using batch

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    nseokpen
    Member
    #121643

    Hi

    I need to reset the local administrator password for all the pc & laptop. However, my boss requirement is to hide the password & the file must be accessible by all user… she doesn’t want user to know the local administrator password. I will convert the batch file to exe so that user won’t see it. However,

    As the company has renamed the local administrator acct a myadmin, i need to do the following:-

    1. Check if user has local myadmin acct.
    If yes, go to 2. else create the myadmin acct

    2. Check if myadmin belongs to the administrator group, if no add into the administrators group
    using the net local group

    3. if yes
    net user myadmin password

    however, I cannot find the checking mechnism (dos command) to create the batch file. Can some1 help me
    on this

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.