takeown /f "%systemroot%\system32\spool\printers" /R /A /D Y icacls "%systemroot%\system32\spool\printers" /inheritance:r /grant:r Users:(OI)(CI)F /T icacls "%systemroot%\system32\spool\printers" /inheritance:r /grant:r Everyone:(OI)(CI)F /T icacls "%systemroot%\system32\spool\printers" /inheritance:r /grant:r SYSTEM:(OI)(CI)F /T icacls "%systemroot%\system32\spool\printers" /inheritance:r /grant:r Administrators:(OI)(CI)F /T icacls "%systemroot%\system32\spool\printers" /grant Administrators:F /T icacls "%systemroot%\system32\spool\printers" /grant Users:F /T icacls "%systemroot%\system32\spool\printers" /grant SYSTEM:F /T icacls "%systemroot%\system32\spool\printers" /grant Everyone:F /T net stop spooler del "%systemroot%\system32\spool\printers" /f /a /s /q net start spooler