Hi all,
I've just start to try out Win 8 and have come across a problem with use of Powershell from C#. When trying to run the following in a pipeline:
Import-Module -Name ServerManager
a failure is reported that states that the module cannot be loaded due to the manifest containing one or more invalid members. In this case it's the HelpInfoUri that is causing the problem. I did some trawling and found out that this exact same problem was reported for the Win 8 Client.
Is there a workaround that allows v3.0 of Powershell to be used by the C# code (which will load the module as that appears to be what happens when running powershell.exe) rather than v2.0?
Edit: Forgot to mention, this is with the code compiled to .Net v3.5 rather than v4.0 (which works).
Cheers!
- Edited by rob.q Friday, March 09, 2012 4:59 PM Extra info added