Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Ciberdefesa
Explorer
Jump to solution

Push operation remote command powershell script

Hi,

 

I'm trying to run a script from push operation but it's returning the above message.

x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:51
+ -ExecutationPolicy ByPass -File C:\Program Files (x86)\CheckPoint\End ...
+                                                   ~~~
    + CategoryInfo          : ObjectNotFound: (x86:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Can someone help?

0 Kudos
1 Solution

Accepted Solutions
lluner
Advisor

hi @Ciberdefesa 

I was able to solve this problem by putting this information

powershell.jpg

Scripts Parameteres = $env:Path += ';C:\Program Files (x86)\CheckPoint'

PowerShell commands =  -ExecutionPolicy ByPass

 

It worked perfectly, tks GEMINI 

View solution in original post

12 Replies
JonnyRabinowitz
Employee
Employee

A suggestion ( although I have not been able to test myself). Does it help to put single quotes around the file path information?

'C:\Program Files (x86)\CheckPoint\End'

Ciberdefesa
Explorer

Yes, but it's not on me.

I cannot change the command by myself, can only add some parameters like i did for "-ExecutationPolicy ByPass".

0 Kudos
PhoneBoy
Admin
Admin

The parameter you gave to -File needs to be enclosed in quotes.

0 Kudos
Ciberdefesa
Explorer

You need read what a said before answer something that i cannot do.

The Endpoint automatically generate de "-File" parameter like i said i can only ADD other parameters.

0 Kudos
PhoneBoy
Admin
Admin

Ok, got it.
Sounds like TAC will have to be involved: https://help.checkpoint.com

0 Kudos
Pawel_eM
Participant

If You have the same issue i see  there is a typo i had the same issue (there is a typo in the hint in this push operation

-ExecutationPolicy ByPass and it should be -ExecutionPolicy Bypass


0 Kudos
Ciberdefesa
Explorer
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:48
+ ExecutionPolicy Bypass -File C:\Program Files (x86)\CheckPoint\Endpoi ...
+                                                ~~~
    + CategoryInfo          : ObjectNotFound: (x86:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

As you can see, nothing changed.

0 Kudos
Pawel_eM
Participant

Can You sent screenshot of this push operation? 

0 Kudos
Ciberdefesa
Explorer

Hi, attatched.

0 Kudos
Ciberdefesa
Explorer

As you can read in the start of this post, i can't change "File" parameter.

Endpoint add automatically, I only upload the file to portal and can add other parameters.

You can see the images I have sent in my last reply.

Thank you for the help.

0 Kudos
lluner
Advisor

hi @Ciberdefesa 

I was able to solve this problem by putting this information

powershell.jpg

Scripts Parameteres = $env:Path += ';C:\Program Files (x86)\CheckPoint'

PowerShell commands =  -ExecutionPolicy ByPass

 

It worked perfectly, tks GEMINI 

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events