Jump to content


Established Members
  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender

karoljay's Achievements


Newbie (1/14)



  1. Thank you both for your help! I needed to apply a quick fix to get this working and I created a package with the "exit /b 0" at the end. YPCC, yes this was an application - to be honest I don't have that much experience yet with creating applications from scripts and not from msi, so definitely I made a mistake, most probably with the detection method. I just put there some random file name as my understanding is that if sccm doesn't find the file the application can run - right? OK - when I wrote the above sentence I just realized, where the problem is , after the installation the random file just isn't there and this is why Software Center shows as failed - please correct me if I'm wrong. BTW - there was no net use command previously and the logs were saved on the file share --> "\\servername\log_folder\" Happy New Year!
  2. Actually I made the share available for all users and the script does everything it needs to do including the copy process, it only shows failed status in Software Center - which is confusing for end users and new service desk staff.
  3. I created an application in SCCM, which is initiated by a batch script - it launches MRT security scan - The computer on which I run the application is scanned successfully, the MRT also creates a success log but in the end in Software Center the application is visible as failed. The application is in "installing" state untill the scan is finished, when the actions are finished it fails - it does not time out as the timeout is set to arround 500 minutes. What I thought of is adding "exit /b 0" to give SCCM the "error 0" exit code - unfortunately no success. The batch file has in it: %SYSTEMROOT%\System32\mrt.exe /F:Y /Q for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I set datetime=%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2%_%datetime:~8,2%-%datetime:~10,2%-%datetime:~12,2% echo f | xcopy /f /y "%SYSTEMROOT%\Debug\"mrt.log "\\servername\log_folder\"%datetime%-%computername%scan.log exit /b 0 Now when I look at the script - maybe I should put the MRT script in one batch and create a 2nd batch which would call the MRT scan script and on the end of this batch I should have the exit /b 0 ? What do you think?
  • Create New...