{"id":14063703,"url":"https://github.com/UsefulScripts01/PSHyperVTemplate","last_synced_at":"2025-07-29T16:31:19.412Z","repository":{"id":65558013,"uuid":"594538687","full_name":"UsefulScripts01/PSHyperVTemplate","owner":"UsefulScripts01","description":"Create Hyper-V virtual machines from XML templates","archived":false,"fork":false,"pushed_at":"2023-03-20T12:04:49.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-13T07:05:27.824Z","etag":null,"topics":["hyper-v","powershell","virtual-machine","xml"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UsefulScripts01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-28T21:19:45.000Z","updated_at":"2023-11-16T08:48:25.000Z","dependencies_parsed_at":"2024-02-04T20:48:57.995Z","dependency_job_id":"43e37f45-50ff-4343-b24b-c89a54ac22e9","html_url":"https://github.com/UsefulScripts01/PSHyperVTemplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsefulScripts01%2FPSHyperVTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsefulScripts01%2FPSHyperVTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsefulScripts01%2FPSHyperVTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsefulScripts01%2FPSHyperVTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UsefulScripts01","download_url":"https://codeload.github.com/UsefulScripts01/PSHyperVTemplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028618,"owners_count":17858418,"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":["hyper-v","powershell","virtual-machine","xml"],"created_at":"2024-08-13T07:03:28.064Z","updated_at":"2024-12-04T01:31:21.758Z","avatar_url":"https://github.com/UsefulScripts01.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"## PSHyperVTemplate\n\n### Create Hyper-V virtual machines from XML templates.\n\n\n\n### Installation\n\nCopy the code from the area below and paste it into PowerShell Admin (or Windows Terminal).\n\n```powershell\nInstall-Module -Name PSHyperVTemplate\nImport-Module -Name PSHyperVTemplate\n```\n\n\u003chr\u003e\n\n### Default settings for a new machine\n\nThe default settings for a new VM are stored in `\"C:\\Temp\\VmTemplates\\DefaultTemplate.xml\"`. Copy this file to create additional templates.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cNewVmachine\u003e\n    \u003cName\u003eVM\u003c/Name\u003e\n    \u003cGeneration\u003e2\u003c/Generation\u003e\n    \u003cSecureBoot\u003e0\u003c/SecureBoot\u003e\n    \u003cMemory\u003e\n        \u003cSize\u003e8\u003c/Size\u003e\n        \u003cMinimum\u003e1\u003c/Minimum\u003e\n        \u003cMaximum\u003e16\u003c/Maximum\u003e\n    \u003c/Memory\u003e\n    \u003cCPU\u003e\n        \u003cCount\u003e4\u003c/Count\u003e\n        \u003cMigrateToPhysical\u003e1\u003c/MigrateToPhysical\u003e\n    \u003c/CPU\u003e\n    \u003cHardDrive\u003e\n        \u003cSize\u003e100\u003c/Size\u003e\n        \u003cPath\u003eC:\\Users\\Public\\Documents\\Hyper-V\\Virtual hard disks\\\u003c/Path\u003e\n    \u003c/HardDrive\u003e\n    \u003cDVD\u003e\n        \u003cISO\u003eC:\\MDT\\Boot\\LiteTouchPE_x64.iso\u003c/ISO\u003e\n    \u003c/DVD\u003e\n    \u003cNetwork\u003e\n        \u003cVirtualSwitch\u003eDefault Switch\u003c/VirtualSwitch\u003e\n    \u003c/Network\u003e\n    \u003cAutoStart\u003e0\u003c/AutoStart\u003e\n    \u003cAutoCheckpoints\u003e0\u003c/AutoCheckpoints\u003e\n    \u003cAutoRunManager\u003e0\u003c/AutoRunManager\u003e\n\u003c/NewVmachine\u003e\n```\n\n\u003chr\u003e\n\n### Parameters\n\nYou can define your own parameter values or use the predefined ones from the VmTemplate.xml file.\n\n`-Template` - [string] Chose XML template to use \\\n`-Name` - [string] Name of a new machne (default is \"VM_no\") \\\n`-Generation` - [string] Generation of a new machine (1 or 2, default is 2) \\\n`-ISO` - [string] Boot ISO file path \\\n`-Start` - [switch] Start the machine after creation \\\n`-RunManager` - [switch] Run Hyper-V Manager\n\n\u003chr\u003e\n\n### Examples\n\nExample 1: Simple, all parameters from the DefaultTemplate.xml.\n```powershell\nNew-Vmachine\n```\nExample 2: Generation 2. Start after creation.\n```powershell\nNew-Vmachine -Generation 2 -Start\n```\nExample 3: Generation 1. Use the \"Linux.xml\" template file..\n```powershell\nNew-Vmachine -Generation 1 -Template \"Linux\"\n```\nExample 4: Generation 1, boot from the ISO file defined in the parameter.\n```powershell\nNew-Vmachine -Generation 1 -Name \"MachineName\" -ISO \"C:\\installation.iso\"\n```\nExample 5: Remove selected machine.\n```powershell\nRemove-Vmachine -Name \"MachineName\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FUsefulScripts01%2FPSHyperVTemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FUsefulScripts01%2FPSHyperVTemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FUsefulScripts01%2FPSHyperVTemplate/lists"}