title: Batch file to get computer name and insert character in it
body: <p>I'll be having to change the names of 50 computers here soon and would like to make a batch file to make it easier. The computer name format goes as follows:
  CMS-(RM#)-(TAG#) such as CMS-311-003784</p>
  
  <p>I need to insert a T before the room number (CMS-T311-003784). I have this so far to change the name but I have to type the name in where it says NEWPCNAME.</p>
  
  <p>I was wondering if there was a way to tell it to copy the current name but insert the T after the fourth character in the current name.</p>
  
  <pre><code>REG ADD HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /v ComputerName /t REG_SZ /d NEWPCNAME /f
  </code></pre>