Hello everyone
I have a COM Object that want to use it in my management pack. When I write the powershell command "new-object -comObject ... " to create it outside of MP and in a ps1 file it works without any error. However when I write it in my MP, this error is showed in event viewer: "Retrieving the COM class factory for component with CLSID {clsID} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))."
I have to mention that when I use vb script in my MP and using "CreateObject()", I don't have any problem.
How can I use "new-object -comObject ... " in my management pack?
thank you all
Alireza