Jump to content

Teams - Automatic Background deployment


Joe Savage

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...