Prefetch Error: Unable to parse action script

I am trying to prefetch a file that has spaces on its name but BigFix is showing an error “Unable to parse action script”.

I also tried putting %20 for the spaces but BigFix throws an error regarding allowed ASCII characters.

You probably just need quotes round the file name.

If that isn’t it, post the script here - don’t forget to ensure the script is posted as formatted text (the button that looks like </>)

I also tried putting quotes but still having an error.

Here is the script:

prefetch "Docker Desktop Installer.exe" sha1:c2cb0612dcb6a1b749e11568b72b234fba53618f size:392089808 https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe sha256:edf5cb80e3e9ac230fdd1c2bd283d5ae846e659fbf45b3bd3d4233f06b3f497c

Ahh, that bit of the command.

I don’t think I’ve experienced this problem, but the name you give the file isn’t usually important. Remove the quotes and either remove the spaces or replace them with underscores, then try again.

You’ll just have to make sure you use the same name wherever you reference the file later in the script.

Sorry, I can’t test it at the moment - things like this always seem to appear at the weekend when all I have is my phone.

Subbing in underscores seems to work, as @trn suggested. If the file name is critical, you could follow with a move.

prefetch Docker_Desktop_Installer.exe sha1:c2cb0612dcb6a1b749e11568b72b234fba53618f size:392089808 https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe sha256:edf5cb80e3e9ac230fdd1c2bd283d5ae846e659fbf45b3bd3d4233f06b3f497c

move "__download\Docker_Desktop_Installer.exe" "__download\Docker Desktop Installer.exe"

I tried some other permutations but could not find one that allows spaces inside of the filename in the prefetch (BFv10.1)

Some things that don’t work:

prefetch "Docker Desktop Installer.exe" sha1:c2cb0612dcb6a1b749e11568b72b234fba53618f size:392089808 https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe sha256:edf5cb80e3e9ac230fdd1c2bd283d5ae846e659fbf45b3bd3d4233f06b3f497c

prefetch {"Docker Desktop Installer.exe"} sha1:c2cb0612dcb6a1b749e11568b72b234fba53618f size:392089808 https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe sha256:edf5cb80e3e9ac230fdd1c2bd283d5ae846e659fbf45b3bd3d4233f06b3f497c

prefetch Docker Desktop Installer.exe sha1:c2cb0612dcb6a1b749e11568b72b234fba53618f size:392089808 https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe sha256:edf5cb80e3e9ac230fdd1c2bd283d5ae846e659fbf45b3bd3d4233f06b3f497c