We have a HOLD directory in AD for disabled users and computers. Every so often the server will need to run a script to emtpy this folder. The computers will delete fine but we cannnot get the users to delete.
Here is the code for the script
#include <\\ReitzelTechnology.int\Adm$\AutoIt_Scripts\adfunctions.au3>
#include <Array.au3>
#include <File.au3>
;---------------
; Read OU
;---------------
Global $Users
$ou = "OU=HOLD1,DC=ReitzelTechnology,DC=int"; Root of your AD,