Automated PC Audits via Logon Script using EZ Audit®


IMPORTANT:
You must be on a Windows domain to do automated audits, on prem or cloud. PCs need to be domain-joined and have access to shared folders on a server. "Workgroup" or Samba/SMB won't work for automated auditing.

If you write your own logon scripts all you need to add is to launch \\servername\ezaudit\ezstart-a -o.

The "-o" is only needed if you want to make the PCs available for On-Demand audits (PDF) in addition to scheduled audits.

That location must have a configuration file for the audit, by default "config.ezc".

Read about configuration files here.

Here's a VBScript example of what to add.
Of course you can use other than VBScript, e.g. PowerShell. it's up to you. All it needs is to pass the command to run as shown below:

Script



Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")

Note below: Don't use your server IP address like \\10.0.0.1\, use the server name otherwise Windows will likely show a security alert at the user's PC.

WSHShell.Run "\\yourservername\ezaudit\ezstart.exe -a -o"

If you have Azure AD or Azure AD Domain Services/Azure AD DS:

It's as simple as creating a shared folder on the domain, and triggering an app at user logon via Group Policy, which can be handled via Intune.

Here is the Microsoft documentation for creating shares using AD DS

Here is the Microsoft documentation for Group Policy in an Azure Active Directory Domain Services managed domain


Copyright ©2025 ATCONSULTING LLC