Fortinet black logo

Delete a network drive after tunnel is disconnected

Delete a network drive after tunnel is disconnected

The script will delete 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>

Delete a network drive after tunnel is disconnected

The script will delete 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>