Check Server Info - Powershell

Check Server Info - Powershell

Check various System/Network properties using below Powershell Script:

Script:


Check Services - ServiceInfo using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\Services Info.txt";
Get-WmiObject -Class Win32_Service -ComputerName . |
Out-File $path -Encoding UTF8 -Append -Width 1000
notepad $path;
-------------------------------------------------------------------------------------------------------------------------

Check Updates installed - Installed Hotfixes Info using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\Installed Hotfixes Info.txt";
Get-WmiObject -Class Win32_QuickFixEngineering -ComputerName . |
Out-File $path -Encoding UTF8 -Append -Width 1000
notepad $path;
----------------------------------------------------------------------------------------------------------------------

Check Processor - Processor Info Using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\Processor Info.txt";
Get-WmiObject -Class Win32_Processor -ComputerName . | Select-Object -Property [a-z]* | fL * | fl > $path; notepad $path;

-------------------------------------------------------------------------------------------------------------------------

Check System Propertied - System Info using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\System Info.txt";
gcim Win32_OperatingSystem | fL * | fl > $path; notepad $path;
--------------------------------------------------------------------------------------------------------------------------

Check Drive Propertied - Drive Info using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\Drive Info.txt";
"Drive information for $env:ComputerName" | out-file  $path -Append;
Get-WmiObject -Class Win32_LogicalDisk | Where-Object { $_.DriveType -ne 5 } | Sort-Object -Property Name | Select-Object Name, VolumeName, VolumeSerialNumber, SerialNumber, FileSystem, Description, VolumeDirty, ` @{ "Label" = "DiskSize(GB)"; "Expression" = { "{0:N}" -f ($_.Size/1GB) -as [float] } }, ` @{ "Label" = "FreeSpace(GB)"; "Expression" = { "{0:N}" -f ($_.FreeSpace/1GB) -as [float] } }, ` @{ "Label" = "%Free"; "Expression" = { "{0:N}" -f ($_.FreeSpace/$_.Size * 100) -as [float] } } | Format-Table -AutoSize | fl | out-file  $path;
Get-Volume | Out-File $path -Append;
notepad $path;
--------------------------------------------------------------------------------------------------------------------------

Check Firewall - Firewall Info using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\Firewall Info.txt";
netsh advfirewall show allprofiles | fl > $path; notepad $path;
--------------------------------------------------------------------------------------------------------------------------

Check App - Installed Apps Info using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\InstalleApp Info.txt";
Get-WmiObject -Class Win32_Product | Sort-Object Name | Select-Object Name, Vendor, Version, InstallDate | Format-Table –AutoSize | fl > $path; notepad $path;

-------------------------------------------------------------------------------------------------------------------------

Check Network Properties - Network Info using Powershell

$path = "$([Environment]::GetFolderPath("Desktop"))\Network Info.txt";
$nwINFO = Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object { $_.IPAddress -ne $null } | Select-Object DNSHostName, Description, IPAddress, IpSubnet, DefaultIPGateway, MACAddress, DNSServerSearchOrder | fl > $path; notepad $path;

--------------------------------------------------------------------------------------------------------------------------

Screenshots:




How to Use?

1. Launch ServerInfo.exe by double clicking on it

2. It will open a command prompt and after few secs it will launch GUI as you see in the first      screenshot

3. Select various options from the drop down and click on Validate

4. It will generate a text file with the request that you have selected. Output will be shown in the text file. By default this text file will be saved at your desktop.

5. If you want to select all the options from the drop down, then select Master Validator and click on Validate as you can see in the screenshot. This will give all the properties in a text file, this file will be saved at you desktop by default

Download :

Server Info

Thanks you guys, Please comment if you have any query.
Have a Nice Day!





Previous
Next Post »
0 Comments