8,329 questions
Hello ParKum,
Thank you for your question and for reaching out with your question today.
I have used the following Powershell Script in the past:
param(
[string] $deviceName
)
try{
if($deviceName)
{
Write-Host "Changing device name to:"$deviceName
Rename-Computer -NewName $deviceName
}
else
{
Write-Host "Please provide device name as argument"
}
}
catch
{
Write-Host $_.Exception.Message
}
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.