Home IIS.NET Forums IIS 7 and Above PowerShell Get all CPUs in the domain and in a workgroup running IIS?
Last post Aug 26, 2014 05:11 AM by Michelle Ge - MSFT
2 Posts
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
77 Posts
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
2 Posts
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
77 Posts
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:
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
Feedback to us