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?

[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.

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
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.
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.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Thomas GrassiSystems AdministratorCommented:
Run this on each

(Get-CimInstance Win32_OperatingSystem).version
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...
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
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:

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
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.