Skip to content

User Guide

gyk4j edited this page Aug 14, 2024 · 3 revisions

User Guide

CHCl3 is available as a collection of CMD/Batch script, VBScript and Powershell script. They are functionally identical, and use the same set of data files in the data folder. Running any one of them would suffice, depending on your environment constraints and preference.

All of them require running in administrator mode to make the necessary system changes.

CMD / Batch Script

Using CHCl3 as a CMD/Batch script is the easiest as it has no pre-requisite software component.

Running CMD/Batch Script

Method 1: Use Command Prompt

  1. Run a Command Prompt as an Administrator.
  2. chcl3.cmd

Method 2: Run from Explorer

  1. Right-click on chcl3.cmd > Run as administrator.

Note

The window closes as soon as it finishes, so there is no time to review the output for any errors encountered.

VBScript

CHCl3 is available as a VBScript. This requires the Microsoft Windows Script Host (WSH), which comes pre-installed in Windows 7.

Running VBScript

Method 1: Use WScript.exe

  1. Run a Command Prompt as an Administrator.
  2. wscript chcl3.vbs

Method 1: Use CScript.exe

  1. Run a Command Prompt as an Administrator.
  2. cscript chcl3.vbs

Note

The difference is when using WScript, popup dialog boxes are shown for output messages, while for CScript, they are printed in the console as text.

Powershell Script

Lastly, CHCl3 is available as a Powershell script.

Running Powershell Script

This requires Windows Powershell 5.0 at the minimum. Windows 7 comes with Powershell 2.0 by default, so we need to install the following software updates:

Then run Powershell as administrator:

  1. Click Start > Accessories > Windows Powershell
  2. Right-click Windows Powershell > Run as administrator
  3. Type $PSVersionTable and press Enter to verify Powershell version
  4. Check PSVersion has value of 5.x.xxxxx.xxxx and above
  5. Type Set-Execution-Policy -Execution-Policy Unrestricted and press Enter
  6. Type Y or A to allow running of Powershell scripts
  7. Type .\chcl3.ps1 and press Enter
Clone this wiki locally