Outlook Profile Reset
Log In or Register to download the BES file, and more.

0 Votes

Description

This task will close Outlook, Skype, and Teams.  It will then delete all mail profiles from the currently logged in user, including OST.  The mail profile will need to be set up from scratch.


Property Details

ID24867
StatusBeta - Preliminary testing ready for more
TitleOutlook Profile Reset
DomainBESC
CategoryScripting
SourceInternal
Source Release Date12/13/2017 12:00:00 AM
KeywordsOutlook Mailbox Reset
Is TaskTrue
Added by on 12/14/2017 12:09:21 PM
Last Modified by on 12/14/2017 12:09:21 PM
Counters 5953 Views / 13 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1155 fixlets and 538 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists folder "C:\Program Files (x86)\Microsoft Office"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// Disable wow64 redirection on x64 OSes
//action uses wow64 redirection {not x64 of operating system}

waithidden "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\BES Support\taskkill.exe" /F /T /IM OUTLOOK.EXE
waithidden "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\BES Support\taskkill.exe" /F /T /IM lync.exe
waithidden "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\BES Support\taskkill.exe" /F /T /IM SkypeHost.exe
waithidden "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\BES Support\taskkill.exe" /F /T /IM Teams.exe
waithidden "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\BES Support\taskkill.exe" /F /T /IM OneDrive.exe

dos reg delete "HKEY_USERS\{component string of sid of security account (name of logged on user)}\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" /f
dos reg delete "HKEY_USERS\{component string of sid of security account (name of logged on user)}\Software\Microsoft\Office\16.0\Outlook\Profiles" /f

folder delete "C:\Users\{name of logged on user}\AppData\Local\Microsoft\Outlook"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
ReynardMuldrake -
Code is tested and working in our environment, but the paths and reg keys may need to be modified to work properly somewhere else.