Server Inventory HTML Report.


Need to create a c:\computers.txt. I have tested it 2008R2 & 2012. It will helped for generating a report for bulk servers/computers. . It can expedite your task at a glance. Let me know about the issue with it. You will get a Server inventory HTML report & NotReachable-Servers.log on your Desktop. Download the Report.ps1.  

Also you will get an additional output of unreachable server. You will find the exact Error code in C:\Error.log.

You need to create a file called computers.txt & where you have to keep the computer name as below.


PowerShell
Edit|Remove
$ary = [ordered]@{  
    'ComputerName'$computer            #1. Computer Name  
    'OperatingSystem'=$OS.caption             #2. Operating System  
    'SP'=$OS.CSDVersion -replace "Service Pack","SP" #3. Service Pack  
    'x86/64'=$OS.Osarchitecture                    #4. Osarchitecture-Not Supported Windows 2K3  
    'C:/ FreeSpace'=(($Drive.freespace /1GB).ToString("0.0")) + " GB"  #5.C:Drive Free Space  
    'RAM'= ($System.totalphysicalmemory / 1Gb).ToString("0.0"+ " GB" #6. RAM  
    'IPv4 & IPV6'=$Network.IPAddress -join ','#7. IP Addresses - Regex       
    'Subnet'=$Network.IPSubnet -join ','    #8. Subnet -Regex  
    'MAC'=$Network.MACAddress              #9. Mac Address  
    'DynamicIP'=$Network.DHCPEnabled      #10. Dynamic/Static IP  
    'DHCPServer'$Network.DHCPServer    #11.DHCP Server IP 
 
Output (Two Windows 2008 R2 SP1 & one Windows 2003 R2 SP2 are Present in Computers.txt)
 
Error.Log
PowerShell
Edit|Remove
###Error.log output### 
StandardName                                                                                        DaylightName                                                                                       
------------                                                                                        ------------                                                                                       
India Standard Time                                                                                 India Daylight Time                                                                                
 
 
 
Monday, June 09, 2014 9:50:43 AM 
 
 
6/09/2014 
Jbl-Srv003 
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) 
 

Feedback needed @ <bshwjt@gmail.com> & Rating for this Advanced Function.

Regards
Biswajit Biswas

Blog:   Script Gallary:   LinkedIn:
<bshwjt@gmail.com>