- CheckMates
- :
- Products
- :
- Harmony
- :
- Endpoint
- :
- Push operation remote command powershell script
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @Ciberdefesa
I was able to solve this problem by putting this information
Scripts Parameteres = $env:Path += ';C:\Program Files (x86)\CheckPoint'
PowerShell commands = -ExecutionPolicy ByPass
It worked perfectly, tks GEMINI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The parameter you gave to -File needs to be enclosed in quotes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, got it.
Sounds like TAC will have to be involved: https://help.checkpoint.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can You sent screenshot of this push operation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @Ciberdefesa
I was able to solve this problem by putting this information
Scripts Parameteres = $env:Path += ';C:\Program Files (x86)\CheckPoint'
PowerShell commands = -ExecutionPolicy ByPass
It worked perfectly, tks GEMINI
