Microsoft Safety Scanner is a scan tool designed to find and remove malware from Windows computers. Simply download it and run a scan to find malware and try to reverse changes made by identified threats.
Note
The Microsoft Office Configuration Analyzer Tool (OffCAT) was removed from the Microsoft Download Center on June 11, 2018. The Outlook scanning functionality of OffCAT is available in the Microsoft Support and Recovery Assistant for Office 365 (SaRA) tool. Microsoft Safety Scanner is a scan tool designed to find and remove malware from Windows computers. Simply download it and run a scan to find malware and try to reverse changes made by identified threats. Download Microsoft Safety Scanner (32-bit) Download Microsoft Safety Scanner (64-bit).
Starting November 2019, Safety Scanner will be SHA-2 signed exclusively. Your devices must be updated to support SHA-2 in order to run Safety Scanner. To learn more, see 2019 SHA-2 Code Signing Support requirement for Windows and WSUS.
Important information
The security intelligence update version of the Microsoft Safety Scanner matches the version described in this web page.
Safety Scanner only scans when manually triggered and is available for use 10 days after being downloaded. We recommend that you always download the latest version of this tool before each scan.
Safety scanner is a portable executable and does not appear in the Windows Start menu or as an icon on the desktop. Note where you saved this download.
This tool does not replace your antimalware product. For real-time protection with automatic updates, use Microsoft Defender Antivirus on Windows 10 and Windows 8 or Microsoft Security Essentials on Windows 7. These antimalware products also provide powerful malware removal capabilities. If you are having difficulties removing malware with these products, you can refer to our help on removing difficult threats.
System requirements
Safety Scanner helps remove malicious software from computers running Windows 10, Windows 10 Tech Preview, Windows 8.1, Windows 8, Windows 7, Windows Server 2016, Windows Server Tech Preview, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, or Windows Server 2008. Please refer to the Microsoft Lifecycle Policy.
How to run a scan
- Download this tool and open it.
- Select the type of scan you want run and start the scan.
- Review the scan results displayed on screen. For detailed detection results, view the log at %SYSTEMROOT%debugmsert.log.
To remove this tool, delete the executable file (msert.exe by default).
For more information about the Safety Scanner, see the support article on how to troubleshoot problems using Safety Scanner.
Related resources
-->Original KB number: 272227
Follow these steps to repair your Outlook personal folder file (.pst) by using Inbox Repair tool.
Step 1 - Exit Outlook and start the Inbox Repair tool
Automatically start the Inbox Repair tool
Microsoft Office 2007 Removal Tool
Start the Inbox Repair tool (Scanpst.exe). Then select Open or Run in the File Download dialog box, and follow the steps in the easy fix wizard.
Once the Inbox Repair tool is started, continue with Step 2. (Can't start the Inbox Repair tool?)
Manually start the Inbox Repair tool
To start the Inbox Repair tool manually, locate one of the folders by using Microsoft Windows Explorer, and then double-click the Scanpst.exe file.
Note
The file or folders may be hidden. For instructions about how to unhide files and folders, see your operating system documentation.
Typical location | Remark |
---|---|
<disk drive>Program Files(x86)Microsoft OfficerootOffice16 | For Outlook 2016 Click-to-Run installation on a 32-bit version of Windows |
<disk drive>Program FilesMicrosoft OfficerootOffice16 | For Outlook 2016 Click-to-Run installation on a 64-bit version of Windows |
<disk drive>Program Files(x86)Microsoft OfficeOffice16 | For Outlook 2016 MSI-based installation on a 32-bit version of Windows |
<disk drive>Program FilesMicrosoft OfficeOffice16 | For Outlook 2016 MSI-based installation on a 64-bit version of Windows |
<disk drive>Program FilesMicrosoft Office 15rootoffice15 | For Outlook 2013 Click-to-Run installation on a 64-bit version of Windows |
<disk drive>Program Files(x86)Microsoft Office 15rootoffice15 | For Outlook 2013 Click-to-Run installation on a 32-bit version of Windows |
<disk drive>Program FilesMicrosoft OfficeOffice15 | For Outlook 2013 MSI-based installation on a 64-bit version of Windows |
<disk drive>Program Files(x86)Microsoft OfficeOffice15 | For Outlook 2013 MSI-based installation on a 32-bit version of Windows |
<disk drive>:Program FilesMicrosoft OfficeOffice14 | For Outlook 2010 on a 64-bit version of Windows |
<disk drive>:Program FilesMicrosoft Office(x86)Office14 | For Outlook 2010 on a 32-bit version of Windows |
<disk drive>:Program FilesMicrosoft OfficeOffice12 | For Outlook 2007 on a 64-bit version of Windows |
<disk drive>:Program Files(x86)Microsoft OfficeOffice12 | For Outlook 2007 on a 32-bit version of Windows |
<disk drive>:Program FilesCommon FilesSystemMapi1033| Other typical location | |
<disk drive>:Program FilesCommon FilesSystemMSMAPI1033 | Other typical location |
<disk drive>:Program FilesCommon FilesSystemMapi1033NT | Other typical location (for Windows NT and Windows 2000) |
<disk drive>:Program FilesCommon FilesSystemMapi103395 | Other typical location (for Windows 95 and Windows 98) |
(Can't find the Inbox Repair tool?)
Step 2 - Repair the .pst file
In the Inbox Repair tool, type the path and the file name of your personal folders (.pst) file or select Browse to locate the file by using the Windows file system, and then select Start.
Note
If you do not know where the .pst file is located, follow the steps in How to locate, move, or back up your .pst file.
Note
- The Inbox Repair Tool may need to be run several times in order to fully repair your personal folder (.pst) file.
- The Inbox Repair Tool cannot repair every problem that is detected. In some cases, items may not be recovered if they were permanently deleted or corrupted beyond repair.
Step 3 - Recover repaired items to a new .pst file
After you run the Inbox Repair tool, you can start Outlook and recover repaired items. Optionally, you can try to recover additional repaired items from the backup personal folder.
Ms Office 2010 Repair Tool
To start, create a new Personal Folders (.pst) file entry in your profile. Then, you can move the recovered items to your new Personal Folders (.pst) file.
Start Outlook. If you use multiple profiles in Outlook, make sure that you select the profile that contains the Personal Folders (.pst) file that you tried to repair.
Press Ctrl+6 to turn on Folder List view.
In your Folder List, you should see the following recovered folders:
Note
These recovered folders are usually empty because this is a rebuilt .pst file. You should also see a folder named Lost and Found. This folder contains folders and items that the Inbox Repair Tool recovered. Unfortunately, items that are missing from the Lost and Found folder may be beyond repair.
Create a new Personal Folder (.pst) file in your profile. The steps may be different, depending on which version of Outlook you are running.
Outlook 2010 and later
- Select the File tab on the ribbon, and then select the Info tab on the menu.
- Select the Account Settings button, and then select Account Settings again.
- Select the Data Files tab.
- Select Add to open the Create or Open Outlook Data File dialog box.
- Enter a file name for your new Outlook Data (.pst) file, and then select OK.
- You should have a new Outlook Data (.pst) file in your profile.
Outlook 2007
- On the File menu, select Data File Management.
- Select Add to open the New Outlook Data File dialog box.
- In the Types of storage dialog box, select Office Outlook Personal Folders File (.pst), and then select OK.
- In the Create or Open Outlook Data File dialog box, select the location and a file name for your new Personal Folders (.pst) file, and then select OK.
- Select OK.
- You should have a new Personal Folders (.pst) file in your profile.
Outlook 2003
- On the File menu, point to New, and then select Outlook Data File.
- Select OK to open the Create or Open Outlook Data File dialog box.
- Enter a file name for your new Personal Folders (.pst) file, and then select OK to open the Create Microsoft Personal Folders dialog box.
- Enter a file name for your new Personal Folders (.pst) file, and then select OK.
- You should have a new Personal Folders (.pst) file in your profile.
Outlook 2002
- On the File menu, point to New, and then select Personal Folders File (.pst).
- Select Create to open the Create Microsoft Personal Folders dialog box.
- Enter a file name for your new Personal Folders (.pst) file, and then select OK.
- You should have a new Personal Folders (.pst) file in your profile.
Drag the recovered items from the Lost and Found folder to your new Personal Folders (.pst) file.
When you have finished moving all items, you can remove the Recovered Personal Folders (.pst) file from your profile. This includes the Lost and Found folder.
If you are satisfied with the information that you recovered, you are finished. However, if you want to try to recover additional information, go to the Recover repaired items from the backup file (Optional) section.
What is the Inbox Repair tool
The Inbox Repair tool (Scanpst.exe) is designed to help repair problems that are associated with personal folder (.pst) files.
The Inbox Repair tool is automatically installed with all English-language Microsoft Outlook installation options depending on your operating system.
Can't find or start the Inbox Repair tool
If you can't start the Inbox Repair tool automatically or manually, you may try to repair your Office application.
Recover repaired items from the backup file (Optional)
Note
If you could not open your original Personal Folders (.pst) file before you ran Inbox Repair Tool, the following procedures may not work. If it does not work, then unfortunately, you will be unable to recover any additional information. If you could open the file, the following procedure may help you recover additional items from your damaged Personal Folders (.pst) file.
When you run Inbox Repair Tool, the option to create a backup of the original Personal Folders (.pst) file is automatically selected. This option creates a file on your hard disk that is named File name.bak. This file is a copy of the original File name.pst file with a different extension. If you think that you are still missing items after following the steps in the previous section, you can try to recover additional information from this backup file by following these steps:
Locate the .bak file. It is located in the folder of your original Personal Folders (.pst) file.
Locate the .bak file. It is located in the folder of your original Personal Folders (.pst) file.
Make a copy of the .bak file and give the file a new name with a .pst extension. For example, name the file New name.pst.
Import the New name.pst file that you created in the previous step by using the Import and Export Wizard in Outlook. To do this, follow these steps:
- On the File menu, select Import and Export.
Note
On Outlook 2010 and later, select the File tab on the Ribbon, select Open, and then select Import.
- Select Import from another program or file, and then select Next.
- Select Personal Folder File (.pst), and then select Next.
- Under File to import, select Browse, and then double-click your Newname.pst file.
- Under Options, select Do not import duplicates, and then select Next.
- Under Select the folder to import from, select the Personal Folders (.pst) file, and then select Include subfolders.
- Select Import folders into the same folder in, and then select your new Personal Folders (.pst).
- Select Finish.
- On the File menu, select Import and Export.
Note
Remember that the backup file was the original corrupted file, and you may find that you cannot recover anything other than what was recovered in the Lost and Found folder. If you cannot import the Newname.pst file into Outlook, unfortunately you have lost all the information that is not in the Lost and Found folder.
How the Inbox Repair tool validates and corrects errors
ScanPST mostly validates and corrects errors in the internal data structures of a .pst file. The .pst file is a database file. Therefore, structures such as BTrees and reference counts, are checked and repaired as necessary. These low-level objects have no knowledge of the upper-level structures, such as messages, calendar items, and so on, that are built upon them.
If ScanPST determines that a specific block of the structure or table is unreadable or corrupted, ScanPST removes it. If that block was part of a specific item in Outlook, the item will be removed when it is validated.
You may not expect this behavior, but the removal of the item is appropriate given the circumstances. Also, this specific kind of situation is rare, and it will always be entered in the ScanPST log file.
At a higher level, the more visible changes that you see involve folders and messages.
Folders
ScanPST examines every folder in the .pst and performs the following operations:
- ScanPST makes sure that there are the correct tables associated with the folder.
- ScanPST checks every row in each table and makes sure that the message or the subfolder exists in the system.
- If ScanPST cannot find the message or the subfolder, ScanPST removes the row from the table.
- If ScanPST does find the message or the subfolder, ScanPST validates the message or the folder.
- If that validation fails, the message or folder is considered corrupted, and it is removed from the table and deleted from the database.
- If the validation succeeds, ScanPST does another analysis to make sure that the now-recovered message values are consistent with the values in the table. Corrupted folders are recreated from scratch, if it is necessary. These folders contain no user data.
Messages
Most users will be concerned by message operations, because a corrupted item is likely to cause something to be deleted from the .pst file. ScanPST performs the following operations on messages:
ScanPST does some basic validation of attachment tables and recipient tables. This operation resembles how a folder works with the messages in it.
As soon as the recipient table is validated to guarantee recipients that are formatted correctly, ScanPST makes any changes that are required to synchronize these valid recipient table contents to the recipient properties on the message. ScanPST also guarantees that the message's parent folder refers to a valid folder. The following message properties are checked to make sure that they follow valid data formats:
PR_MESSAGE_CLASS
ScanPST checks that this property exists. If the property does not exist, it is set to IPM.Note.
PR_MESSAGE_FLAGS
Each flag is validated separately.
PR_SUBMIT_FLAGS
This validation resembles the operation for message flags.
PR_CLIENT_SUBMIT_TIME
If the submit flags indicate that the message is marked as submitted, this property must exist. If the submit flags do not indicate that the message is marked as submitted, the time is set to Now.
PR_SEARCH_KEY
This property must exist. If the property is not present, a random GUID is generated for it.
PR_CREATION_TIME
This property must exist. If the property is not present, the time is set to Now.
PR_LAST_MODIFICATION_TIME
This property must exist. If the property is not present, the time is set to Now.
PR_MESSAGE_SIZE
Sizes are recalculated and compared to stored values. If sizes differ by some delta, the calculated value is written.
No validation is explicitly done on body-related properties or on subject-related properties, except the implicit low-level validation that this article discusses earlier. The recipient display properties are changed to be consistent with the recovered recipient table. As soon as this operation is complete, other algorithms are run to collect all the orphaned messages and to put them in an Orphans folder.
For more information about binary trees (btrees), see An Extensive Examination of Data Structures.