Download Status.ps1 from minefarts/server-main-virtual_machines: direct link, hf CLI and curl.
- Browser
- Download file 142 Bytes
-
https://huggingface.co/datasets/minefarts/server-main-virtual_machines/resolve/main/Status.ps1
- Command line
-
hf download hf://datasets/minefarts/server-main-virtual_machines/Status.ps1
-
curl -L -o Status.ps1 https://huggingface.co/datasets/minefarts/server-main-virtual_machines/resolve/main/Status.ps1
142 Bytes
| param( | |
| [string] $Name | |
| ) | |
| $VM = Get-VM -Name $Name | |
| if ($VM.State -eq 'Running') { | |
| Write-Host 'true' | |
| } else { | |
| Write-Host 'false' | |
| } |