locked
Uninstalled Defender in Vista now cannot reinstall RRS feed

  • Question

  • After having many failed attempts at updating Defender, following an upgrade from XP SP2 to Vista Business, I decided to uninstall and reinstall.  No problem with the uninstall but on the reinstall the installer informs me that Defender is a part of Vista and doesn't need to be installed.  Only option is Ok and installation stops.

    I read on a couple of posts that Defender could not be uninstalled, worked for me!

    Anyone know how to get it back? 

    Friday, January 26, 2007 7:18 PM

Answers

  • After much searching I think I found a poosible fix.  The root cause of 0x8007006 is similar as 0x8007002. It can be caused by damaged registry information or Windows Defend files.  

     

    Step 1: Back up Registry

    ==================

    1. Click Start, type "regedit" (without quotation marks) in the search bar and press Enter.

    2. In the Registry Editor, click File menu, and click Export.

    3. In the Save In list, select the folder where you want to save the backup.

    4. In the File Name box, and type a name for your backup file, such as "Options" or "Backup".

    5. Click Save.

     

    Step 2: Create and Run the Registry File

    ==================

    1. Click Start, type "notepad C:\register.reg" (without quotation marks) in the Search bar, and then click OK. Choose Yes when you are prompted to create a new file.

    2. Copy the following texts between the star marks and then paste them into the opened Notepad window:

     

    ************************BEGIN**************************

     

    Windows Registry Editor Version 5.00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]

    "DisplayName"="@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-103"

    "ErrorControl"=dword:00000001

    "Group"="COM Infrastructure"

    "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\

    74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\

    00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\

    6b,00,20,00,73,00,65,00,63,00,73,00,76,00,63,00,73,00,00,00

    "Start"=dword:00000002

    "Type"=dword:00000020

    "Description"="@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-3068"

    "DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,00,00

    "ObjectName"="LocalSystem"

    "ServiceSidType"=dword:00000001

    "RequiredPrivileges"=hex(7):53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,\

    00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,\

    65,00,00,00,53,00,65,00,42,00,61,00,63,00,6b,00,75,00,70,00,50,00,72,00,69,\

    00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,52,00,65,00,73,00,\

    74,00,6f,00,72,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,\

    00,00,00,53,00,65,00,44,00,65,00,62,00,75,00,67,00,50,00,72,00,69,00,76,00,\

    69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,68,00,61,00,6e,00,67,\

    00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,\

    6c,00,65,00,67,00,65,00,00,00,53,00,65,00,53,00,65,00,63,00,75,00,72,00,69,\

    00,74,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,\

    00,00

    "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\

    00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Parameters]

    "ServiceDllUnloadOnStop"=dword:00000001

    "ServiceDll"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,\

    00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\

    20,00,44,00,65,00,66,00,65,00,6e,00,64,00,65,00,72,00,5c,00,6d,00,70,00,73,\

    00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Security]

    "Security"=hex:01,00,14,80,04,01,00,00,10,01,00,00,14,00,00,00,30,00,00,00,02,\

    00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

    00,00,02,00,d4,00,07,00,00,00,00,00,28,00,ff,01,0f,00,01,06,00,00,00,00,00,\

    05,50,00,00,00,b5,89,fb,38,19,84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,\

    00,0b,28,00,00,00,00,10,01,06,00,00,00,00,00,05,50,00,00,00,b5,89,fb,38,19,\

    84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,00,00,14,00,fd,01,02,00,01,01,\

    00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,\

    05,20,00,00,00,20,02,00,00,00,00,14,00,9d,01,02,00,01,01,00,00,00,00,00,05,\

    04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,\

    00,28,00,15,00,00,00,01,06,00,00,00,00,00,05,50,00,00,00,49,59,9d,77,91,56,\

    e5,55,dc,f4,e2,0e,a7,8b,eb,ca,7b,42,13,56,01,01,00,00,00,00,00,05,12,00,00,\

    00,01,01,00,00,00,00,00,05,12,00,00,00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Enum]

    "0"="Root\\LEGACY_WINDEFEND\\0000"

    "Count"=dword:00000001

    "NextInstance"=dword:00000001

     

    *************************END***************************

     

    After you paste the above commands, please close the Notepad window. Choose Yes when you are prompted to save the file. Save this file as the exact same name as the registry backup file you saved earlier as this must replace that file.

     

    3. Double click the notepad file that you just saved.

    4. When you receive a message box asking "Are you sure you want to add the information in the REG file to the registry", choose "Yes"

    5. You will receive another message box saying "Information in the REG file has been successfully entered into the registry", please click "OK" to confirm.

    6. Restart the computer.

     

    NOTE:Its easier if you save them both to your desktop.
    Wednesday, April 18, 2007 7:15 PM

