Public/Functions/OSDCloud/Set-HyperVName.ps1

1
2
3
4
5
6
7
function Set-HyperVName {
    [CmdletBinding()]
    param ()
    $HyperVName = Get-HyperVName
    Write-Output "Renaming Computer to $HyperVName"
    Rename-Computer -NewName $HyperVName -Force 
}