Script settings & command line parameters
Here is a run-down of the script wide settings as well as the command line parameters available.
Command line arguments
/silent- No Internet Explorer window is used during execution, the script is effectively running in the background.
/forcedebug- Forces the script to output all debug messages to the Internet Explorer window.
/rules:[XML file]- Use a different XML file than the default.
/?- A help screen with list of command line parameters is displayed.
Script wide settings
There are five global script wide settings that can be set directly in the script file itself (Logon.vbs). Here is a description of them:
DEFAULT_XMLFILE- Defines the default xml file to use if none is specified through command line arguments.
ALWAYS_RUN_ON_SERVER- Defines if the script should always run when the user is logging in to a server, or if it should display a dialog box asking if the user want to continue executing the script. Allowed values are â€true†and â€falseâ€.
WRITE_EVENT_LOG- Defines if the script should write an entry in the computers event log. Allowed values are â€true†and â€falseâ€.
DEBUG_MODE- Defines if debug mode is enabled or disabled by default. In debug mode, everything is displayed in the Internet Explorer window. Allowed values are â€true†and â€falseâ€.
DELAY_BEFORE_CLOSE- Defines how long the script should wait before closing the Internet Explorer window. If there are no errors during execution, the Internet Explorer window will close automatically within the specified period, if there were one or more errors, a warning is displayed to the user and the user is asked to contact the IT department. Value is in milliseconds (1 second = 1000 milliseconds)
Default values:
1 2 3 4 5 6 | ' Constants Const DEFAULT_XMLFILE = "logonrules.xml" Const ALWAYS_RUN_ON_SERVER = false Const WRITE_EVENT_LOG = true Const DEBUG_MODE = false Const DELAY_BEFORE_CLOSE = 10000 |