Below is how to get all users that are disabled. You might get some account that are disabled but should not be deleted. Like Guest, etc... so a check on the name before deleting it would be best.

 Code:
Break on

;Get all users from the current domain.
$oDomain = GetObject("WinNT://@LDomain")
$oDomain.filter = "User", ""

For Each $oUser in $oDomain
	If $oUser.AccountDisabled <> "0"
		? "Username: " $oUser.name
		? "Fullname: " $oUser.fullname
		? "Is disabled."
		?
	Else
		;Do nothing.
	EndIf
Next

Sleep 3
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.