---
title: "Why can't recognize ManagementObjectSearcher class in VS2010 C#?"  
description: "Why can't recognize ManagementObjectSearcher class in VS2010 C#?"  
author: "Samuel Fernandes"  
published: 2013-10-22  
updated: 2013-10-22  
canonical: https://www.mindstick.com/forum/1708/why-can-t-recognize-managementobjectsearcher-class-in-vs2010-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Why can't recognize ManagementObjectSearcher class in VS2010 C#?

I am creating an C# [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) which is provide me all [connected](https://www.mindstick.com/articles/12941/link-building-and-search-engine-rankings-how-are-they-connected) [USB device](https://answers.mindstick.com/qa/50233/what-to-do-with-the-issues-that-may-pop-up-at-the-time-of-usb-device-installation) of my computer and for that I need the [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) of ManagementObjectSearcher class but why VS2010 is not recognize this class.

## Replies

### Reply by Royce Roy

You need to add reference of System.Management Manually through VS 2010.

- Right Click on Project.
- Select Add References.
- Select the Assemblies Tab and Search for System.Management . Then Add Reference.


---

Original Source: https://www.mindstick.com/forum/1708/why-can-t-recognize-managementobjectsearcher-class-in-vs2010-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
