InvCT User Guide

InvCT takes a read-only inventory of your virtualization platforms and servers and writes it to an Excel workbook and a PowerPoint deck. It changes no settings on the systems it connects to, and you install nothing on them.

How to use the InvCT tool. For InvCT 1.0.1 by Niyyasoft, on 64-bit Windows.

Quick start

The window after a run, with example host names. Select any screenshot to enlarge it.
  1. Press Add source for each system to inventory. Fill in the login and press Test connection before you save.
  2. Enter a Customer or project name and choose the Output folder.
  3. Press Start. InvCT asks for any password it does not have.
  4. Watch each source finish. If one fails, the reason appears under its name and the others carry on.
  5. Press Open Excel or Open PowerPoint.

Nothing to connect to yet? Press Create sample report on the left of the window and choose a folder. InvCT writes the reports from made-up data so you can see what you will get.

Before you start

Your PC must be able to reach each system on the port below, with an account that has the access shown.

SourceHost to enterPortAccount needed
VCvCenter ServervCenter name or IP address443Read-only role at the vCenter root
ESXiVMware ESXi hostHost name or IP address443Local read-only user, or root
NTXNutanix Prism ElementCluster virtual IP, or any CVM IP9440Viewer
HVHyper-V cluster or hostCluster name, or any node5985, or 5986 for HTTPSLocal administrator on every node
WINWindows serverServer name or IP address5985, or 5986 for HTTPSLocal administrator
LNXLinux serverServer name or IP address22Any user. Root or sudo adds serial numbers and memory module detail

Windows and Hyper-V: turn on WinRM

On each Windows server, and on every node of a Hyper-V cluster, open PowerShell as administrator and run:

Enable-PSRemoting

Linux: allow SSH

InvCT tries root, then sudo -n, then sudo with your password. Without any of them it still collects the rest, and the source finishes as Partial. A sudo attempt the account is not allowed to make may appear in that server's audit log.

Add each system once. InvCT does not merge duplicates. If you add a vCenter and also one of its ESXi hosts, or a Nutanix cluster through both Prism Element and vCenter, the totals count those hosts and VMs twice.

Install

  1. Download the setup file from the InvCT page and run it. It needs no administrator rights and installs for your Windows user only.
  2. Open InvCT from the Start menu. It starts maximized.

Windows SmartScreen may warn about a newly released file. Check the publisher in the warning before you continue.

To install without any prompts, run the setup file with /VERYSILENT:

.\InvCT-Setup-1.0.1.exe /VERYSILENT

You can also run InvCT.exe on its own without installing. Keep it in a folder you can write to, so an update can replace it.

Add sources

Press Add source and pick the Source type first, because it decides which fields appear.

vCenter, after a successful Test connection.
Hyper-V adds Use HTTPS and Login.
FieldWhat to enter
HostsA name or IP address. Separate several with commas to add one source per host, all with the same login.
PortLeave blank for the default.
UsernameUse DOMAIN\user for a domain account. On Hyper-V and Windows sources, leave it blank to use your current Windows login.
PasswordLeave it blank and InvCT asks when you press Start.
Remember passwordOff: kept in memory only, until you close InvCT. On: saved in your profile, encrypted for your Windows user on this computer.
Verify TLS certificateOff by default. Turn it on when Windows trusts the certificate. On a Linux source this is Verify SSH host key, for hosts in your known_hosts file.
Use HTTPS, LoginHyper-V and Windows only. HTTPS uses port 5986. Login is the sign-in method, and negotiate is the default.
SSH keyLinux only. Choose a private key file. If the key has a passphrase, type it in Password.

Test connection replies with what answered, or with the reason it failed. If you entered several hosts, it tests only the first. Press Enter to save or Esc to close the window without saving.

Particular cases

  • This computer. Add a Windows server with the host localhost and no username. It runs locally and does not need WinRM.
  • A Hyper-V cluster. Enter the cluster name or any one node. InvCT finds the other nodes and connects to each directly. If the cluster name does not accept connections, enter a node name.

Change the list

Use the pencil button on a source to edit it. The ✕ button removes a source right away, without asking.

Run a collection

Set up the Report panel on the right, then press Start.

  • Customer or project appears in the reports and in the file names.
  • Output folder is where the reports go. The default is Documents\InvCT.
  • Excel workbook and PowerPoint deck choose what to write. At least one must be on.
  • Sources at once is how many systems to collect in parallel, from 1 to 32. The default is 4.

If a source needs a password, InvCT asks for it first. Pressing Cancel there cancels the run before it starts.

