Jump to content



Photo

Computer Audit Tool


  • Please log in to reply
10 replies to this topic

#1 llewxam

llewxam

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 345 posts

Posted 07 April 2012 - 10:04 PM

I'd like to start by saying that this is not a network discovery tool, I keep wishing that it was and maybe through WMI I could accomplish that some day, but this tool is fast enough to execute that no users have ever minded a 10 second interruption in their workday as of yet. (I know some tools exist on the forum for domain environments, but many offices are workgroup and I have had no luck in using those...)

Now that I have stated what it is not, what this tool does is gathers the following information:
  • The computer's name
  • The operating system, architecture, service pack level, and COA
  • The local users
  • If MS Office is installed, gathers the version(s) and COA
  • The CPU name and speed
  • Installed RAM, free RAM, and swap file info
  • Local drive letters, labels, total and free space, and percent full
  • Network drive letters, their UNC path, total and free space, and percent full
  • The computer's IP address
  • Optional notes, such as "front desk PC" or "runs slow", whatever is helpful to know later
All of that is bundled in to a CSV file, with the options of creating a new CSV for each machine named the same as the computer's name, an append mode that you can name after the site, or the cool part - there is an option to create a customized agent. In the customized mode, you pre-define the site name and a network path accessible by all machines, and the script will create a new customized script with those details hardcoded and compile it for you! Then all you have to do is get on to any networked pc and browse to the path, run the agent, and in 2 seconds you're done with that machine.

Please pay attention to the files required to compile at the top of the script - I know it is a long list but only 2 are required to be downloaded from the forum, the rest are in the AutoIt install folder in Includes or aut2exe folders. I could have included the paths in the code, but found this was just.....nicer (for me).

I have found this to be very helpful, and I even had one client thank me for doing it, as he realized the value of me having all of that information if he had a problem. Hopefully there are some other field techs out there, or folks in charge of their office's IT needs, who can also benefit from this. Another benefit for field techs is that with this list you can easily review it later and then call them up a few days later to tell them what upgrades they need and get a re-visit ;)

Enjoy
Ian

EDIT: Updated code to include a couple bug fixes

Attached Files


Edited by llewxam, 23 May 2012 - 01:12 AM.

  • IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged.
  • INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them.
  • PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses.
  • Sync Tool - Folder sync tool with lots of real time information and several checking methods.
  • USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions.
  • Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized siteagent.
  • CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction.





#2 CesarL

CesarL

    Seeker

  • New Members
  • 3 posts

Posted 08 May 2012 - 11:59 PM

Looks good, but when executing shows:

Line 5248 (File ""):

Error: Duplicate function name.

Using Latest version: v3.3.8.1

Edited by CesarL, 09 May 2012 - 12:02 AM.


#3 CesarL

CesarL

    Seeker

  • New Members
  • 3 posts

Posted 09 May 2012 - 12:09 AM

Looks good, but when executing shows:

Line 5248 (File ""):

Error: Duplicate function name.

Used WinAPIEx_3.6_3380 instead of WinAPIEx_3.7_3361 and the build worked fine.

#4 CesarL

CesarL

    Seeker

  • New Members
  • 3 posts

Posted 09 May 2012 - 12:12 AM

Looks good, but when executing shows:

Line 5248 (File ""):

Error: Duplicate function name.

Used version WinAPIEx_3.6_3380 instead of WinAPIEx_3.7_3361 and the build worked fines now.

#5 lgvlgv

lgvlgv

    Adventurer

  • Active Members
  • PipPip
  • 149 posts

Posted 09 May 2012 - 04:19 PM

i dont have #include <LocalAccounts.au3> is this file missing?

#6 Chimaera

Chimaera

    Sorry .. Where am i again?

  • Active Members
  • PipPipPipPipPipPip
  • 1,525 posts

Posted 09 May 2012 - 04:48 PM

If you had read the top of the Audit Tool au3 you would have found this

Requirements:
WinAPIx.au3 (Yashied) http://www.autoitscript.com/forum/topic/98712-winapiex-udf
LocalAccount.au3 (engine) http://www.autoitscript.com/forum/topic/74118-local-account-udf



#7 lgvlgv

lgvlgv

    Adventurer

  • Active Members
  • PipPip
  • 149 posts

Posted 09 May 2012 - 06:24 PM

Thx, i mist the Localaccount ;)

#8 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 6,866 posts

Posted 09 May 2012 - 07:03 PM

The line to include LocalAccount.au3 has a typo in it, it should be #include <LocalAccount.au3> it currently says #include <LocalAccounts.au3>

How to ask questions the smart way!

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.

Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.

GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.

Posted Image


#9 llewxam

llewxam

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 345 posts

Posted 10 May 2012 - 04:23 AM

OOOOPS, I'll look at that shortly. I think there is also a minor glitch in the custom agent where a quote is misplaced. I will repost when these items have been corrected.

Ian
  • IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged.
  • INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them.
  • PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses.
  • Sync Tool - Folder sync tool with lots of real time information and several checking methods.
  • USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions.
  • Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized siteagent.
  • CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction.

#10 llewxam

llewxam

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 345 posts

Posted 10 May 2012 - 05:02 AM

I, for reasons unknown, had LocalAccount and copied it as LocalAccounts, which is why I had no problems. Silly, sorry about that, it has been changed in the code. I also found the issue with adding quotes at the wrong time in the compiled agent on enumerating network mapped drives.

Ian
  • IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged.
  • INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them.
  • PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses.
  • Sync Tool - Folder sync tool with lots of real time information and several checking methods.
  • USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions.
  • Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized siteagent.
  • CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction.

#11 llewxam

llewxam

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 345 posts

Posted 23 May 2012 - 01:14 AM

Code updated, I was finding many servers were crashing before it finished, thought it might have been related to not having Office installed but it turned out to be the _AccountEnum function of LocalAccount. I included a check to make sure there was a result, now it doesn't crash.

Ian
  • IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged.
  • INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them.
  • PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses.
  • Sync Tool - Folder sync tool with lots of real time information and several checking methods.
  • USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions.
  • Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized siteagent.
  • CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users