Solved

Adding files via Group Policy - path not found using variable

Posted on 2013-06-13
3
432 Views
Last Modified: 2013-06-14
We are using the File Preference to copy a file to a users profile at logon to a server in a terminal server farm.  So, the profiles on the server are deleted.  The lovely app know as QuickBooks (sarcasm) wants to put an INI file in AppData/Local....which is not part of the roaming portion of the profile.

We are using the File Preference policy to try and copy the file at logon.  HOwever, we are getting path not found errors when the policy processes.  The source location is fine and fully accessible.  So, I think this error is for the destination (although it is not clear).  We are trying to use variables.  We tried %localappdata%/Intuit/ and C:/Users/%username%/AppData/Local/Intuit/, but neither of those worked.

Will the File Preference GP create the folders if they don't exist?
0
Comment
Question by:OTAdmin
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
yo_bee earned 500 total points
ID: 39245337
Was this proven in your test if so why not try using the Folder Preference as well and make sure that the folder is at a higher order than the file/files.

the other option is to create a Batch script to make the directory and then copy the file.

MD c:\users\%UserName%\Appdata\local\Intuit\
copy Source c:\users\%UserName%\Appdata\local\Intuit\
0
 

Author Closing Comment

by:OTAdmin
ID: 39247690
We went with a simpler path first and I found a list of possible variables for GP preferences, which is slightly different that the list I'm used to.
0
 
LVL 22

Expert Comment

by:yo_bee
ID: 39248015
I assumed you were using those variables.
How did you locate them?
If you did a Internet Search and you found a matrix of the list there is an easier way.
I think you press F4 or F3 and it will give you the list.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now