Get all CPUs in the domain and in a workgroup running IIS? [Answered]RSS

1 reply

Last post Aug 26, 2014 05:11 AM by Michelle Ge - MSFT

  • Get all CPUs in the domain and in a workgroup running IIS?

    Aug 25, 2014 02:17 PM|llbrb|LINK

    Hello,

    We are needing to be able to identify any server class machine in the domain that is running IIS.

    This could be within the Active Directory domain and a workgroup.

    List all computer accounts in a domain

    Get-ADComputer –Filter {Name –Like “*”}

    Does anyone have a script that could do this?

     

    Thanks in advance

  • Re: Get all CPUs in the domain and in a workgroup running IIS?

    Aug 26, 2014 05:11 AM|Michelle Ge - MSFT|LINK

    Hi,

    So far as I know, you can use powershell with Active Directory module, please refer to do as below:

    Import-Module ActiveDirectory
    Get-ADComputer -Filter {enabled -eq $true} -properties *|select Name, DNSHostName, OperatingSystem, LastLogonDate

    For more information, please refer to the link below:

    http://technet.microsoft.com/en-us/library/ee617192.aspx

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    Please mark the replies as answers if they help or unmark if not.
    Feedback to us