Guidelines
We have new content about printers, Click here to check it out!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
HP Officejet 3830
Microsoft Windows 10 (64-bit)

When trying to uninstall printer software for hp3830 receive error messages 2502 and 2503 - how do I get rid of them?

1 REPLY 1
HP Recommended

These 2502 and 2503 errors are because a program needs to install using the temp folders and they do not have permission to do so. I have been doing IT for 35+ years and my son wanted to install Minecraft the Java Edition and didn't want the Windows 10 version. After all, he paid for it. This fix is easy and universal for 2502 and 2053 errors.

These next steps give permissions to the temp folder to fix not having those errors. "Game Over" computer! Hi Score, me, cyanohydrax.


Press the Windows key on the keyboard and while holding that key down, press the letter "R"
The Run command will display
type cmd
Hold the control key + the shift key and while holding both of those keys, use the mouse to click the OK button
Answer Yes if you are prompted with a Yes/No question

copy and paste these commands

takeown /f "%systemroot%\Temp" /R /A /D Y
icacls "%systemroot%\Temp" /inheritance:r /grant:r Users:(OI)(CI)F /T
icacls "%systemroot%\Temp" /inheritance:r /grant:r Everyone:(OI)(CI)F /T
icacls "%systemroot%\Temp" /grant Administrators:F /T
icacls "%systemroot%\Temp" /grant Users:F /T
icacls "%systemroot%\Temp" /grant SYSTEM:F /T
icacls "%systemroot%\Temp" /grant Everyone:F /T


takeown /f "%temp%" /R /A /D Y
icacls "%temp%" /inheritance:r /grant:r Users:(OI)(CI)F /T
icacls "%temp%" /inheritance:r /grant:r Everyone:(OI)(CI)F /T
icacls "%temp%" /grant Administrators:F /T
icacls "%temp%" /grant Users:F /T
icacls "%temp%" /grant SYSTEM:F /T
icacls "%temp%" /grant Everyone:F /T


Done. No reboot necessary.

- cyanohydrax

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.