Call wmic computersystem where "name='%computername%'" call rename {$computer_name}