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!
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!
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 :-)
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 :-)
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use #a42197606 with https://www.experts-exchange.com/articles/30139/How-to-thread-single-threaded-applications.html
The command should be
At the end you can run
The command should be
systeminfo /s SERVER1 > SERVER1 .txt
At the end you can run
Copy *.txt Combined.log
ASKER
thanks Alex, this worked fine
ASKER
https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx