New Action for PCs
Action line:
powershell.exe "{actionpath}ChangePCName.ps1" {smartname}
ChangePCName.ps1: (Make sure Encoding is right, like UCS2_LE or something, and of course, save in your action path)
param([String]$oldname)
$newname=Read-Host -Prompt "Input new Name and click [Enter]"
Rename-computer –computername $oldname –newname "$newname" –domaincredential [domainname]\administrator -force -restart
It'll come up with a shell asking for the new name you want it to be, then ask for your administrator password, or whatever user has rights to change the PC name, then that PC will restart.