Audit By Login Script

 

Machines that are not in a trusted domain can be audited from a login script. Note that this topic refers to auditing with WMI technology, which will scan for hardware configuration and installed software.

 

In order to audit machines that are not in a trusted domain, they must be able to connect to the workstation hosting your HelpSTAR network installation. The audit script must be configured so that the first part points to the executable file "HdtcAudit.exe" that will audit the workstation, and the second part points to the "Scan" folder where the audited data will be written to an XML file. In the following examples of login scripts, the mapped drive "T" hosts the HelpSTAR network installation.

 

 

 

Note:

  1. The Network Audit Service must be running and have ALL rights to the "Scan" folder.

  1. You must configure the Network Audit Service to scan the audited data in the XML file created by "HdtcAudit.exe". To do this you must edit a value in the file "AuditService.exe.config", which is located in the "AuditService" directory on the machine where you Installed the Network Audit Service – e.g. C:\HelpSTAR\HLPSTRCS\Modules\AuditService. Open this file in Notepad and locate the following line:

 

 

Change the value to "1" to enable the file scan function. Now the Network Audit Service will scan the XML file once a day for new audited data.

 

If you want the Network Audit Service to scan the XML file more frequently than once a day, open "AuditService.exe.config" in Notepad and locate the following line:

 

 

By default, the value "0" sets the scanning interval to once a day. You can replace this value with 1, 2, 3, etc. to set the interval to hours – i.e. 1, 2, 3, etc. hours.

 

 

Auditing a Standalone Computer

 

You can also use the HdtcAudit.exe file (described above) to audit a standalone machine. Copy this file to a portable device like a floppy disk or USB drive and insert it in the standalone computer. From this machine, locate the file and double-click on it to start the audit. Then wait a few minutes for the audit to finish (it runs in the background).

 

When the audit is done it will add an XML file to the same folder where HdtcAudit.exe is located. This file will be named after the audited computer – e.g. machinename.xml. Copy this file to the \Scan folder in your HelpSTAR network installation. The audited data will be imported into HelpSTAR the next time the Network Audit Service runs.

 

Back to top 

See Also:

Configuration Management Tab

Configure Auto Discovery Schedule

Audit Current Workstation

Troubleshooting Network Audits

Document Discovered Hardware

Document Discovered Software

Audit History

Configure the Network Audit Service

Client Audit Add-In