Runascurrent vbs script

(imported topic written by bc6591)

I cant seem to get the RunAsCurrentUser to work as follows:

continue if {exists current user}

wait \bigfix\install\bes\RunAsCurrentUser.exe --w script \bigfix\Install\Director\AddProxyOverride.vbs

Can anyone enlighten me? I know the script works. I am using the RunAsCurrentUser-2.0.exe ( I just renamed because it didnt seem to work. The Task says that it completed. but no change. It is a small script that adds one ip address to the proxy exceptions for the user.

Thanks,

bc

(imported comment written by MattBoyd)

I see a couple issues here… Are you trying to run RunAsCurrentUser.exe from a network share? That’s probably not a very reliable method.

You could use this instead:

prefetch RunAsCurrentUser.exe sha1:5512ef51a98dff1aa910a8189a0361c161fa703f size:212992 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.2.exe
createfile until ENDFILE
' Add the contents of your VBScript here
ENDFILE
copy __createfile AddProxyOverride.vbs
waithidden __Download\RunAsCurrentUser.exe --w "{pathname of system folder & "\cscript.exe"}" AddProxyOverride.vbs

Note: I did not test this action script.

(imported comment written by bc6591)

We tried a variation of this and it worked just fine.

Thanks, Boyd