Not able to delete stale computer
Hi,
I am not able to delete the stale computer from my domain by using the below dsquery command.
dsquery computer inactive 468 | dsrm noprompt
Please help me out in deleting the stale computer
Desktop
Hi,
I am not able to delete the stale computer from my domain by using the below dsquery command.
dsquery computer inactive 468 | dsrm noprompt
Please help me out in deleting the stale computer
by rgnambiar Accepted solution
by glen.harris Accepted solution
Hi,
I'm not currently near a domain to try this but think the command should be:
dsquery computer -inactive 468 | dsrm -noprompt
where 468 represents 468 weeks of inactivity.
by rgnambiar Accepted solution
by glen.harris Accepted solution
by rgnambiar Accepted solution
by glen.harris Accepted solution
Dsrm is a command-line tool that is built into Windows Server 2008. It is available if you have the Active Directory Domain Services (AD DS) or Active Directory Lightweight Directory Services (AD LDS) server role installed. To use dsrm, you must run the dsrm command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.
Not from technet:
To add the server role go to Server Manager, click roles in the left pane, add roles in the right pane, click next then install.
I would have thought that you'd already have the AD role installed on the server if it is a DC. AD can be dangerous if you don't know what you are doing. Unless this is a test domain of some sort that you are experimenting with be very careful.
This discussion is closed to new replies.
Sort by Trending