NetScout
A PowerShell script to get information about computers in your network
Objective
To have an IT user be able to scan a pc by its name and have the script ping and search for information about the pc in question.
Information retrieved
The script retrieves information about the pc these are:
- Serial Number
- CPU Name
- Manufacturer
- Model
- Domain and Current logged on user
- RAM ( In GB )
- Disk Information
Notes
Like any PowerShell script, it does require ExecutionPolicy to be set to Unrestricted with the command:
Set-ExecutionPolicy Unrestriced
It can be set back with:
Set-ExecutionPolicy Restricted
Linux
This script will not be able to work in the time being, this is due to the fact that Linux has no implementation of the CMI structure, but Microsoft is working on using the OMI to implement Commands like Get-CmiInstance
To be done
- Convert the WMI dependent commands to a CMI implementation.
- Convert CleanPC.cmd to PowerShell or introduce it into the script itself(depends on CleanPC.cmd's author, Nuno Almeida).
- Have the script not only ping for the computer, but have it check if the computer active in the Active Directory (If possible)
- Have it accept arguments, so we can be more like a classical shell program.
Dreams
- Have this be converted to a C# program, banking on the ability to call PowerShell Scripts in C#