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
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
2 matches
Mail list logo