Friday 18 December 2009

Disable old Computer accounts after 3 months

Disable old Computer accounts after 3 months.bat:

cd c:\dsquery computer "LDAP query of your Workstations" -inactive 13 -limit 0 dsmod computer -disabled yes

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thanks for sharing the helpful command, I tried the automate utility from https://blog.netwrix.com/2018/02/15/the-ten-best-free-active-directory-management-tools/ which provide the automate facilitate to disable old computer accounts that have not logged on within x number of days.

    ReplyDelete