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)
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)
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.
ℹ️ This is the default setting upon installation of the XA client.
Registry Path
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\LogoffCleanup Settings\InternetExplorer
Registry Path
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 you wish to exclude.
Registry Path
HKEY_LOCAL_MACHINE\SOFTWARE\HealthCast\eXactACCESS\LogoffCleanup Settings\InternetExplorer\ExcludedURLs
Registry Value
STRING Name: name Data: data
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
- Create a subkey under the
LogoffScriptkey named for the script file (ex. MyShutdownScript.bat). - Add a REG_SZ value to the subkey named
Path:STRING Name: Path Data: (absolute path to the script)
.png)
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
-
Create a new subkey under
\LogoffScript\calledpowershell.exe. -
Add a REG_SZ value named "Path" to the powershell.exe subkey with the following value:
C:\Windows\System32\WindowsPowerShell\v1.0\ -
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"
