Page 1 of 1

Microsoft Office settings copy to another profile on Windows 10

Posted: 20 Sep 2023 05:22
by falcios
I backed up most of my Microsoft Office settings, some of which include
Excel Templates
Normal Template
Toolbars
AutoCorrection ACL Files

How do I copy these settings files to 5 different profile names.

In the script, I don't want to repeat all the commands for each profile. I would like to have only one set of commands and have DOS ask for my input as to what the profile name to copy to and to makes changes accordingly.

I hope this makes sense.
How can I go about creating a script as I mentioned?

Thanks in advance

Re: Microsoft Office settings copy to another profile on Windows 10

Posted: 20 Sep 2023 12:25
by Aacini
First of all, I encourage you to carefully read this post (that is placed at beginning of this forum, so you surely have seen before).

Then, I invite you to read this funny post.

Finally, you should edit your question and add all the missing details...

Antonio

Re: Microsoft Office settings copy to another profile on Windows 10

Posted: 20 Sep 2023 20:06
by Batcher
NoAsk.bat

Code: Select all

@echo off
set "Profile1=C:\Users\UserA"
set "Profile2=C:\Users\UserB"
set "Profile3=C:\Users\UserC"
set "Profile4=C:\Users\UserD"
set "Profile5=C:\Users\UserE"
for %%i in ("%Profile1%" "%Profile2%" "%Profile3%" "%Profile4%" "%Profile5%") do (
    if exist "%%i" (
        REM your copy commands
        copy "xxx" "%%i"
    )
)

Re: Microsoft Office settings copy to another profile on Windows 10

Posted: 20 Sep 2023 20:10
by Batcher
ExcludeProfile.bat

Code: Select all

@echo off
for /f "delims=" %%i in ('dir /b /ad "C:\Users" ^| findstr /v /b /e /c:"%username%" /c:"Public"') do (
    REM your copy commands
    copy "xxx" "%%i"
)

Re: Microsoft Office settings copy to another profile on Windows 10

Posted: 21 Sep 2023 06:32
by falcios
Thanks Batcher for your help.

I will give it a try. I have a basic knowledge of DOS commands. I hope I can make your batch file work for my situation.

Thanks in advance.