Under what conditions do some PowerShell modules become unavailable?
When I create a process with CreateProcess() and the command line
powershell -Command "Get-Module -ListAvailable"
I don’t get all the modules I get when executing the same statement from a command prompt.
Are there any fields I have to set inside the STARTUPINFO or PROCESS_INFORMATION structs?
Some modules are not available in the 32 bit version of PowerShell. On Windows Server 2008 R2 with PowerShell v1.0 these are: