PowerShell script can not load module when run from C# code.

  • Thread starter Thread starter zimopisec
  • Start date Start date
Z

zimopisec

Guest
I try to execute PCI script for shutting down VMVare servers from C#-written program ( by running command-line with parameters). In one of computers script starts execution but returns error "The specified module 'VMware.VimAutomation.Vds' was not loaded because no valid module file was found in any module directory."

Ir i run the same script directly from command-line prompt in the same computer- script successfully executed.

Computer is running on Windows 10, PowerShell 6.0/ Application is compiled as 32-bit code

Continue reading...
 
Back
Top