Hi ,
The script gets System Information and software's which are installed on endpoint
Note :
The script can run on both System user and Logged in user
These all information are sent through mail to particular email id which you are mentioned and tit will display in the CSV format
For more information please refer the below screenshots to download the attachment and read the CSV file.
Please modify the variables as per your requirement
sendmail=1 ## [1- sends csv reports in email or 0- prints output in execution logs ] if sendmail=1 then user have to set the required information to send out a
email from the code .
msgbody='Hi,\n\nPlease find the attachment for the System Information and Installed Softwares List.\n\nThank you.'
emailto=['xxxxxxxxxxxxx@comodo.com']
emailfrom='testcomodomail1@gmail.com'
password='abcd efgh ijkl mnop'
smtpserver='smtp.gmail.com'
port=587
use 'smtp.gmail.com' if you are going to send mail from gmail. use 'smtp.office365.com' if you are going to send mail from outlook.
Example:
Gmail:
emailto=['xxxxxxxxxxxxx@comodo.com']
emailfrom='testcomodomail1@gmail.com'
password='abcd efgh ijkl mnop'
smtpserver='smtp.gmail.com'
port=587
Outlook:
emailto=['xxxxxxxxxxxxx@comodo.com']
emailfrom='testcomodomail1@outlook.net'
password='C0m0d0@123'
smtpserver='smtp.office365.com'
port=587
password must be a application password. you shouldn't give the actual email address password.
Gmail:
use this link to generate application password https://security.google.com/settings/security/apppasswords
1) Turn on Two-step verification ( https://security.google.com/settings/security )
2) select other in "select app" section
3) give any app name
4) select generate and use the 16 digit code as application password instead of email password
Outlook:
use this link to generate application password https://account.microsoft.com/security
1) Select Advance security options
2) Turn on Two-step verification
3) After completing Two-step verification scroll down in Advance security options page for App password Section
4) Select create a app password and use the 16 digit code as application password instead of email password
Comments