Powershell script to update user account control using a csv file

Jeff Winningham 1 Reputation point
2022-02-01T22:17:33.677+00:00

We are looking for a Powershell script to update user account control using a csv file. We have many users that are showing no password policy and need the attribute updates for user account control to correct this.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,388 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,096 Reputation points
    2022-02-01T22:42:16.553+00:00

    Does the Set-ADAccountControl cmdlet handle what you need?