Solved

ad users and computers windows 7 and XP count

Posted on 2013-06-18
10
357 Views
Last Modified: 2013-06-18
In ad users and computers is it possible to get a report of all computers running a version of windows XP and a version of windows 7 (2 different reports).
0
Comment
Question by:pma111
10 Comments
 
LVL 9

Expert Comment

by:M Roe
ID: 39256093
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39256117
powersehll:
Get-ADComputer -Filter {OperatingSystem -Like "*Windows XP*"} -Property * | Export-Csv c:\temp\winxp.csv -NoTypeInformation
Get-ADComputer -Filter {OperatingSystem -Like "*Windows 7*"} -Property * | Export-Csv c:\temp\win7.csv -NoTypeInformation

Open in new window

0
 
LVL 3

Author Comment

by:pma111
ID: 39256166
I was hoping for AD users and computers as per the question if possible.
0
 
LVL 2

Expert Comment

by:titan123
ID: 39256179
Hi there are several articles all for the same issues you can have a  look at those and look if they help you by any means...

http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/1b110755-dd83-41e5-84d3-2ae4f9f9c8c0/

http://blogs.metcorpconsulting.com/tech/?p=88

Thanks.
0
 
LVL 3

Author Comment

by:pma111
ID: 39256189
Your missing the point though, I've asked for a way to acheive this in ADUC for a reason.
 I appreciate the replies but I need to get this info out of ADUC.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 42

Expert Comment

by:sedgwick
ID: 39256192
Active Directory does not track which user have which computer.
u can, however, get which user is currently logged on which computer.
is that what u want?
0
 
LVL 57

Accepted Solution

by:
Mike Kline earned 250 total points
ID: 39256198
You can use an LDAP query in ADUC (let us know if you need information on how that is done).   Here are some queries

http://blogs.msdn.com/b/muaddib/archive/2011/10/24/active-directory-ldap-searches.aspx

So for example for 7

(&(objectCategory=computer)(operatingSystem=Windows 7*))

Thanks

Mike
0
 
LVL 3

Author Comment

by:pma111
ID: 39256200
>>u can, however, get which user is currently logged on which computer.
is that what u want?

No, I want a list of which computers are running XP (regardless of service pack level), and which are running Windows 7 (regardless of version).
0
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 250 total points
ID: 39256231
that is what i've posted.
those 2 lines of code, creating 2 reports (1 for each OS version), listing all computer info.
if u want LDAP query then u can use:
(&(objectCategory=computer)((operatingSystem=Windows 7*)|(operatingSystem=Windows XP*)))

Open in new window

0
 
LVL 3

Author Comment

by:pma111
ID: 39256259
Thanks, the reason I wanted to run it in ADUC was I dont (nor do I have the permissions to install) have powershell on my machine. But I dont have ADUC.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now