Under what conditions do some PowerShell modules become unavailable?
When I create a process with CreateProcess()and command line
powershell -Command "Get-Module -ListAvailable"
I do not get all the modules that I get when I execute the same statement from the command line.
Are there any fields that I have to set inside the STARTUPINFO or PROCESS_INFORMATION structures?
flacs source
share