Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
OSD
24.2.13.1
Public/OSDCloudTS/Set-HyperVName.ps1
function
Set-HyperVName
{
[
CmdletBinding
(
)
]
param
(
)
$HyperVName
=
Get-HyperVName
Write-Output
"Renaming Computer to $HyperVName"
Rename-Computer
-NewName
$HyperVName
-Force
}