Check what servers are running Wondiws Server 2003

Large client. Documenation is not up to date and I have inherited the estate.

One of the first things client wants to do is work out what servers are running 2003 so they can plan through migrating the services on those servers to newer OS.

Anyone have a simple script I can run on their LAN that will list back what is running 2003 servers?

Thanks
Mark/
LVL 13
Mark GalvinManaging Director / Principal ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
There are two ways:

1.  Use Active Directory Users & Computers and create a WMI query
2.  Create a computer GPO and assign it at the domain level.  Your GPO will create a file with the name of the computer in a share of your choice

Below is the WMI query:

select * from Win32_OperatingSystem where Version like "6.0%" and ProductType="1"

You can use the same WMI query for the Group Policy where you will use it for the filter.  Your script could be something like this:

if exist \\%servername\sharename\%computername%.txt goto end
echo %computername% > \\servername\sharename\%computername%.txt
:end


Just note that this query will not return 2003 Domain Controllers.

Also look at:

https://technet.microsoft.com/en-us/library/cc754488(v=ws.10).aspx
https://technet.microsoft.com/en-us/library/ee692772.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark GalvinManaging Director / Principal ConsultantAuthor Commented:
Sorry folks. Been off work ill for near enough two weeks with various.

Back to it now and will try the above suggestion.
Mark GalvinManaging Director / Principal ConsultantAuthor Commented:
Worked. Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.