Fortinet white logo
Fortinet white logo

XML Reference Guide

Deleting a network drive after the tunnel is disconnected

Deleting a network drive after the tunnel is disconnected

The script deletes the network drive after the tunnel is disconnected.

<on_disconnect>

<script>

<os>windows</os>

<script>

<script>

<![CDATA[

net use x: /DELETE

]]>

</script>

</script>

</script>

</on_disconnect>

Deleting a network drive after the tunnel is disconnected

Deleting a network drive after the tunnel is disconnected

The script deletes the network drive after the tunnel is disconnected.

<on_disconnect>

<script>

<os>windows</os>

<script>

<script>

<![CDATA[

net use x: /DELETE

]]>

</script>

</script>

</script>

</on_disconnect>