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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This article will help you understand what HashTables are and how to use them in PowerShell.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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