Skip to main content

Task IIS - Change Website State​

The IIS - Change Website State Task starts, stops or restarts an existing website in the IIS of the VisualCron Server computer, using an IIS Connection.

IIS - Change state of the web site Task settings, with the Connection field and the Name and Operation fields

warning

This Task uses an IIS Connection; see Connection - IIS. The Task always works on the IIS of the VisualCron Server computer: the Connection's Address is not used, and the changes are made as the account of the VisualCron Server service, which must be allowed to change IIS. The Connection's Username and Password are used only for network access.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

IIS - Change state of the web site tab​

  • Connection: the IIS Connection. Required. Click the Settings icon to open Manage Connections

  • Name (Web site parameters group): the name of the website, matched exactly, including case. Required. Click the Refresh icon to list the websites of the VisualCron Server computer

  • Operation: one of:

    • "Nothing" (default): the website is not changed
    • "Start": starts a stopped website
    • "Stop": stops a started website
    • "Restart": stops and then starts a started website

Output and errors​

On success, the output is the state that IIS reports after the operation, for example "Started".

warning

When the website is not in the state the operation needs (for example "Start" on a website that is already started), the Task writes Operation imposible - current state is followed by the current state to the standard error output, and the Task reports success. When the website is not found, or with "Nothing", the Task writes no output, and the Task reports success.

The TimeOut tab does not stop this Task.