Joe Savage Posted July 24, 2020 Posted July 24, 2020 Hi there, Just wondering if this is an option. I attempted to do the following with batch, but didn't work due to the %appdata% value resolving to somewhere in C:\Windows. mkdir %appdata%\Microsoft\Teams\Backgrounds\Uploads copy "\\SERVER\SHARE\Teams Backup Images\*.jpg" %appdata%\Microsoft\Teams\Backgrounds\Uploads /y Any ideas? Cheers, Joe
Joe Savage Posted July 29, 2020 Author Posted July 29, 2020 I've banged my head against this and found something workable. Just dumps the pictures from the server into every user folder under C:\users. Bypasses the need to pass %username% or %appdata% properly. cd C:\users for /f %%i in ('dir /b') do mkdir c:\users\%%i\appdata\roaming\Microsoft\Teams\Backgrounds\Uploads for /f %%i in ('dir /b') do copy "\\SHARED SERVER LOCATION\*.jpg" C:\users\%%i\appdata\roaming\Microsoft\Teams\Backgrounds\Uploads /y Hope this helps someone eventually! Cheers, Joe
eDecisions Posted July 31, 2020 Posted July 31, 2020 Install Chocolatey choco install microsoft-teams.install -fvy
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now