Score:0

Struggling to deploy files to %appdata% subfolders with GPO

ar flag

I have a few minor MSOffice projects which require files to exist in various subfolders of %appdata%, and I'm trying to deploy these to a test OU but have been unable to push the files to their respective folders in the test group.

The files exist in

\\svr01.company.internal\shared\test

I created GPOs to push these out to

%appdata%\Local\Microsoft\Office, %appdata%\Roaming\Microsoft\Outlook, and %appdata%\Roaming\Microsoft\Templates\Document Themes

respectively, as well as a test.txt to C:\temp as a 'proof of life' type deal.

The test.txt appeared fine, but the other files aren't where they're supposed to be on the test machine, despite multiple restarts, gpupdates, and no obvious errors in gpresult

I have also tried changing the destination path to %userprofile%\AppData\[etc] and %AppDataDir%\[etc], as well as C:\Users\%LogonUser%\AppData\[etc], with no success

I've tried these as both Create and Update options within the GPO, and have tried it both as a computer>preference>file and user>preference>file, yet again to no avail.

ar flag
Are you using Group Policy Preferences Files to do the push? Try using `%AppDataDir%`. (Tip: In GPP Press F3 to see variable table)
BenjiHare avatar
ar flag
@jfrmilner per my post, yes I have tried %AppDataDir% and still not had the desired results
cn flag
Microsoft created excellent logging for you, documented here: https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/a-treatise-on-group-policy-troubleshooting-8211-now-with-gpsvc/ba-p/400304 . I'm not sure why a test would have included the C:\Temp folder though, as it appears the need is for the user appdata location (which is applied during logon), not the system appdata location (which is applied during startup, and affected by network failures).
BenjiHare avatar
ar flag
@GregAskew the test.txt in c:\temp was added to make sure that SOMETHING was working because otherwise it wasn't clear if the policy was actually applying anything - getting a file pop up anywhere was basically a sanity check
BenjiHare avatar
ar flag
@GregAskew I'll take a deeper look into logging but so far we're seeing that the policy is applying just fine, so the missing files are causing many scratched chins
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.