AD Windows Machine Stats
A simple and effective way to gather machine statistics (RAM, Storage, CPU) from a Windows Server environment. Uses WinRM to Invoke-Command across your servers, creating a JSON file to securely send to your Tidal Migrations instance using the tidal command.
runner.ps1 should be customized for each environment.
Specifiy your username and a list of hostnames (either from reading a file, hard coded, or querying a directory).
If you plan on running this in a scheduled task, you may want to store your credential with the PsCredential method. See this blog post for an example.
NB: You do need WinRM enabled across your environment for this.
For a simple guide to do this via GPO, see here.