Error running ps1 from c# code (Office 365)
问题 When creating the sharepoint site using ps1 file from C# code in office365. This error is coming The 'connect-sposervice' command was found in the module 'Microsoft.Online.SharePoint.PowerShell', but the module could not be loaded. For more information, run 'Import-Module Microsoft.Online.SharePoint.PowerShell'. Running the ps1 directly in powershell is giving the desired result, but not working properly using c# code 回答1: I had the same problem and solve it this way: Locate file C:\Program