Link to home
Start Free TrialLog in
Avatar of MichaelBalack
MichaelBalackFlag for Singapore

asked on

How to scan and detect the windows server versions remotely?

This is to find out about 100+ Windows Servers in our production. All these servers were joined Windows AD domain.  We wanted to know on each individual server, what is the Windows Server version installed, CPU core and some other hardware information.

Do we need to have the administrative privileges? How about if we don't have the privilege? Would powershell manage to do the job?


Thanks in advance.
Avatar of MichaelBalack
MichaelBalack
Flag of Singapore image

ASKER

Besides Windows server version, information such as, CPU core and socket, physical or virtual server, are needed as well.
Avatar of bbao
yes, you do need administrative privilege to do that especially you have no any remote access or system management agent in use on each client computer.

you maynuse PSEXEC to run VER or SET to learn and remotely grab the OS version info.

https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
Hi,

You need admin privilege to do these type of tasks. You can do this via powershell as well.

From a server, Import -module active directory

Then

Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap –Auto

This will list the whole machines name and you can filter it after exporting to excel.

Otherwise use this command to only filter server OS versions;

Get-ADComputer -Filter {OperatingSystem -Like “Windows Server*”} -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack -Wrap -Auto

Good luck
ASKER CERTIFIED SOLUTION
Avatar of FOX
FOX
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for both experts, your suggestions and linked articles work.