1

I can't seem to figure out why if I run the script in Jenkins (local machine), then I get the

The Windows PowerShell snap-in 'Microsoft.SharePoint.PowerShell' is not installed on this machine.

But if I run it outside Jenkins (i.e., running powershell from start menu), then it's fine. I looked at the GAC and the .dll is there.

123 456 789 0
  • 10,565
  • 4
  • 43
  • 72

1 Answers1

1

The solution I found is that since Jenkins runs 32-bit. I had to install JRE 64bit and point jenkins to run at 64bit so the powershell will run at 64-bit.

Using SharePoint for PowerShell always has to be 64-bit.

123 456 789 0
  • 10,565
  • 4
  • 43
  • 72