<< Back to Script Library

Citrix Auditlog

Run the Auditlog command on XenApp servers to display logon / logoff activity. Provide the "before" and "after" dates in the mm/dd/yy format.
Version: 3.7.13
Created: 2014-01-15
Modified: 2014-04-16
Creator: Eugene Kalayev
Downloads: 1079
The Script Copy Script Copied to clipboard
@if exist "%ProgramFiles(x86)%\Citrix\system32\auditlog.exe" (
 cd "%ProgramFiles(x86)%\Citrix\system32" && auditlog.exe /before:%1 /after:%2 /time
 ) else If exist "%ProgramFiles%\Citrix\system32\auditlog.exe" (
 cd "%ProgramFiles%\Citrix\system32" && auditlog.exe /before:%1 /after:%2 /time
 ) else (echo This is not a Citrix XenApp server. 1>&2 && Exit /B 1 )