PowerShell audit scripts in AlloyScan
AlloyScan uses PowerShell during Windows audits to collect the installed version of your internal app. Find the PCs still reporting the old version and confirm the update at the next audit.

Know where to follow up after a rollout
Find the remaining PCs
Filter Inventory by the old version to get a list of computers that still report it.
Confirm the update
After a follow-up audit, check the new version and the date AlloyScan found it.
Track apps standard scans miss
Bring in-house and portable apps into the Software catalog with custom recognition rules.
See which warehouse PC still needs the update
In this example, the IT team rolled out Warehouse Client 4.8.0. AlloyScan shows where version 4.7.2 is still present and provides a record of the follow-up audit.

Find the workstation still on 4.7.2
Filter by Warehouse Client version to see which workstations reported 4.7.2 in their latest audit. In this example, WH-PC-103 is the one to follow up on.
Check the audit date to see how recent that result is.
Confirm that WH-PC-103 reached 4.8.0
After IT updates the workstation, the next audit reports 4.8.0. With Change tracking enabled for the field, the device record shows the previous version, the new version, and when AlloyScan detected the change.

See where a portable app is installed
Use custom software recognition to find apps missing from the Windows installed-programs list. In this example, AlloyScan finds Shipping Label Tool and lists its version and install count in the Software catalog.

Add a custom check to your next audit
Define a custom audit field for Windows computers, add a PowerShell script that returns the value, and run an audit. AlloyScan saves the result with the device so you can add it to an Inventory view.
The script for this example returns the product version of the app’s executable:
$dir = 'C:\Program Files\Warehouse Client'
$exe = Join-Path $dir 'WarehouseClient.exe'
if (Test-Path $exe) {
(Get-Item $exe).VersionInfo.ProductVersion
}
See the custom audit field setup

See the software recognition rule

What else a PowerShell audit script can do
The app version is one example. A script can return any value from a Windows computer. It can also make a change on the computer and report the result.
A registry value
Read a setting that an app or a policy writes to the registry and store it as text or a number.
A file or folder check
Return yes or no: is the license file, the certificate or the configuration file where it should be?
Local administrators
Return the members of the local Administrators group as a table.
Days since the last restart
Return a number and filter Inventory for computers that have not restarted for a month.
Fix a setting
Set a registry value or start a stopped service, and return what the script did.
Install an update
Install a missing update or a new version of an in-house app, and return the result. Inventory shows where it worked.
Discover other Network Inventory features
Questions about PowerShell audit scripts
How are audit scripts different from Tools?
They do different jobs. An audit script runs during the audit, and AlloyScan stores its result with the device, so you can filter by it and track its changes. A Tool is an action you start yourself from a device record, such as Ping or Remote Desktop. It runs on your own workstation through the Alloy Integration Launcher, and AlloyScan does not keep its output. Use audit scripts to collect inventory data and Tools to work with a device right now.
What can a script return?
A value that matches the field type, such as text, a number, a date, a yes-or-no answer, or a table.
Which devices can custom audit fields cover?
This example uses a PowerShell audit field on Windows computers. Supported AWS and Azure resources can also use PowerShell fields through Local Audit Service. For SNMP printers and switches, a custom audit field reads an SNMP OID. Each field belongs to one device type.
When do the values appear?
After the next audit of the device. Audits made before you created the field do not get the value, so audit the devices again to fill it in everywhere.
How do I see what changed between audits?
Turn on Change tracking. Changes to custom audit fields are then recorded in their own category, with the old value, the new value and the date.
Who can add fields and recognition rules?
Site Administrators. Fields and rules belong to one Site, and AlloyScan does not check the script when you save it, so test it on one device first.
See how AlloyScan can verify your next rollout
Bring an internal app or a setting you track manually. We’ll show how to collect it during an audit and find the devices that need follow-up.
Transparent pricing
Clear pricing per device for cloud network inventory.
Customer stories
See how IT teams keep their inventory complete and up to date with Alloy Software.










