I don't believe I've seen this issue before. The error is coming from the
VBScript used to launch the Powershell script.

This is the script, your error is coming from objShell.Run strCMD,0. Maybe
someone else knows why you might be getting a "Permission Denied" error on
this script.

On Error Resume Next
Dim objshell
set objshell=createobject("Wscript.shell")

Set args = Wscript.Arguments
strCMD = "Powershell -sta -ExecutionPolicy Bypass -file "

For Each arg In args
strCMD = strCMD & " " & chr(34) & arg & chr(34)
Next

Err.Clear

objShell.Run strCMD,0

If Err.Number <> 0 Then
strMessage = "Error launching Powershell script." & chr(10) & "Error
Number: " & Err.Number & chr(10) & "Error Source: " & Err.Source & chr(10)
& "Error Description: " & Err.Description
objShell.Popup strMessage
End If



On Mon, Sep 8, 2014 at 12:30 PM, Wilson, Patrick (Pat) <
[email protected]> wrote:

>  Hello,
>
>
>
> I installed the right click tools and am getting an error when trying to
> run it.
>
>
>
>
>
>
>
>
>
> Pat Wilson
>
> SRPMIC Information Technology Desktop Services
>
> Senior Desktop Specialist
>
>
>
> CONFIDENTIALITY NOTICE:  This e-mail is intended solely for the person or
> entity to which it is addressed and may contain confidential and/or
> privileged information.  Any review, dissemination, copying, printing, or
> other use of the e-mail by persons or entities other than the addressee is
> prohibited.  If you have received this e-mail in error, please contact the
> sender or send an e-mail to the sender and immediately delete the material
> from your computer.   Thank you.
>
>  P Please consider the environment before printing this e-mail, and do so
> only if absolutely necessary.
>
>
>
>


Reply via email to