Failed Action Command - Executing a Batch File (.BAT)

(imported comment written by ortalbeny12345654321)

HI Jason,

i didn’t understand, where should i add the
"action uses wow64 redirection false" ?

i have a batch that uses the command query.exe, and i get the error :

‘“c:\windows\system32\query.exe”’ is not recognized as an internal or external command.

i also tried to add the command to the same folder of the task, but it didn’t work.

if i added what you wrote above it should fix it? please write where should i write it in the action.

Thanks,

Ortal

(imported comment written by ortalbeny12345654321)

HI,

I’ve also checked that it happend only on 64bit on win8!

(imported comment written by JasonWalker)

You’d put “action uses wow64 redirection false” anywhere before your call to “wait” or “waithidden” to use the real \windows\system32 directories. I usually put it as the first line of my action script.

//actionscript here

action uses wow64 redirection false

//with wow64 redirection disabled, this runs the native (i.e. x64) version of query.exe

waithidden “{pathname of system folder}\query.exe” (parameters for what you want it to do)

// and this runs the 64-bit version of cscript to execute vbscript:

waithidden “{pathname of system folder}\cscript.exe” “__Download\myscript.vbs”

(imported comment written by JasonWalker)

Oh, and if you don’t set “action uses wow64 redirection false”, the cmd.exe that you spawn will be the 32-bit redirected \windows\syswow64\cmd.exe as well.

(imported comment written by ortalbeny12345654321)

Hi,

Thank you for your reply.

Is there a way to run action in bigfix that will run with another user permissions?

Beacuse now it works, but for users that are not member of administrators get access denied.

Thanks,

Ortal