Page 1 of 2

[SOLVED] Cleaning OR WAPT

Published: July 12, 2023 - 5:04 PM
by Geoffroy
Hello,

Debian server WAPT2.4.14080,
Windows console WAPT2.4.14080.

We are modifying our Active Directory (AD) directory structure. We have deleted several Organizational Units (OUs) and moved computers between OUs.

Some workstations are still appearing in the old OU in WAPT, even though the folder no longer exists in AD.

There must be a history of this on the workstation, even after reinstalling the agent.

Do you know where I can delete this history?

I'm not sure if I'm being clear. :D

In the image, I'm pointing to the two OUs (ELIOTT PARIS). On the first one, no workstations appear in the console, but the folder doesn't delete. On the second one, all the old workstations are appearing, even though in AD they are in the ELIOTT OU.

Re: Cleaning OR WAPT

Published: July 13, 2023 - 1:25 PM
by t.heroult
WAPT relies on the Active Directory location where the computer "believes" it is.
To update it correctly on the PC, and therefore in WAPT, you need to run `gpupdate`.
From within WAPT, you have the option in the context menu for the targets:
In "Windows Computer Management" => Force GPO update on machines.

After a few seconds, run "Check for updates" again to update the WAPT inventory, and the PC should then appear in the correct OU.

Re: Cleaning OR WAPT

Published: July 17, 2023 - 3:58 PM
by Geoffroy
Even after cleaning, I still have the OU in the console even though it doesn't exist anywhere else.
It's like a ghost PC is still there.
:shock:

Re: Cleaning OR WAPT

Published: July 17, 2023 - 4:29 PM
by sfonteneau
To verify using an SQL request:

Code: Select all

SELECT * from Hosts WHERE (hosts.computer_ad_ou ILIKE '%%OU=toto,DC=mydom,DC=lan')

Re: Cleaning OR WAPT

Published: July 17, 2023 - 4:38 PM
by Geoffroy
Thank you for your reply. I'll get back to you if that's okay.

Re: Cleaning OR WAPT

Published: July 17, 2023 - 4:55 PM
by Geoffroy
sfonteneau wrote: July 17, 2023 - 4:29 PM To verify using an SQL request:

Code: Select all

SELECT * from Hosts WHERE (hosts.computer_ad_ou ILIKE '%%OU=toto,DC=mydom,DC=lan')
I do have a PC that appears with the query. This PC is no longer available in our Active Directory. How can I remove it from the OU, given that it's not visible as a PC in WAPT?.

;)

Re: Cleaning OR WAPT

Published: July 17, 2023 - 4:59 PM
by sfonteneau
It should therefore appear in the inventory; I think you simply have a filter ("connected," for example) that's hiding it.

You can find the PC name in the columns of the SQL query results and search for it directly in the main inventory.

Re: Cleaning OR WAPT

Published: July 17, 2023 - 8:27 PM
by Geoffroy
sfonteneau wrote: Jul 17, 2023 - 4:59 PM It should therefore appear in the inventory; I think you simply have a filter ("connected," for example) that's hiding it.

You can find the PC name in the columns of the SQL query results and search for it directly in the main inventory.

I have no filters selected and in the OS settings I am in ALL.
I don't see the post in the global list (all) either.

That's really strange...

Can I force deletion in WAPT by removing the UUID?

Thank you.

Re: Cleaning OR WAPT

Published: July 18, 2023 - 09:56
by sfonteneau
Geoffroy wrote: July 17, 2023 - 8:27 PM I don't see the post in the global list (all) either.
Interesting, do you use LCDs at home?

Re: Cleaning OR WAPT

Published: July 18, 2023 - 10:10 AM
by Geoffroy
Hello,

No, we do not use ACLs.