KMS Search in Active Directory and Status update


  • Hello everyone,

    I have KMS Server 2008 R2 with VAMT. I need to search for all computers in my forest because I need an inventory about ALL computers that have obtained a license from my KMS Server.

    The VAMT query give me more than 24.000 computers, but VAMT tool hasn´t a "select all" option and select with the scroll bar + shift is very SLOW!

    After this, I have to wait and update status of the 24.000 computers... This is impossible... VAMT Crash after this action.

    anybody knows about command line or script to search for ALL FOREST COMPUTERS and Update computers status???? I need to query for all computers in a domain and list "Operating System Type" or "Office version".

    This is because I need to make an inventory of license status of our customer.

    Thanks in advace!


    Cristian Neira

    Wednesday, February 15, 2012 10:21 AM


  • Hi,

    Try this two line in PowerShell:

    $objForest = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()  
    $objForest.Sites | Select-Object Name 

    Cordialement, KETATA Ramy " If one can do it, I can do it. If no one can do it, I must do it " Si ma réponse vous a été utile et/ou apporté une résolution, Merci de Voter ou de la marquer comme Utile

    Wednesday, February 15, 2012 10:41 AM

All replies