During a run. The line under each name shows the step in progress, and the Activity list keeps a record.
StatusWhat it means
ReadyNot started yet.
RunningBeing collected now.
CompleteCollected with no warnings. The reports show this as OK.
PartialCollected with gaps. Each warning is in Activity and on the vLog tab.
FailedNot collected. If the connection dropped partway, what was read before that is kept.

Stop ends the run once the requests in progress return, and no report is written. Until a run ends you cannot change the source list or open a profile.

Each run writes new files named with the customer, date and time, such as InvCT_Example_Corp_20261122_101500.xlsx, so earlier reports stay as they are.

Read the reports

Where to look

To find outOpen this tab
How much there is in totalSummary, which also links to every other tab
What needs attentionvHealth, most severe first
What each VM is and where it runsvInfo, with one row per VM
Which snapshots are oldvSnapshot, sorted by Age days
Which datastores are filling upvDatastore, sorted by Free %
What each host isvHost for hypervisors, pHost for servers
What was missedvSource for the status of each source, then vLog for the warnings

Excel workbook

After Summary there are up to 49 tabs. All platforms share them, so filter on the Platform and Source columns to separate one from another.

GroupTabs
Virtual machinesvInfo, vCPU, vMemory, vDisk, vPartition, vNetwork, vCD, vUSB, vSnapshot, vTools
Clusters and hostsvCluster, vHost, vRP, vLicense
NetworkvNIC, vSwitch, vPort, dvSwitch, dvPort, vSC+VMK
StoragevHBA, vDatastore, vMultiPath
Servers, including Hyper-V nodespHost, pCPU, pMemory, pDisk, pVolume, pNIC, pHBA, pSoftware, pService
NutanixntxCluster, ntxStoragePool, ntxContainer, ntxDisk, ntxImage, ntxPD, ntxVolumeGroup, ntxRemoteSite, ntxAlert
Hyper-V failover clustershvClusterNode, hvClusterNetwork, hvClusterGroup, hvClusterResource
About this runvSource, vHealth, vMetaData, vLog
  • An empty tab means nothing of that kind was found. A missing tab means no source in this run uses it.
  • Memory and disk sizes are in MiB, CPU speed is in MHz and network speed is in Mbps. Dates are in your computer's local time.
  • VM totals leave out templates, Nutanix controller VMs and vSphere vCLS system VMs.
  • vCPU:core and vRAM % count powered-on VMs only.
  • Nutanix storage is raw capacity, before replication.
  • Tab and column names follow RVTools where the concept exists, but tools that import RVTools files will not read this workbook. There is no vFileInfo tab.

PowerPoint deck

The deck opens with an executive summary and the scope of the run. It then covers platform mix, cluster capacity and density, one slide per cluster, hardware and versions, VM sizing and guest OS, snapshots, storage, network, physical servers, health findings and next steps. Charts and tables are native, so you can edit them. A very large estate shows its 30 largest clusters, and the workbook has the rest.

Health checks

InvCT checks what it collected and lists the findings on the vHealth tab and in the deck.

AreaHighMediumLow
CollectionSource or cluster node not collectedSource collected with gaps
Virtual machinesSnapshot 30 days old or more; disks need consolidationSnapshot 7 days old or more; guest tools not running; guest disk under 10% freeGuest tools out of date; CD/DVD media mounted
HostsVMware host not connected; configuration status red; certificate expired; Hyper-V cluster node not upConfiguration status yellow; certificate expires within 90 daysHost in maintenance mode
ClustersvCPU:core ratio 8:1 or morevCPU:core ratio 4:1 or more; no memory headroom for a host failure; vSphere HA offvSphere DRS off; mixed hardware in a cluster
StorageDatastore inaccessible or under 10% freeDatastore under 20% free
LicensesExpiredExpires within 90 days
Nutanix alertsCriticalWarningAll others
ServersDisk reporting a problemVolume under 10% free; no Windows hotfix in 90 days

Profiles

InvCT saves your sources and report settings as you work and brings them back next time. To keep a separate list for each customer:

  • Save profile as writes the current list to a file of your choice.
  • Open profile loads one.

Opening a profile replaces the list on screen. If you want to keep that list, use Save profile as first.

A profile contains passwords only for sources with Remember password on. Those open only for the same Windows user on the same computer. Anyone else who opens the profile enters the passwords again.

