{"id":23040878,"url":"https://github.com/ascentis/parse-hyperv-inventory","last_synced_at":"2026-01-16T00:58:33.814Z","repository":{"id":144158551,"uuid":"327425998","full_name":"Ascentis/parse-hyperv-inventory","owner":"Ascentis","description":"Small application to parse hyper-v reports inventory and produce an Excel compatible csv file","archived":false,"fork":false,"pushed_at":"2021-04-18T20:21:39.000Z","size":304,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-08T14:44:43.547Z","etag":null,"topics":["hyperv","reporting"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ascentis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-06T20:48:19.000Z","updated_at":"2021-04-18T20:21:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac0eca27-3c04-4ab1-9572-e12926571ac6","html_url":"https://github.com/Ascentis/parse-hyperv-inventory","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ascentis%2Fparse-hyperv-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ascentis%2Fparse-hyperv-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ascentis%2Fparse-hyperv-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ascentis%2Fparse-hyperv-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ascentis","download_url":"https://codeload.github.com/Ascentis/parse-hyperv-inventory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246913024,"owners_count":20853966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hyperv","reporting"],"created_at":"2024-12-15T19:19:55.017Z","updated_at":"2026-01-16T00:58:33.807Z","avatar_url":"https://github.com/Ascentis.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-hyperv-inventory\nSmall application to parse hyper-v reports inventory and produce an Excel compatible csv file\n\nThis application takes as input a file with an inventory report produced by Get-HyperVInventory.ps1 PowerShell script and converts into an Excel compatible .csv file.\n\n## Usage\n\nParseHyperVReport [options]\n\n**Options:**\n\n**--source** Specifies the filename of the hyperV report file\n\n**--record-pattern** String specifying how a given text line should begin to be considered the marker\nof a new record\n\n**--attributes** An array of strings containing the list of attributes to extract from the report\nfile. Each entry can be a simple string matching the text before the colon (:) separating the value or a name=regex spec\nifying the name of the attribute and a regex specifying how to extra the value in from the right side of the colon marker. If using a regex it must contain at last one capturing group matching the value attempting to extract. The capturing group number 1 is the group used to extract the value (capturing group zero is the entire match)\n\n**--version** Show version information\n\n**-?, -h, --help** Show help and usage information\n\n## Example input file contents\n\n```\n### Hyper-V Environment Inventory ###\n## Report mode: VM Inventory, Cluster and Hosts ##\nCreated on: Wednesday, January 6, 2021 4:49:34 AM\nCreated by: domain\\user\nLocal server: ServerName\nScript folder: C:\\tools\nScript version: \u003ca href=\"https://gallery.technet.microsoft.com/Get-HyperVInventory-Create-2c368c50\" target=\"_blank\"\u003ev2.4\u003c/a\u003e\n\n### Virtual Machine information ###\n## VMs in cluster DevCluster02 ##\nNumber of VMs in cluster: 138\n\n\n# VM: CLOUDDC2 #\nClustered VM: True\nCluster group: CLOUDDC2\nCluster startup priority: 2000\nHost: HostName\nState: Running\nStatus: Operating normally\nVM ID: 859b5aad-9b80-4ca2-a59c-8ad6ec0b5bbb\nGeneration: 2\nVersion: 9.0\nCreated on: 06/20/2019 22:47:23\nGuest FQDN: CLOUDDC2.domain.com\nGuest OS: Windows Server 2019 Standard\nIntegration Services version: 10.0.17763\nIntegration Services state: \nAutomatic stop action: Save\nAutomatic start action: Nothing\nAutomatic start delay: 0\nConfiguration path: C:\\ClusterStorage\\MGR-Volume\\VMs\\CLOUDDC2\nCheckpoint path: C:\\ClusterStorage\\MGR-Volume\\VMs\\CLOUDDC2\nCurrent checkpoint type: Production\nReplication: not configured\nVMconnect.exe access granted to: nobody\n\n Checkpoints of CLOUDDC2 \n  none\n\n VM Security \nShielded VM: False\nTPM Enabled: False\nKey Storage Drive enabled: False\nState and Migration encrypted: False\n\n Virtual hardware \nNumber of CPUs: 4\nCompatibility for older operating systems enabled: False\nCompatibility for migration enabled: False\nHost Resource Protection enabled: False\nNested virtualization enabled: False\n\nRAM type: Static Memory\nRAM: 8192 MB\n\n...\n```\n\n## Usage example\n\n```\nParseHyperVReport --source ..\\..\\..\\Hyper-V-Inventory-20210106-045035.txt --record-pattern \"# VM\" --attributes \"# VM=(.*) #\" \"State\" \"Number of CPUs\" \u003e hyperv-report.csv\n```\n\nThis command produces the following output:\n\n```\n# VM=(.*) #,State,Number of CPUs\nCLOUDDC2,Running,4\nvm1,Off,8\nvm2,Running,16\nvm3,Off,8\nusr-vm4,Off,4\nusr-vm5,Off,4\nusr-vm6,Running,8\nusr-vm7,Running,8\n...\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascentis%2Fparse-hyperv-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fascentis%2Fparse-hyperv-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascentis%2Fparse-hyperv-inventory/lists"}