FortiClient 5.2.3 not mapping all of the drives
Hi everyone
I spend most of the day setting up a Fortigate 60D with SSLVPN configuration. I am using the FortiClient 5.2.3.0633 and Fortigate firmware is 5.2.2,build642 (GA).
The PC I use is a Windows 7 and is not domain joined.
I want to map four network drives when connected to the SSLVPN. When I connect to the SSLVPN from my PC on a external network I get authenticated and the correct IP and DNS settings, even the correct DNS-suffix is pushed out through the tunnel. I am able to ping file server and I am also able to access the directory I want to map by using the UNC path which is the same as I want to map by the script. So everything is in place, but the logonscript in the FortiClient configuration. My XML file looks like this:
<on_connect> <script> <os>windows</os> <script> <![CDATA[ net use S: \\SERVER\SHARENAME /user:#username#@domain.local #password# net use P: \\SERVER\SHARENAME /user:#username#@domain.local #password# net use V: \\SERVER\SHARENAME /user:#username#@domain.local #password# net use N: \\SERVER\SHARENAME /user:#username#@domain.local #password# ]]> </script> </script> </on_connect> <on_disconnect> <script> <os>windows</os> <script> <![CDATA[ net use P: /delete /yes net use S: /delete /yes net use V: /delete /yes net use N: /delete /yes ]]> </script> </script> </on_disconnect>
The funny part is that the first net use command runs perfectly and maps the S: drive, but none of the other drives gets mapped when I connect to the SSLVPN. After I have connected and the S: drive is mapped correctly I can without entering the domain credentials map the other drives (P:, V: and N:) after I logon on. and they all gets deleted when I disconnect as stated under the <on_disconnect>.
Could anyone please help me? Is it the right syntax I am using? Do I need to change anything in my configuration? I would love a way to automatically map ALL of the drives when I logon to the SSLVPN.
Thanks in advance
Regards inuit