Passwords and security

  • Passwords stay in memory unless Remember password is on. They are then encrypted with Windows DPAPI.
  • Certificates and SSH host keys are not verified by default, because vCenter, ESXi and Prism commonly use self-signed certificates. Someone on the network path could intercept the login. Turn on Verify for each source whose certificate or host key is trusted.
  • WinRM over port 5985 encrypts its messages with the default login. The basic login does not, so turn on Use HTTPS with it.
  • The reports are sensitive. They contain IP addresses, and the vLicense tab lists VMware license keys. Share them with care.
What is storedWhere
Your sources and settings%APPDATA%\InvCT\profile.json
Diagnostic log%LOCALAPPDATA%\InvCT\invct.log

Neither file contains a password in clear text.

Scheduled runs

InvCT runs without its window when you start it with options.

  1. In the window, set up the sources with Remember password on.
  2. Press Save profile as and save to, for example, D:\Reports\sources.json.
  3. Try the run in PowerShell:
    $run = Start-Process "$env:LOCALAPPDATA\Programs\InvCT\InvCT.exe" -Wait -PassThru `
      -ArgumentList '--profile D:\Reports\sources.json --out D:\Reports --log D:\Reports\last-run.log'
    $run.ExitCode
  4. In Task Scheduler, start InvCT.exe with the same options. Run the task as the Windows user who saved the profile, because the saved passwords open for that user only.
OptionWhat it does
--profile FILEThe profile that lists the sources
--out FOLDERWhere to write the reports. Without it, the folder saved in the profile
--customer NAMECustomer or project name, in place of the one in the profile
--parallel NSources to collect at once
--no-excel, --no-pptxLeave out one of the reports
--log FILEAlso write the output to a file, replacing the previous one
--demoWrite sample reports from made-up data
--check-updateReport whether a newer version is published
--updateInstall a newer version if there is one. Add --restart to open it afterward
--versionShow the version

Exit codes

CodeMeaning
0The reports were written
1Nothing could be collected, a report could not be written, or an update could not be checked or installed
2An option is wrong, or the profile is missing, unreadable or has no usable sources

Code 0 does not mean every source worked. If some sources fail and others are collected, the reports are still written and the code is 0. Check the log file or the vSource tab.

Passwords from an environment variable

Instead of saving a password, name an environment variable on the source in the profile file. Edit the file by hand, because saving the profile from the window again removes this line.

{
  "type": "vcenter",
  "host": "vcenter01.example.local",
  "username": "readonly@vsphere.local",
  "password_env": "VC_PASSWORD"
}

Fix a problem

The reason a source failed is under its name and in Activity. Find the matching line below.

MessageWhat to do
Cannot resolve host nameCheck the spelling and DNS, or enter the IP address.
Connection timed out
… is unreachable
Check routing and firewall rules from your PC to the port shown.
Connection was refusedCheck the port, and that the service is running on the target.
TLS certificate could not be verifiedMake Windows trust the certificate's issuer, or turn off Verify TLS certificate on that source.
Login failed: invalid username or passwordCorrect the login. Use Test connection to check it before another run, since repeated failures can lock an account.
Account has no permissionGive the account the read-only role at the vCenter root.
WinRM must be enabled on the targetRun Enable-PSRemoting on the target as administrator, and open port 5985 or 5986.
WinRM login failedEnter the account as DOMAIN\user and make sure it is a local administrator. If the message names a login method, choose another under Login.
… has no Hyper-V PowerShell moduleInstall RSAT-Hyper-V-Tools on that server.
No Hyper-V node could be collectedTurn on WinRM on every node. If you entered the cluster name, try a node name.
SSH login failedCheck the username, and the password or key file.
SSH host key is not in known_hostsAdd the key to known_hosts, or turn off Verify SSH host key.
No root or sudo: serial numbers and DIMM detail may be missingUse root or an account with sudo if you need that detail. Everything else was collected.
Connection was lost while collecting …Run it again. What was read before the connection dropped is in the report.
The saved password could not be decryptedIt was saved by another Windows user or on another computer. Edit the source and enter the password again.
No source could be collected, so no report was writtenFix at least one source and press Start again.

For anything else, report a bug with the text from Activity and the log at %LOCALAPPDATA%\InvCT\invct.log. Look through both first, because they can contain host names.

Update or remove

Check for updates, at the bottom left of the window, looks for a newer version. If there is one, Update now downloads it, checks its signature and that it starts, then restarts InvCT. You will need to enter any password you did not choose to remember.

If it says Updates are not set up yet, your copy has no update address. Download the latest setup file from the InvCT page and run it.

To remove InvCT, open Windows Settings > Apps, find InvCT and uninstall it. This leaves your saved sources, remembered passwords and log behind. To remove those too, delete these folders:

  • %APPDATA%\InvCT
  • %LOCALAPPDATA%\InvCT