PowerShell using WMI:

 

$LIST = GET-CONTENT C:\LIST.TXT 

 

FOREACH ($COMPUTER IN $LIST) { 

IF ( $(GWMI -COMP $COMPUTER WIN32_OPERATINGSYSTEM).NAME -MATCH "R2") { 

ADD-CONTENT -PATH C:\OS.TXT <file:///\\PATH-TO-FILE\R2-SYSTEMS.TXT>
-value $COMPUTER

}

}

 

Change C:\LIST.TXT and C:\OS.TXT to files of your choice.

 

From: Damien Solodow [mailto:[email protected]] 
Sent: Thursday, April 30, 2009 10:44 AM
To: NT System Admin Issues
Subject: RE: 2003 R2

 

You can do it via a WMI query. Grab a copy of wmicodecreator from the MS
downloads site and poke around, it's a value under win32.computersystem
I think...

 

From: KenM [mailto:[email protected]] 
Sent: Thursday, April 30, 2009 10:41 AM
To: NT System Admin Issues
Subject: Re: 2003 R2

 

no WSUS for the servers. I need to do this with a script, a few hundred
servers.

 

 

 



 

On Thu, Apr 30, 2009 at 10:34 AM, Carol Fee <[email protected]> wrote:

If you are running WSUS you will see it there

 

CFee

 

 

________________________________

From: KenM [mailto:[email protected]] 
Sent: Thursday, April 30, 2009 10:28 AM 


To: NT System Admin Issues
Subject: Re: 2003 R2

 

No they are the same

 

>operatingSystem: Windows Server 2003
>operatingSystemVersion: 5.2 (3790)
>operatingSystemServicePack: Service Pack 2

 



 

On Thu, Apr 30, 2009 at 10:20 AM, Rob Bonfiglio <[email protected]>
wrote:

I don't have any 2003 R2 servers on my network, but I would imagine the
operatingSystem and/or the operatingSystemVersion attributes on the
computer account in AD would be different for 2003 R2 machines. 

 

On Thu, Apr 30, 2009 at 10:09 AM, KenM <[email protected]> wrote:

I need to find all 2003 R2 servers in my domain. Is there any easy way
of doing this. I am comparing the attributes on a base 2003 and 2003 R2
and do not see any difference.

 

 

Thanks

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to