Skip navigation

JSI Tip 10331. You cannot remove the Print Management Administration Pack more than once on Windows XP?

After removing the Print Management Administration Pack using Control Panel / Add or Remove Programs on Window XP, you install the Print Management Administration Pack again.

You can no longer remove the Print Management Administration Pack using Control Panel / Add or Remove Programs.

To workaround this behavior, I have scripted RemovePMAP.bat to remove the Print Management Administration Pack.

To remove the Print Management Administration Pack, open a CMD.EXE window and type RemovePMAP.

RemovePMAP.bat contains:

@echo off
setlocal
cd /d %SystemRoot%\Pmcsnap
Regsvr32 /s /u pmcsnap.dll
Regsvr32 /s /u puiobj.dll
Regsvr32 /s /u puiapi.dll 
del /q /f Pmcsnap.dll  
del /q /f Ppcsnap.dll  
del /q /f Puiapi.dll  
del /q /f Puiobj.dll  
del /q /f Pushprinterconnections.exe 
del /q /f Printmanagement.msc 
For /F "Tokens=2*" %%a in ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /V CSDVersion^|find "REG_SZ"') do (
 set SPNumber=%%b
)
set SPNumber=%SPNumber:Service Pack =%
call :QDEL>NUL 2>&1
endlocal
goto :EOF
:QDEL
REG DELETE "HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP%SPNumber%\Pmcmgmt" /F
REG DELETE "HKLM\SOFTWARE\Microsoft\Updates\Windows XP Version 2003\SP%SPNumber%\Pmcmgmt" /F



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish