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,577 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
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…

732 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