Find Windows Server 2003 Servers on Network

I need to find if there are any Windows Server 2003 servers on our internal network. Are there any kind of easy scripts that I could write and run to help me find if there are any active Windows Server 2003 servers?

Any help would be much appreciated.

Thanks,

Matthew
LVL 1
Matthew RoessnerSenior Systems ProgrammerAsked:
Who is Participating?
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.

Thomas GrassiSystems AdministratorCommented:
try this

$ADComputerProperties = @(`
"Operatingsystem",
"OperatingSystemServicePack",
"Created",
"Enabled",
"LastLogonDate",
"IPv4Address",
"CanonicalName"
)
 
$SelectADComputerProperties = @(`
"Name",
"OperatingSystem",
"OperatingSystemServicePack",
"Created",
"Enabled",
"LastLogonDate",
"IPv4Address",
"CanonicalName"
)
 
Get-ADComputer -Filter * -Properties $ADComputerProperties  |  `
select $SelectADComputerProperties | Out-GridView

Open in new window



HTH
0
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
If the servers are joined to the domain then you could write a query in Active Directory Users and Computers to get a list or a Powershell script could also do it.  

LDAP filter to find would be:
(&(objectcategory=computer)(operatingSystem=Windows Server 2003))

Powershell script:
Get-ADComputer -filter {OperatingSystem -Like "Windows Server 2003"}- propert * | format-table Name, OperatingSystem


Another way would be to write a logon script that would write the output version to a file and then you parse all files.  Another way would be to use a software to scan your network.  

I suggest you look at LanSweeper or some other software to scan your network and then generate a report.
0
Matthew RoessnerSenior Systems ProgrammerAuthor Commented:
I should mention that the servers/computers on our network are NOT in Active Directory. It is a small business that just has independent computers on their network.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Thomas GrassiSystems AdministratorCommented:
Run this on each

(Get-CimInstance Win32_OperatingSystem).version
0
Matthew RoessnerSenior Systems ProgrammerAuthor Commented:
I don't want to have to physically visit every computer on our network. Plus I am not sure if I KNOW where all of our computers are.  One of our compliance scans is showing that we have a Windows Server 2003 server running on our network - but we don't know where it is or IF it is even a Windows Server 2003 server.  Which is why i was hoping to run something to scan our network and tell me everything that we have...
0
Thomas GrassiSystems AdministratorCommented:
Can you enter-pssession -computername servername  ????

This will allow you to run the command remotely on each with out going physically there

If you can not enter the above then you will not be able to run a command remotely
0
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
0

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
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Thanks for the points. Also note that the scanner will provide you the MAC address and with that you can find which switch the computer is connected to.  On Cisco switches, the command is:

Show Mac-address-table
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.