Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
OSD
23.5.26.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
}