Network Management
How to find the WMI credentials assigned to each node using SQL query in NPM or SAM
This article will guide you on how How to find the WMI credentials assigned to each node using SQL query in NPM or SAM. This is commonly done to find the node causing account lockout.
First published date
Last published date
Overview
Product section
Cause
Resolution
Open up Database Manager on the main Orion server
- Add Default Server
- Right click on Orion Database
- Click New query
Enter and then execute the following query to view the table and credentials:
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. SELECT NodeSettings.NodeID, Caption as 'Node Name', ID as 'Cred ID', Name as 'Credentials Name' FROM Credential inner join NodeSettings on Credential.ID = NodeSettings.SettingValue inner join Nodes on Nodes.NodeID = NodeSettings.NodeID WHERE NodeSettings.SettingName = 'WMICredential'
You then should see a list of WMI credentials assigned to specific node names. You then should be able to parse out credentials with another 'Where' statement possibly for the appropriate credential name.
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment. You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.