- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have been asked to extend the baseline “Windows OS – Desktop” Discovery pattern to collect Local Disk C: details (DeviceID, FileSystem, FreeSpace, Total Size), and populate these on the Windows computer CI (custom attributes) or on a dedicated child extension class. The goal is to visualize C: capacity and filesystem health inside CMDB for inventory and alerting use cases.
How we can do this using Extension?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You need to extend the Windows OS – Desktop Discovery Pattern by creating an Extension Section called “Windows OS – Desktop – Custom C Drive Check”. This makes the customization upgrade-safe and keeps it separate from the base pattern.
Inside this section, you add a WMI query (root\cimv2) to fetch details of the C drive: DeviceID, FileSystem, FreeSpace, and Size. The query output is parsed step by step to extract each value (drive ID, filesystem, free space, total size). Optionally, you can also transform the raw byte values into gigabytes and calculate the free space percentage.
The end result is that Discovery will capture and populate C drive usage details (free space, total space, filesystem) for each Windows machine, with screenshots showing the new pattern section, WMI command, parsing steps, and optional transformations.
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You need to extend the Windows OS – Desktop Discovery Pattern by creating an Extension Section called “Windows OS – Desktop – Custom C Drive Check”. This makes the customization upgrade-safe and keeps it separate from the base pattern.
Inside this section, you add a WMI query (root\cimv2) to fetch details of the C drive: DeviceID, FileSystem, FreeSpace, and Size. The query output is parsed step by step to extract each value (drive ID, filesystem, free space, total size). Optionally, you can also transform the raw byte values into gigabytes and calculate the free space percentage.
The end result is that Discovery will capture and populate C drive usage details (free space, total space, filesystem) for each Windows machine, with screenshots showing the new pattern section, WMI command, parsing steps, and optional transformations.
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Refrain from changing out of box patterns for custom requirements. If it is a MUST have or you are trying for learning purposes, you can use below steps
https://www.servicenow.com/community/itom-articles/customize-pattern-operations/ta-p/2295770
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
I am not changing OOTB just extending it.. as suggested by @Ravi Gaurav and It helped me.Article is taking something else.. Are you just posting the random article ?? Its is irrelvant.. I have a particular issue with the pattern and you are giving whole article ..
Please help in giving the refine..
If I would have known everything then I wouldn't have asked for help 🙂