[WiX-users] powershell is faling at Add-PSSnapin Microsoft.SharePoint.PowerShell is failing.

2010-08-31 Thread MYFLEX
Hi all, Please try to understand the problem and give some solution. I am executing the powershell exe as vbscript CA as follows. Function f1() MsgBox(exe started) Set objShell = CreateObject(Wscript.Shell) vPSscrIpt = powershell.exe -NoExit c:\yyy\aa.ps1 objShell.Run vPSscrIpt End Function

Re: [WiX-users] powershell is faling at Add-PSSnapin Microsoft.SharePoint.PowerShell is failing.

2010-08-31 Thread John Vottero
First, if the execution policy doesn't already allow the execution of scripts, your Set-ExecutionPolicy will never be executed. You can't execute a script to allow the execution of scripts. Are you running into a 32/64 bit issue? The Microsoft.SharePoint.PowerShell snap-in is only registered