WinServer.json

{
    "DeploymentOptions": {
        "StartAfterCreation": true
    },
    "VMs": [
        {
            "Name": "WinServerAutomationTest",
            "ProcessorCount": 8,
            "MemoryStartupBytes": "1GB",
            "MemoryMaximumBytes": "8GB",
            "CheckpointType": "Disabled",
            "HyperVServers": [
                {
                    "Name": "Ollie",
                    "SwitchName": "VM Virtual Switch",
                    "GoldenImagePath": "A:\\packer-osDisk.70a9005a-6b7e-497c-ba20-e86250cb4379.vhdx",
                    "VMHardDiskPath": "A:\\Virtual Hard Disks"
                }
                 
            ],
            "Provisioning": {
                "RebootAfterEachScript": true,
                "Scripts": [
                    "C:\\TestScripts\\WinServer\\Script1.Set-Credential.ps1",
                    "C:\\TestScripts\\WinServer\\Script2.ps1",
                    "C:\\TestScripts\\WinServer\\Script3.ps1",
                    "C:\\TestScripts\\WinServer\\Script4.Set-Credential.ps1",
                    "C:\\TestScripts\\WinServer\\Script5.ps1"
                ]
            }
        }
    ]
}