Daltonjoe
asked on
dsquery | dsrm what´s wrong with my syntax
When I try to run my below syntax I get this error:
"Are you sure you wish to delete all children of OU=Desktops,OU=Workstation s,OU=045HO ,OU=Locati ons,DC
=velux,DC=org (Y/N)? dsrm failed:OU=Desktops,OU=Work stations,O U=045HO,OU =Locations ,DC=velux, DC=org:T
he handle is invalid."
"Are you sure you wish to delete all children of OU=Desktops,OU=Workstation
=velux,DC=org (Y/N)? dsrm failed:OU=Desktops,OU=Work
he handle is invalid."
dsquery computer OU=Desktops,OU=Workstations,OU=045HO,OU=Locations,DC=velux,DC=org -inactive 50 -limit 0 | dsrm "OU=Desktops,OU=Workstations,OU=045HO,OU=Locations,DC=velux,DC=org" -subtree -exclude -c
ASKER
Hi Toniur
Thanks for your comment.
How can I then combine my dsquery with a "auto " deletion of in thsi example computers?
Thanks for your comment.
How can I then combine my dsquery with a "auto " deletion of in thsi example computers?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use only "dsquery computer OU=Desktops,OU=Workstation
HTH
Toni