Issue with TS SCCM

PerserPolis-1732 1,971 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 Security Intune Configuration Manager Updates
Microsoft Security Intune Configuration Manager Application
Microsoft Security Intune Configuration Manager Other
Microsoft System Center Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    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,971 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.