Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for login_log_av.bat.bat

(view source code of login_log_av.bat.bat as plain text)

  1. SET NameSpace=/Namespace:\\root\SecurityCenter
  2. SET AVPath=Path AntiVirusProduct
  3. SET AVProperties=displayName^^,onAccessScanningEnabled^^,productUptoDate^^,versionNumber
  4. FOR /F "tokens=*" %%A IN ('WMIC %NameSpace% %AVPath% Get %AVProperties% /Format:List ^| FIND "="') DO (>NUL SET %%A)
  5. >> \\Server\Logs\%Today%\%UserName%.log ECHO.%displayName%,%versionNumber%,%onAccessScanningEnabled%,%productUptoDate%

page last modified: 2024-04-16; loaded in 0.0170 seconds