Script for to search multiple OUs looking for inactive computers and moving them

Welcome Forums General PowerShell Q&A Script for to search multiple OUs looking for inactive computers and moving them

Viewing 1 reply thread
  • Author
    Posts
    • #218568
      Participant
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Hi guys, was hoping I could get some help. I am a really not very good with powershell and recently I was asked to provide a script that will scan AD and disable any computer X last logged in, move them to an OU. Yes I found a handful of these on the web, but half of them dont work also I realized I need to scan by specific OU (multiple ou’s) as I dont want this to run against my servers just workstations. Could anyone help or point me in the right direction?

      Script

      Scan multiple OU’s in AD
      Disable workstaions last log on date X
      Move to OU

      Thanks!

    • #218598
      Participant
      Topics: 4
      Replies: 2247
      Points: 5,484
      Helping Hand
      Rank: Community MVP

      Michael, welcome to Powershell.org. Please take a moment and read the very first post on top of the list of this forum: Read Me Before Posting! You’ll be Glad You Did!.

      This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.