Simple move shortcut to C:\Users\Public\Desktop

Hi Guys,
I have a very simple task that moves a remote desktop shortcut onto the public desktop.

The bigfix task runs as administrator and it executes fine.

The issue is that on the endpoint only local/domain users can open this shortcut. For all other users it comes up with the file could not be found.

If I log in as local/domain admin I can see that the icon is locked.

Has anyone encountered this before?

The Action Script is below.

begin prefetch block
add prefetch item name=15E505EF009672BA4B5E064C44CEC8E2DBB58DF3 sha1=15e505ef009672ba4b5e064c44cec8e2dbb58df3 size=2340 url=SWDProtocol://127.0.0.1:52311/Uploads/15E505EF009672BA4B5E064C44CEC8E2DBB58DF3/FileinQuestion.RDP.bfswd sha256=64c7276cfb0115ea4c3fa418db4753e9379e30482d84631086713f7ecb651243
end prefetch block

// All SWD files will go into a folder in the clients __BESData folder. This folder gets cleared on every restart.
parameter “baseFolder” = “__Download/”
// Move files into subfolders and unescape file names
move “__Download/15E505EF009672BA4B5E064C44CEC8E2DBB58DF3” “C:\Users\Public\Desktop\FileinQuestion.RDP”

When you use “move” in Windows, the permissions from the source file are preserved. In the __BESData folder, this means Administrators-only.

Use “copy” instead, so the new file gets new permissions inherited from the target folder.

2 Likes

Thank you kindly @JasonWalker