Cybersecurity
DevOps Cloud
IT Operations Cloud
# Get the eDirectory login time
Set "?logintime" "%login time"
#get the time when SecureLogin starts
Set "?now" "?CurrTime"
#Change these times to readable formate
ConvertTime "?logintime" "?flogintime"
ConvertTime "?now" "?fnow"
#Subtract time Now from the stored in eDirectory
Subtract "?now" "?logintime" "?total"
#Write this info out to file c:\temp\logintime.txt
GetReg "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Hostname" "?hostname"
Run "C:\windows\system32\cmd.exe" /c echo Hostname - "?hostname" \n "test" >>c:\temp\logintime.txt
Run "C:\windows\system32\cmd.exe" /c echo Login start Time - "?flogintime" >>c:\temp\logintime.txt
Run "C:\windows\system32\cmd.exe" /c echo Login complete time "?fnow" >>c:\temp\logintime.txt
Run "C:\windows\system32\cmd.exe" /c echo Total Login time (secs) - "?total" >>c:\temp\logintime.txt
Run "C:\windows\system32\cmd.exe" /c echo **************************** >>c:\temp\logintime.txt