---
title: "Logoff Cleanup"
slug: "xa-configure-logoff-cleanup"
description: "Logoff Cleanup is used to close any opened programs when the user logs out of eXactACCESS. This article describes how to set up Logoff Cleanup for eXactACCESS."
updated: 2026-06-04T16:54:39Z
published: 2026-06-04T16:54:39Z
canonical: "healthcare.rapididentity.com/xa-configure-logoff-cleanup"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://healthcare.rapididentity.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Logoff Cleanup
Logoff Cleanup is used to close any open programs when the user logs out of eXactACCESS. Programs closed by Logoff Cleanup are not closed gracefully and no work will be saved.
## Configure eXactACCESS to Run Logoff Cleanup
To configure Logoff Cleanup to run when eXactACCESS closes:
### Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\notification
```
### Registry Value
```
STRING Name: logoffCleanup.clsEventNotify Data: (Leave blank)
```
***
## Windows Applications
For an application to be closed by Logoff Cleanup, create a subkey under the ```\WatchList\``` key named for the application’s ```.exe```.
### Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\LogoffCleanup Settings\WatchList
```
### Example
To close MS Word, create the subkey:
```
WINWORD.EXE
```
.png){height="" width=""}
### Optional Value
If you need an application to close and suppress all prompts, add the following value to the application's registry key:
```
STRING Name: Force Data: (Leave blank)
```
.png){height="" width=""}
::: (warning) (⚠️ Caution)
Force‑closing is ungraceful and may cause data loss. Use only when required.
:::
***
## Internet Browsers
### Internet Explorer
To close all opened Internet Explorer windows, add the following registry key and value.
:::(info)
ℹ️ This is the default setting upon installation of the XA client.
:::
#### Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\LogoffCleanup Settings\InternetExplorer
```
#### Registry Value
```
STRING Name: CloseIEBrowser Data: True
```
#### URL Exclusions
If you wish to exclude certain URLs, you can do so by adding string values named for the URLs to exclude.
Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\LogoffCleanup Settings\InternetExplorer\ExcludedURLs
```
Registry Value
```
STRING Name: URL Data: (Leave blank)
```
### Other Browsers
Behavior changes can be configured for SnapApp browsers other than Internet Explorer.
#### URL Exclusions
Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\ExactAccess\SnapAPP Settings\ExcludedURLs
```
#### Enable Popups
Enable Popups will prompt the user for confirmation before saving credentials for the URL it's created for. If the URL does not exist in this location, the credentials are automatically saved without prompting the user to confirm saving them.
Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\ExactAccess\SnapAPP Settings\IncludePopupUrls
```
Registry Value
```
STRING Name: URL Data: (Leave blank)
```
***
## Logoff Scripts
Logoff Cleanup supports launching command shell associated scripts (i.e. .bat, .vbs, .ps1) or an executable for added flexibility. Logoff Cleanup uses the TaskKill command to terminate applications during logoff. If this command is not available, not all of the configured applications may close.
To launch a script on logoff, create a subkey under the ```\LogoffScript\``` key named for the script file.
### Registry Path
```
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\LogoffCleanup Settings\LogoffScript
```
### Subkey
1. Create a subkey under the ```LogoffScript``` key named for the script file (ex. MyShutdownScript.bat).
2. Add a REG_SZ value to the subkey named ```Path```:
```
STRING Name: Path Data: (absolute path to the script)
```
.png){height="" width=""}
#### Optional Value
If there are command line arguments to pass to the script, add the following value to the key that contains the parameters to pass to the script.
```
STRING Name: Param Data: parameters
```
### Windows PowerShell Scripts
Windows 10 sets the default app for ps1 files to Notepad as a security precaution. The following example runs the script by passing the script name as a parameter, rather than opening myScript.ps1 in Notepad.
#### Registry Path
1. Create a new subkey under ```\LogoffScript\``` called ```powershell.exe```.
2. Add a REG_SZ value named "Path" to the powershell.exe subkey with the following value:
```
C:\Windows\System32\WindowsPowerShell\v1.0\
```
3. Add a REG_SZ value named "Param" to the subkey with the following value:
```
-executionPolicy bypass -WindowStyle Hidden -file "C:\Program Files (x86)\HealthCast\ExactAccess\wrappers\xaLogoffCleanup\MyScript.ps1"
```
## Related
- [Logoffcleanup PowerShell Script Opening in Notepad](/logoffcleanup-powershell-script-opening-in-notepad.md)