Issue with TS SCCM

PerserPolis-1732 1,326 Reputation points
2023-04-25T06:02:30.51+00:00

Hi, I have a batch file for backup the Firefox bookmarks and I have created a package and TS for deploy that batch file. It is working, but it backup only the bookmarks of the Administrator and not of domain user.

set copycmd=/y
c:
if not exist "%userprofile%\appdata\roaming\Mozilla\firefox\profiles.ini" goto:EOF
cd "%userprofile%\appdata\roaming\Mozilla\firefox\"
for /f "tokens=1,2 delims=/" %%i in ('findstr /l ".default" profiles.ini') do call set var1=%%j
cd profiles\%var1%
if not exist g:\backup (mkdir g:\backup)
copy places.sqlite g:\backup

My TS:

tsfirefox.png

tsfirefox

I see in the log file "smsts" the following entry C:>if not exist "C:\Users\Administrator\AppData\Roaming\Mozilla\firefox\profiles.ini" goto:EOF C:>cd "C:\Users\Administrator\AppData\Roaming\Mozilla\firefox" C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox>for /F "tokens=1,2 delims=/" %i in ('findstr /l ".default" profiles.ini') do call set var1=%j As you see the backup does work, but it is backup the Administrator account. If I run the batch file manually on my machine, it backup the bookmarks of domain\user, but with SCCM and TS does not work. Any Idea? Regards

Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
817 questions
Microsoft Configuration Manager Updates
Microsoft Configuration Manager Updates
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Updates: Broadly released fixes addressing specific issue(s) or related bug(s). Updates may also include new or modified features (i.e. changing default behavior).
959 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
455 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 40,076 Reputation points Microsoft Vendor
    2023-04-26T02:56:51.73+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    Have you tried to change the account as the domain user under "Run this step as the following account"?

    You may also try to uncheck the "Run this step as the following account".


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    0 comments No comments

  2. PerserPolis-1732 1,326 Reputation points
    2023-04-26T06:28:26.4066667+00:00

    Your answer is not satisfactory. I have checked with all user account and without user account. You can test it in your environment, I hope you have a test envirmenet