Solved

Error: The type or namespace name 'Management' does not exist in the namespace 'System'  (are you missing an assembly reference?) - when I put 'using System.Management.Automation;'

Posted on 2009-04-03
2
2,590 Views
Last Modified: 2013-12-17
Please let me know why I get this error message,
Error: The type or namespace name 'Management' does not exist in the namespace 'System'  (are you missing an assembly reference?) - when I put 'using System.Management.Automation;'
0
Comment
Question by:kyekim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
SaedSalman earned 250 total points
ID: 24064730
are you missing an assembly reference?)
Yes, you did, you should add the reference.

To do so,
in the solution explorer windows, right click on "References" and choose "add reference"
then, move to "Browse" tap
go to this path: c:\Windows\assembly
choose the package called "System.Management.Automation" and press enter.


Regards,
Saed Salman
0
 

Author Closing Comment

by:kyekim
ID: 31566429
Thank you for the answer.  
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief introduction to what I consider to be the best editor for PowerShell.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question