Download Create.ps1 from minefarts/server-main-virtual_machines: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/datasets/minefarts/server-main-virtual_machines/resolve/main/Create.ps1
- Command line
-
hf download hf://datasets/minefarts/server-main-virtual_machines/Create.ps1
-
curl -L -o Create.ps1 https://huggingface.co/datasets/minefarts/server-main-virtual_machines/resolve/main/Create.ps1
554 Bytes
| param( | |
| [string] $Name | |
| ) | |
| Import-Module 'E:/Virtual Machines/mod.psm1' -Function Repair-VirtualMachine | |
| #===================================================================================================== | |
| New-Item ` | |
| -Path "$HyperV\$Name" ` | |
| -ItemType Directory ` | |
| -ErrorAction SilentlyContinue ` | |
| -Verbose | |
| New-VHD ` | |
| -Path "$HyperV\$Name\Hard Drive.vhdx" ` | |
| -SizeBytes 150GB ` | |
| -Dynamic | |
| Repair-VirtualMachine -Name $Name | |
| #===================================================================================================== |