Koozali.org: home of the SME Server

How to delete an orphaned machine account?

Offline turandot

  • *
  • 82
  • +0/-0
How to delete an orphaned machine account?
« on: August 27, 2011, 09:10:38 PM »
All,

Background: I am using SME as a Windows domain controller for a long time. I had a hardware failure on one of the Windows computers, and the harddisk was entirely lost.

Issue: machine accounts are automatically created on the SME server for each Windows computer that joins the domain. Normally these machine accounts are deleted if the Windows computer leaves the domain at a later point. In this case the Windows computer cannot leave the domain anymore because the Windows system was irreversibly lost.

Users can be shown on the console by
Code: [Select]
db accounts showThis command also lists machine accounts.

Users can be manually deleted on the console by
Code: [Select]
signal-event user-delete <username>
db accounts delete <username>

Question: what commands should I use on the console to delete the orphaned machine account? Is it
Code: [Select]
signal-event user-delete <machinename$>
db accounts delete <machinename$>

Thanks a lot,

turandot

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to delete an orphaned machine account?
« Reply #1 on: August 28, 2011, 01:53:37 AM »
turandot

Please search forums on
delete machine accounts
and you will find answers, for example this one
http://forums.contribs.org/index.php/topic,12790.msg48162.html#msg48162
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline turandot

  • *
  • 82
  • +0/-0
Re: How to delete an orphaned machine account?
« Reply #2 on: August 28, 2011, 10:42:17 AM »
mary

I have searched the forum, but I did not find the thread you pointed to, and I also searched in the documentation. These were source of the commands posted above.

Thanks a lot for pointing to http://forums.contribs.org/index.php/topic,12790.msg48162.html#msg48162 .

turandot