Showing posts with label installed. Show all posts
Showing posts with label installed. Show all posts

Monday, 27 July 2015

Command to Get List of Patches installed on Windows 2008 R2 and Windows 2012

Command to Get List of Patches installed on Windows 2008 R2 and Windows 2012


  • Manytime we get request from application owners who request for list of patches instaled and on what date
  • You can use the below command to get the list of Patches from the server. This will Create a html file called hotfix.html in your C: drive.
  • wmic qfe list brief /format:htable > "c:\hotfix.html"

Tuesday, 20 January 2015

SCOM Agent is not installed but still showing in Pending State in SCOM 2012 r2-Resolved

SCOM Agent is not installed but still showing in Pending State in SCOM 2012 r2-steps to resolve


  • We recently had a issue where there is no SCOM agent on the server.But When we try to Install SCOM agent from Console its says there is already agent pending to be managed and doesn't allow to install.
  • Then when we check the pending agent state it shows up there ,but if i go and check the server there is no SCOM agent.
  • So we where puzzled how its coming in pending management. Then we reject in pending management it goes from there.But if i try to install agent again it comes in pending management.
  • So its stuck in pending management,So this time i rejected it and its gone from there.
  • Then i Ran the Command shell command
               GET-SCOMPendingManagement | where {$_.AgentName -eq "FQDNServername"

  • And the server was showing pending in command shell but not in console.
  • To fix it you need to login to Operations Manager database server and run the below store procedue on query window on the operations manager database
               p_AgentPendingActionDeletebyAgentName 'FQDNServername'

Saturday, 8 November 2014

How to Check if Powershell is installed on your Computer?

How to Check if Powershell is installed on your Computer?


  • To check if Powershell is installed on your Computer
  • Go to C: Drive and  Click on "Windows" Folder
  • Now click on Sytem32 folder then Click on "WindowsPowerShell" Folder
  • Now depending on the Version of Powershell installed You will se it as v1.0 or v2.0 or v3.0. This tell you what version of Powershell is installed.
  • Now in our case is v1.0. Click on v1.0 folder.
  • You will see a "Powershell.exe". This confirms that Powershell is installed on your system.