Powerhshell Script to run in 60 systems RRS feed

  • Question

  • a simple powershell script that will:

    Run on Windows 7, 8.1, 10, 2008R2 or 2012R2

    Verify the computer is not a domain controller, if it is a domain controller the script should terminate

    Query the computer for all accounts in the local administrators group

    Change the password of each “local” account it has identified to a specified password (ignoring any domain accounts)

    Add a specified AD group to the local administrators group

    Report the completed changes with computer name, all accounts that are a member of the local administrators group, any accounts changed with success/fail on password change.

    I will deploy this to a small network with about 60 computers.

    Tuesday, July 5, 2016 4:46 AM