/build/static/layout/Breadcrumb_cap_w.png

File Sync to MAC User Preferences folder

Hello,

I'm currently having trouble performing a file sync to the user preferences folder on a MAC.  If I use the full path (/Users/USERNAME/Library/Preferences), it syncs fine.  However, I'm looking to use a variable for the Username so it deploys to the current logged on user.  After research, I tried the following to no avail:

~/Library/Preferences
$HOME/Library/Preferences
$USER/Library/Preferences

~/Library/Preferences works on the MAC through Goto>Folder with successfully going to the current users preferences folder, it just doesn't work in KACE's file sync.  Any input on what can be used in the File Sync path field would be greatly appreciate.  Thanks in advance for the help.

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: ondrar 2 years ago
Black Belt
1

Top Answer

This might not be an exact answer, because I only have experience on Windows, but File Synchronizations can't be run as the logged in user, therefore, variables on Windows like %USERNAME% or %USERPROFILE%, or (I believe) $USER on Mac would go to the System folder, C:\WINDOWS\system32\config\systemprofile, or equivalent.  

I have one thing file I wanted to have synced to user profiles, so I made a script to copy it there, and had it run as the logged in user.


Comments:
  • Thank you for your response. As you mentioned, I had to perform a script running as the logged in user to get the file to the ~/Library/Preferences folder. It's unfortunate that File Sync won't allow this. - Fieds 2 years ago
    • You're welcome! - ondrar 2 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