Delete local computer account

(imported topic written by SystemAdmin)

Greetings all,

Is there a way in BigFix to delete a local computer account? I am working on removing IIS form servers that do not need it, I think I am hung up on the user accoun. The account in question is “IWAM_computer accounts”. Any help is greatly appreciated, thank you.

(imported comment written by BenKus)

Hi Alfred,

Do you happen to know a way to delete the account from the command-line? If so, we can help you make a Fixlet for this task.


(imported comment written by brolly3391)

Hello Alfred,

If you are on Windows 2K3, XP or 2K then there is indeed a command (net) to delete a local account.

First run this from a command window to make sure it is doing what you desire:

net user “IWAM_computer accounts” /delete

If that works the way you want it too then in your fixlet would look something like this:


exist local user whose (name of it as lowercase = “iwam_computer accounts”)


runhidden “{pathname of system folder}\net.exe” user “IWAM_computer accounts” /delete

All the normal caveats about testing it before using it in production apply.