[SOLVED] Cleaning OR WAPT

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
User avatar
Geoffroy
Messages: 75
Registration: June 28, 2022 - 3:34 PM

July 12, 2023 - 5:04 PM

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.
Attachments
2023-07-12 17_05_48-GCFRLYWAPTCONS - 10.1.0.45 - Remote Desktop Connection.png
2023-07-12 17_05_48-GCFRLYWAPTCONS - 10.1.0.45 - Remote Desktop Connection.png (11.58 KB) Viewed 6046 times
Server: WAPT Enterprise 2.6.0.17226 on Debian 12;
Consoles: Windows 11
; Infrastructure: Windows
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

July 13, 2023 - 1:25 PM

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.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
Geoffroy
Messages: 75
Registration: June 28, 2022 - 3:34 PM

July 17, 2023 - 3:58 PM

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:
Server: WAPT Enterprise 2.6.0.17226 on Debian 12;
Consoles: Windows 11
; Infrastructure: Windows
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

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')
User avatar
Geoffroy
Messages: 75
Registration: June 28, 2022 - 3:34 PM

July 17, 2023 - 4:38 PM

Thank you for your reply. I'll get back to you if that's okay.
Server: WAPT Enterprise 2.6.0.17226 on Debian 12;
Consoles: Windows 11
; Infrastructure: Windows
User avatar
Geoffroy
Messages: 75
Registration: June 28, 2022 - 3:34 PM

July 17, 2023 - 4:55 PM

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?.

;)
Server: WAPT Enterprise 2.6.0.17226 on Debian 12;
Consoles: Windows 11
; Infrastructure: Windows
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

July 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.
User avatar
Geoffroy
Messages: 75
Registration: June 28, 2022 - 3:34 PM

July 17, 2023 - 8:27 PM

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.
Attachments
2023-07-17 20_26_32-GCFRLYWAPTCONS - 10.1.0.45 - Remote Desktop Connection.png
2023-07-17 20_26_32-GCFRLYWAPTCONS - 10.1.0.45 - Remote Desktop Connection.png (4.2 KB) Viewed 5974 times
Server: WAPT Enterprise 2.6.0.17226 on Debian 12;
Consoles: Windows 11
; Infrastructure: Windows
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

July 18, 2023 - 09:56

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?
User avatar
Geoffroy
Messages: 75
Registration: June 28, 2022 - 3:34 PM

July 18, 2023 - 10:10

Hello,

No, we do not use ACLs.
Server: WAPT Enterprise 2.6.0.17226 on Debian 12;
Consoles: Windows 11
; Infrastructure: Windows
Locked