none
System::Management::Automation not recognized in cpp code RRS feed

  • Question

  • I need to call powershell cmdlets from cpp code. The cmdlets which will operate the vm's from the hyper-v.

    I found that to run the powershell cmdlets, will have to create powershell object and then could invoke the scripts I need to.

    But code fails at the line..

    using namespace System::Management::Automation;

    I am using a makefile to build my project.

    What libs, and dll's I need to add so the project will be able to recognize this namespace.


    Monday, April 14, 2014 1:33 PM

Answers

All replies