Jump to content

How to scan mobile user laptops?


Recommended Posts

Posted

We have a large number of mobile users with laptops. While the machines are added to the domain, they invariably log in locally and occasionally via Cisco VPN.

 

Any suggestions on how we can automatically audit these machines and get the information back to TNI?

 

Thanks

 

Frank

Posted

I suggest script:

script scann computer, and sending to your mail :) 

you need 7zip - portable

sendmail 

and google account :)

 

add this to logon script :) 

or shelude task :) 

 
@echo off
 
ping -n 1 google.com | find "TTL" 
if not errorlevel 1 goto OK
goto BRAK
 
:OK
 
@Echo on
@Echo SCAN Waiting.....
@Echo off
start tniwinagent.exe /scripted /path:"C:\tni"
goto TNI
:TNI
ping -n 10 127.0.0.1 > nul
if exist "C:\tni\*.inv" goto DALEJ
goto TNI
:DALEJ
"7z.exe" a -r "C:\tni\dane.zip" C:\tni\*.inv -mx0
 
ping -n 2 127.0.0.1 > nul
 
SendEmail.exe -f frommail@gmail.com -t tomail@gmail.com -u "TNI %computername%" -m "text" -a "c:\tni\dane.zip" -s smtp.gmail.com:587 -xu userr@gmail.com -xp passsword -o tls=yes
 
del c:\tni\*.inv  /q
del c:\tni\dane.zip /q
 
@Echo on
@Echo SCAN OK
@Echo off
ping -n 5 127.0.0.1 > nul
goto END
 
:BRAK
@Echo on
@Echo Connection error
@Echo off
ping -n 5 127.0.0.1 > nul
 
:END
exit
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...