title: Win7 registry not running vbs with multiple batch files
body: <p>I have created a computer initialization script that allows for a) a batch file that syncs the PC with a time server, b) a batch file that activates Windows to a license server, c) displays a change log text file, d) allows the computer name to be changed via input from the user, and e) adds the users name to a text file on the desktop.  The script is to be run every time the computer boots therefore, a registry entry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run has been added.  When I simply run the script by itself everything functions as usually, but when I reboot the computer to have the script run on its own I only get the first batch file to run and not the other two.  However, the remaining portion of the script continues. I am not sure if this is a problem with the script or a problem directly related to the Win7 registry Any help would be appreciated...</p>
  
  <p>See script below...</p>
  
  <pre><code>    '==============================================================================='
      '    Script Name       : Computer Initialization
      '    File Name         : ComputerInitial.vbs
      '    Creation Date     : 2012-11-27
      '    Update Date       : 2014-02-19
      '    OS                : Windows 7
      '
      '
      '==============================================================================='
      '**Start Encode**
      Option Explicit 'Enforce strict naming
      Dim WSH, FSO
      Dim objComputer, objWMIService, objOperatingSystem, objNetAdapter
      Dim strTitle, strVersion, strThisPC, strComputername, strCompNameRegPath
      Dim strWorkgroup, strCurrent_CleanStatus
      Dim strCCS, strTcpipParamsRegPath, strIPAddress, strSubnetMask
      Dim strGateway, strGatewayMetric, strCompCleanStatus
      Dim colMEM, colNetAdapters, colOperatingSystems
      Dim errEnable, errGateways
      Dim strTime, strWin, strLog
  
  
      'Setup scripting environment
      Set WSH = CreateObject ("WSCript.shell")
      Set FSO = CreateObject("Scripting.FileSystemObject")
  
      'Set target PC for WMI
      strThisPC = "."
  
      'Set the Title for any dialogs
      strTitle = "Workstation Initialization"
  
      '------------------------------------------------------------------------
      'Section 1 - Update Time
      Dim strTimeUp
      Dim shell
      set shell = WScript.CreateObject("WScript.Shell")
  
      strTimeUp = "cmd /c timeupdate.bat"
      shell.Run strTimeUp, 0, True
      WSH.Popup "Current Time and Date has been updated.",0, strTitle 'Inform user
  
      '------------------------------------------------------------------------
      'Section 2 - Activate Windows
      Dim strWinAct
      set shell = WScript.CreateObject("WScript.Shell")
  
      strWinAct = "cmd /c windowsActivate.bat"
      shell.Run strWinAct, 0, True
  
      '------------------------------------------------------------------------
      'Section 3 - Display Change Log
      Dim strChLog
      set shell = WScript.CreateObject("WScript.Shell")
  
      strChLog = "cmd /c changelog.bat"
      shell.Run strChLog, 0, True
  </code></pre>
  
  <p>Below is the code for timeupdate.bat</p>
  
  <pre><code>    net time \\192.168.101.101 /set /y
  </code></pre>
  
  <p>Below is the code for windowsActivate.bat</p>
  
  <pre><code>    slmgr /skms 192.168.101.13
      slmgr /ato
  </code></pre>
  
  <p>Below is the code for changelog.bat</p>
  
  <pre><code>    start "" "C:\Users\Cell User\Desktop\changelog.txt.lnk
  </code></pre>