Windows Powershell : Digging into system internals


After working on windows  now i am trying to get the hand on the new test automation framework of windows  i.e Powershell  to get some usefull information of the system from the CLI based enviroment  that we used to get from the command line  (DOS ) now that all information we will find out from the windows powershell . We need to have some understanding of WMI ( Windows Management Instrumentation ) which is used to query the information fro windows machine . Here are some usefull info for patching and hardware :

1. What is the processor architecture ?

Get-WmiObject Win32_Processor

2. What is the IP of the system ?

3. What is the RAM size ?

Get-WmiObject Win32_ComputerSystem

4. Patch details that  are installed on the system ?

Get-Hotfix :

Get-Hotfx | gm

5. Count of patches installed on system ?

Get-HotFix | Measure-Object

6. BIOS information :

Get-WmiObject Win32_BIOS

7. OS details :

Get-WmiObject Win32_OperatingSystem

I will posting some of more usefull commands that can used on daily basis by the administrators .

Advertisements

About Devendra Singh

A guy with self learning capability , Analytical Ability , Exploring in nature , Just looking for ways for spreading happiness among everyone. Little aggressive some time. Just want peace everywhere in this world.
This entry was posted in Automation, Powershell and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s