Running "CP" Command using Execute Script option

EladL

Bit poster
Hello,
Im trying to run a CP command from SCCM Console using Execute Script option.
The Command takes a file located on the users's Desktop and copies it to a local location.
Here is the command: cp ~/Desktop/OneDriveUpdater_plist_Pref.html ~/Library/Preferences/com.microsoft.OneDriveUpdater.plist
Im getting an error while running it (it works well locally).
Does somebody have an idea?
Thanks!
 
Back
Top