Introduction

The purpose of this task is to delete sessions from IIS when the token is disabled.

The task can be found by navigating to "Administration | Tasks", then scrolling down to the task "IIS Trigger";

Task Parameters

The task parameters are used by the task script to determine which tokens are to be deleted and are edited by left clicking on the context menu of the task and selecting "Parameters";

A new window titled "Task Parameters" will now open that lists the parameters making them available for editing, and the default parameters for this task are as follows;







The Fully Qualified Domain Name (FQDN) of you IIS server.





This flag indicates if MAPI sessions are to be deleted when the token is disabled.





This flag indicates if RPC sessions are to be deleted when the token is disabled.





This flag indicates if OWA sessions are to be deleted when the token is disabled.





This flag indicates if Activesync sessions are to be deleted when the token is disabled.




This flag indicates if EWS sessions are to be deleted when the token is disabled.




Select the "Enable Schedule" checkbox to ensure the task schedule is activated, then use the pencil icon ("")  to specify the time and frequency settings for automated task execution.


Editing and Scheduling the Task

Viewing and Editing Tasks

The task can be edited by left clicking on the context menu of the task and selecting "Edit";

A new window will now open titled "Task - Edit";







Enter the name to be assigned to the task within the management console.





Enter a description of what the task will do.





The version number of the task.





This field is used to specify when the task is scheduled to execute.





This field will determine if the task schedule is enabled (if enabled the task will execute at the scheduled time).





Specifies how many times the task should be repeated after the task is executed.






import com.deepnet.das.util.RestClient
import com.deepnet.das.sso.SsoServer
import com.deepnet.das.util.InternalIdentifier

def encodedtid = new InternalIdentifier(id:log.tokenId, objectName:"Token").encode()

def client = new RestClient()

def nodes = []
if(rpc)
nodes << 'rpc'

if(mapi)
nodes << 'mapi'

if(owa)
nodes << 'owa'

if(activeSync)
nodes << 'Microsoft-Server-ActiveSync'

if(ews)
nodes << 'EWS'

def hosts = iis_fqdn.tokenize(',')

for(host in hosts){
    if(host.trim())
        for(node in nodes)
        client.call('https://' + host.trim() + '/' + node +'/deleteSessionOfToken?tid=' + encodedtid)
}

def servers = SsoServer.list()
for(server in servers)
    server.deleteSsoProfileByTokenId(encodedtid);    





Scheduling the Task

Select the "Enable Schedule" checkbox to ensure the task schedule is activated, then use the pencil icon ("")  to specify the time and frequency settings for automated task execution.

Manual Task Execution

The task can be run manually from the management console by left click on the context menu of the task, then selecting "Run";

A new window will open titled "Execute Task" will then open (the window will be populated with the default task property values);






Provide a brief description that will be used to describe the purpose of the task in the audit log.





The Fully Qualified Domain Name (FQDN) of you IIS server.




This flag indicates if MAPI sessions are to be deleted when the token is disabled.





This flag indicates if RPC sessions are to be deleted when the token is disabled.





This flag indicates if OWA sessions are to be deleted when the token is disabled.





This flag indicates if ActiveSync sessions are to be deleted when the token is disabled.





This flag indicates if EWS sessions are to be deleted when the token is disabled.




To execute the task click  the  button.