Link to home
Start Free TrialLog in
Avatar of kuzum
kuzum

asked on

systeminfo for list of servers

Dear experts,

would be much appreciated if you can let me know how I can get systeminfo and IP details of some servers  on my domain. I have listed servers in a .txt file and need the result exported. Servers have 2003 OS installed.  I would like to achieve this with a batch file that I can run from a domain PC to remote servers.  Could anyone share a code for it?  

 thanks in advance!
Avatar of kuzum
kuzum

ASKER

Hi Expertd, PSExec sounds like what I need?
https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
Avatar of Alex
It really isn't.

You can use PowerShell to connect to a windows 2003 server.... It's just an advanced version of DCOM and WMI.

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Script-Get-beced710

That's pretty clean for a script :-)
Avatar of kuzum

ASKER

link do not seem to be working.
For systeminfo you can query from one system
Systeminfo /s \\systemname

Your question suggests that you do not have their IP addresses. If the servername/systemname can not be resolved to its IP ...


https://technet.microsoft.com/en-us/library/bb491007.aspx 

E other option is to setup a computer GPO startup script that will run systeminfo at bootup that will record this information.....

What does not work the link to view the information Alex provided or the script within to collect data from your systems?

Windows firewall which is commonly enabled on workstation could and would prevent external access

To query remotely you have to have 445 and other ports needed by powershell, including wmic, psexec.

psexec /m Remotesystem /s /c "systeminfo"

Another option if you have the option is enable the SNMP feature on each system, allow port 161 through the local firewall, use computer GPO to set SNMP settings to avoid having to do it on every system individually.
With this type of setup, you could then use SNMPWALK to poll, view system settings including if needed use evntwin to add a feature that would convert eventlog events of interest to you to also be transmitted via SNMP to an SNMPTRAP destination that could notify when an e ent occurs versus far after the fact an issue comes up and you have to go back and look through events to see what might have happened.
ASKER CERTIFIED SOLUTION
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland 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
Use #a42197606 with https://www.experts-exchange.com/articles/30139/How-to-thread-single-threaded-applications.html

The command should be
systeminfo /s SERVER1 > SERVER1 .txt

Open in new window


At the end you can run
Copy *.txt Combined.log

Open in new window

Avatar of kuzum

ASKER

thanks Alex, this worked fine