Kaviza VDI in a Box extra Computers in AD
Problem: At some point Kaviza or VDI in a Box did not remove deactivated computers from AD either due to an improper shutdown, timing issue,… finding out which are in use and are not can take some time. Here is how I sped up the cleanup process. Solution: Follow the steps below to export your computer names to bat log file. Then edit the bat file to ping the systems and export to a log file then review the results and clean up ad. All of my Kaviza systems have the same prefix of FBWKVFB-x so I ran the following command to pull the list from AD and export to a bat file: Dsquery computer domainroot –name FBWKVFB-* > c:\kavizapc.bat then edit the bat file and use the find and replace command to replace the excess fields. Here is an example of the unedited output: "CN=FBWKVFB-7C246DT,OU=SBComputers,OU=Computers,OU=MyBusiness,DC=ad,DC=domain" Find “CN= Replace with Ping –4 ...