All replies

  • Do you have another security/anti-virus program (such as Symantec) installed?  These will turn off Defender which is automatically installed with Vista.  If you uninstall them, Defender will turn back on...

    If you don't and you were actually able to uninstall Defender (must be a result of upgrading from XP, because I dont have the option to uninstall Defender in my clean install) you may be stuck reinstalling Vista to get it back...

    Friday, January 26, 2007 9:42 PM
  • I too am having the defender issue. I didn't know that I shouldn't upgrade from XP to Vista with Windows Onecare 1.1 installed. During the steps I've follwed from MS beta group on Onecare, disabling/uninstalling Defender was part of the problem. When you download it from the MS site, it says it can't install because Vista already has Defender.

    Part of getting Onecare 1.1 off and 1.5 on was to disable and remove several services, running the installation clean up tool, lots of other things. In the process, I killed Vista defender.

    I got an email that the beta ended on Onecare and I have stopped getting responses by email from the guy who was working with me... Not sure what else I could do to get Defender back, as you said, reinstall maybe. Ugh!

    Onecare wouldn't install, I had Norton 360 and was very happy with it, but that beta trial is done. I tried to reinstall, and even it wouldn't reinstall.  Right now I'm running AVG because its the only thing that would install.

    Other than that, the machine seems to be performing really well. Other than occasionally losing IDE connection with one of my three burners with Nero if I happen to insert two blanks at the same time, or if I cancel a burn. A few things, none major, but I'd like to get defender back.

    Sunday, February 4, 2007 7:29 AM
  • Same problem here, I tried to reinstall using "repair" from O/S upgrade CD but it does not exist. I had to tweak so many things after the installation upgrade that i do not want to have to re-install vista again.

    I had to remove Defender and Live OneCare for the same reasons as the others.

    Skooby

    Monday, February 5, 2007 3:06 AM
  • Mark,

    I had already uninstalled Defender before adding other programs.  I finally just gave up looking for solutions and just did a fresh install of Vista.

    Thanks for the input!

    Monday, February 5, 2007 4:55 PM
  • I am in the same boat. I upgraded from XP to Vista.  I then uninstalled Windows Defender.  Vista is now having a security fit because it cannot install definition updates for Windows defender.  How, how, how do I reinstall it?
    Tuesday, February 13, 2007 7:36 PM
  • Same problem here. I did a reinstall (no repair option) of Vista, but the problem is there again. Have hunted the forums and the only solution I have found is for XP, and not valid for Vista because Defender can't be installed.

    Tuesday, February 13, 2007 11:32 PM
  • Identical problem here...

    1. Upgraded from XP to Vista with OneCare installed
    2. Performed manual removal after the upgrade
    3. Windows Defender now fudged and cannot repair / reinstall
    4. Windows Vista CD does not offer a repair option for this

    Just like the rest, feeling like Microsoft left a gaping hole here with no real solution.  Doesn't make sense that there is no msi / repair option to reinstall Windows Defender on a Vista platform.  At least with XP there was an option to repair install which would for all intents rebuild the core to fix things like lost dll's, corrupt dll's, or corrupt system registry keys...

    Another (im)patiently waiting Vista owner..
    Friday, March 2, 2007 11:17 PM
  •  

          Ditto,  I updated from xp to vista without uninstalling one care or defender beta.  Since then I have spoken via email with a microsoft tech trying to fix this problem with no luck..  We tried various things none of them worked.  I not only can't fing any reference to windows defender anymore and when I looked for a trace of it in the registry, nothing.  Does anyone know the version number of the defender that shipped with vista?  I also tried what somone else here suggested which was going in to system cinfig and enabling defender there.  When I went there to find it there was no trace of defender.  After my vista install i did have defender but it was still the beta version.  After speaking with the microsoft tech I uninstalled the beta version as a potential fix as she told me it was mpossible to uninstall the vista version of defender as it is part of the program.  Butwhen I uninstalled the beta version that was the last reference I ever saw to any Defender on my system.  Any help would be greatly appreciated

    Thanks

    Saturday, March 10, 2007 1:50 PM
  • same exact situation here XP->Vista, uninstalled vista because it wouldn't upgrade now it's gone - can't reinstall - MS are you listening?

    Saturday, March 24, 2007 1:11 AM
  • After calling support and getting it escalated up 2 levels we finally found a solution.  For my situation, even though I uninstalled Windows Defender from my machine, the directory for it still existed under Program Files.  For some reason it was locked so that even as the administrator I could not delete the folder!  Likely something to do with the new Vista user access control mechanisms.  Anyway, I manually took ownership of the folder (Program Files\Windows Defender), gave myself full rights, and DELETED it.  Reinstallation of Onecare worked like a charm from there in...

     

    Apparently the OneCare installation is not slick enough to advise the user it could not delete the folder - it just fails...  Hope this helps someone out there

     

    Cheers,

    Robert

    Wednesday, March 28, 2007 1:52 PM
  • I have the same issue.  I cannot reinstall defender. It says it's already installed and that I don't need to install it again. I tried taking ownership of the Windows Defender directory. I am an administrator but it tells me that access is denied. I haven't been able to figure out how to logon as the administrator.  Do I need to logon as the administrator before taking ownership?  How do I get Vista to prompt me for the administrator logon?  Ctrl-Alt-Del twice doen't seem to work anymore.

     

    Thanks

    Frank

    Thursday, March 29, 2007 12:39 PM
  • UPDATE:     After patiently waiting for an answer, i decided to reinstall Vista. It took several hours, but everything is now installed and it works great. Did not loose anything with the second install.

    SQL server did not need to be "adjusted" and i did not have any of the problems related to the original install from XP to Vista Business

     

     

    Thursday, March 29, 2007 12:46 PM
  • Hey skooby thats great that you got it fixed.  a couple of questions did you uprade or clean install?  when you say you didn't lose anything do you mean all your current files remained after?

      Also What did you mean that the SQL server didn't need to be adjusted?

    Thanks

    Thursday, March 29, 2007 2:17 PM
  • Hi Frank.. I haven't figured how to reinstall defender in vista yet but to take ownership you must first go to your windows defender in start menu and right click, then go to properties, then open the security tab and go down to advanced and open it.  After opening it go to the owner tab and go down to edit and then once in you can select to change ownership to yourself.  Hope that was clear enough and helps a bit. 

     Also to run as admin just right click on the windows defender in the start menu then near the top you'll see run as administrator, just click it and away you go.

    Happy Huntin'

    Thursday, March 29, 2007 2:31 PM
  • Didn't try this myself - so this might not solve it, but you could start by clicking Start  and then User graphical Icon.  That brings up screen for changing graphic, password, etc.. There's an option to Turn User Account Control off - turn it off.  Think that makes you reboot etc.. Then go back and try deleting the folder.  This assumes you are logging in using the default account , which is an administrative account.  Admin rights normally are sufficient to delete anything in the system - but with the UAC (user account control) enabled, it actually trumps admin with another user account - anyway, too much detail.  Hope that helps a bit more.

     

    Cheers

    Thursday, March 29, 2007 3:08 PM
  • Thanks for the reply. Unfortunately even after taking ownership and deleting the directory I could not reinstall Defender.  Tried removing regisitry entries but access was denied. Doesn't Microsoft monitor these forums? Surely they're aware of this issue.

     

    Frank

    Saturday, March 31, 2007 5:44 PM
  • After much searching I think I found a poosible fix.  The root cause of 0x8007006 is similar as 0x8007002. It can be caused by damaged registry information or Windows Defend files.  

     

    Step 1: Back up Registry

    ==================

    1. Click Start, type "regedit" (without quotation marks) in the search bar and press Enter.

    2. In the Registry Editor, click File menu, and click Export.

    3. In the Save In list, select the folder where you want to save the backup.

    4. In the File Name box, and type a name for your backup file, such as "Options" or "Backup".

    5. Click Save.

     

    Step 2: Create and Run the Registry File

    ==================

    1. Click Start, type "notepad C:\register.reg" (without quotation marks) in the Search bar, and then click OK. Choose Yes when you are prompted to create a new file.

    2. Copy the following texts between the star marks and then paste them into the opened Notepad window:

     

    ************************BEGIN**************************

     

    Windows Registry Editor Version 5.00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]

    "DisplayName"="@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-103"

    "ErrorControl"=dword:00000001

    "Group"="COM Infrastructure"

    "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\

    74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\

    00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\

    6b,00,20,00,73,00,65,00,63,00,73,00,76,00,63,00,73,00,00,00

    "Start"=dword:00000002

    "Type"=dword:00000020

    "Description"="@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-3068"

    "DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,00,00

    "ObjectName"="LocalSystem"

    "ServiceSidType"=dword:00000001

    "RequiredPrivileges"=hex(7):53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,\

    00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,\

    65,00,00,00,53,00,65,00,42,00,61,00,63,00,6b,00,75,00,70,00,50,00,72,00,69,\

    00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,52,00,65,00,73,00,\

    74,00,6f,00,72,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,\

    00,00,00,53,00,65,00,44,00,65,00,62,00,75,00,67,00,50,00,72,00,69,00,76,00,\

    69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,68,00,61,00,6e,00,67,\

    00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,\

    6c,00,65,00,67,00,65,00,00,00,53,00,65,00,53,00,65,00,63,00,75,00,72,00,69,\

    00,74,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,\

    00,00

    "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\

    00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Parameters]

    "ServiceDllUnloadOnStop"=dword:00000001

    "ServiceDll"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,\

    00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\

    20,00,44,00,65,00,66,00,65,00,6e,00,64,00,65,00,72,00,5c,00,6d,00,70,00,73,\

    00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Security]

    "Security"=hex:01,00,14,80,04,01,00,00,10,01,00,00,14,00,00,00,30,00,00,00,02,\

    00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

    00,00,02,00,d4,00,07,00,00,00,00,00,28,00,ff,01,0f,00,01,06,00,00,00,00,00,\

    05,50,00,00,00,b5,89,fb,38,19,84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,\

    00,0b,28,00,00,00,00,10,01,06,00,00,00,00,00,05,50,00,00,00,b5,89,fb,38,19,\

    84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,00,00,14,00,fd,01,02,00,01,01,\

    00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,\

    05,20,00,00,00,20,02,00,00,00,00,14,00,9d,01,02,00,01,01,00,00,00,00,00,05,\

    04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,\

    00,28,00,15,00,00,00,01,06,00,00,00,00,00,05,50,00,00,00,49,59,9d,77,91,56,\

    e5,55,dc,f4,e2,0e,a7,8b,eb,ca,7b,42,13,56,01,01,00,00,00,00,00,05,12,00,00,\

    00,01,01,00,00,00,00,00,05,12,00,00,00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Enum]

    "0"="Root\\LEGACY_WINDEFEND\\0000"

    "Count"=dword:00000001

    "NextInstance"=dword:00000001

     

    *************************END***************************

     

    After you paste the above commands, please close the Notepad window. Choose Yes when you are prompted to save the file. Save this file as the exact same name as the registry backup file you saved earlier as this must replace that file.

     

    3. Double click the notepad file that you just saved.

    4. When you receive a message box asking "Are you sure you want to add the information in the REG file to the registry", choose "Yes"

    5. You will receive another message box saying "Information in the REG file has been successfully entered into the registry", please click "OK" to confirm.

    6. Restart the computer.

     

    NOTE:Its easier if you save them both to your desktop.
    Wednesday, April 18, 2007 7:15 PM
  • Eureka! At least in my case.

     

    Most if not all your problems were shared here.

    1- I had upgraded to Vista Bizz with defender for XPsp2 in place

    2- I had the same problems before and after trying to uninstall the defender

    3- Used system restore to go back to the point before I uninstalled the defender. Vista bit it.

     

    Good luck

     

    Refik

    Tuesday, April 24, 2007 9:08 PM
  • Thank you.

    I had the same problem and had it fixed with this.

     

    Kudos for finding a fix for it. Smile

    Sunday, October 7, 2007 6:18 AM
  •  

    Thanks for the response.  I'm glad that this fix was able to solve your problem.  I was wondering if anyone would find my message, but I guess you did.  Glad I could help.  Happy surfing.
    Sunday, October 7, 2007 2:31 PM
  • Would just like to say thanks to Cdnninja as your post has fixed this problem for me when all the other solutions on so many other sites did nothing. If only I had found this first.
    Wednesday, October 10, 2007 8:31 PM
  • Well, thank you very much for the response, its been here for a while now without any response i was beginning to think i  was the only one it helped.  But its awesome to here that it helped you, i wish you had found it earlier too.  Take care,  happy surfing

     

    Wednesday, October 10, 2007 11:55 PM
  • Will this work on Vista 64?
    Monday, December 31, 2007 12:10 AM
  • OK. The regfile posted above (and on other sites) works on Vista 64.

     

    The problem that I had was that my "Windows Defender" Service was missing. The regfile restored it.

    Monday, December 31, 2007 12:26 AM
  •  

    The regfile posted above (and on other sites) works on Vista 64.

     

    The problem that I had was that the "Windows Defender" Service was missing. The regfile restored it.

    Monday, December 31, 2007 12:28 AM
  •  

    I have a Vista PC and i am trying to install OneCare the error message is 0020-80070643.

     

    i disable the Defender service, still cant install OneCare.

     

    Not sure how to uninstall the defender from my computer.

    Monday, December 31, 2007 10:37 PM
  • umm im getting error 0x80070002...anyway ive taken ownership of windows defender folder..ive applied the .reg key...but still cant reinstall it...can some1 gimme instructions on fixing the prob..
    Thursday, January 17, 2008 9:05 AM
  • bump?

    Friday, January 18, 2008 6:05 AM
  • bump
    Monday, January 21, 2008 6:16 AM
  • I deleted the content of %programfiles%\Windows Defender and then ran sfc /scannow 
    That fixed the issue.

    Regards,
    Hitesh Dhruna
    Wednesday, March 11, 2009 1:40 PM
  • Thank you, thank you, thank you! I've been searching for help, fisrt of all from microsoft help, which was useless, and then the help chat rooms and this has fixed the problem after days of searching. It appears to be an issue that loads of people have, defender breaks but can't be reinstalled using a download from microsoft help as it detects you have vista so must have defender but their help just tells you to download and reinstall defender as the solution. If that isn't a crazy perpetual catch 22 situation I don't know what is! Thanks again.
    Sunday, April 19, 2009 8:25 AM
  • I deleted the content of %programfiles%\Windows Defender and then ran sfc /scannow 
    That fixed the issue.

    Regards,
    Hitesh Dhruna

    Thank you! sfc /scannow fixed everything.

    I had a problem that i accidentally deleted a file from windef folder and since then i tried all things possible to repair it but of course vista includes windows defender so I couldn't reinstall it. I tried many fixes but none of them worked and finally sfc /scannow fixed it. I wish i had found this earlier.

    Thursday, December 30, 2010 3:00 PM