Windows User Connect Script not working
Posted: Wed Jun 02, 2021 11:05 am
Hi All
I have followed the example in
https://openvpn.net/vpn-server-resource ... work-share
But I can't get the Windows User Connect Script to work.
In the Windows User Connect Script I have
start \\192.168.10.170\VPNUser\shares.exe
There is a file that can seen at that location. It has the widest open permissions.
I connect to the VPN server, it asks me if I want to run the file.
If I say yes imediatly, then I get this error after about 20 seconds.
--------------------8<--------------------
[Window Title]
Network Error
[Main Instruction]
Windows cannot access \\192.168.10.170\VPNUser\shares.exe
[Content]
Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
[^] Hide details [Diagnose] [Cancel]
[Expanded Information]
Error code: 0x80070035
The network path was not found.
--------------------8<--------------------
If I wait over 3 seconds before I click Yes then the file runs.
If I select "Don't show again" and yes then I get the error every time.
This means that the network is not set up yet. Therefor put a delay into the script.
So now I I have two lines in the Windows User Connect
e.g.
start timeout /t 30
start \\192.168.10.170\VPNUser\shares.exe
Then it only runs the first line of the script
If I combine the commands onto one line.
e.g.
start timeout /t 30 && start \\192.168.10.170\VPNUser\shares.exe
Then they both run concurrently
I have verified that the script is in place using
./sacli --pfilt <USER_OR_GROUP> UserPropGet
I have changed this by both the GUI and CLI and confirmed that it has been pushed out to the client.
The client asks to run whatever I put into [prop_cli.script.win.user.connect]
Any idears?
I have followed the example in
https://openvpn.net/vpn-server-resource ... work-share
But I can't get the Windows User Connect Script to work.
In the Windows User Connect Script I have
start \\192.168.10.170\VPNUser\shares.exe
There is a file that can seen at that location. It has the widest open permissions.
I connect to the VPN server, it asks me if I want to run the file.
If I say yes imediatly, then I get this error after about 20 seconds.
--------------------8<--------------------
[Window Title]
Network Error
[Main Instruction]
Windows cannot access \\192.168.10.170\VPNUser\shares.exe
[Content]
Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
[^] Hide details [Diagnose] [Cancel]
[Expanded Information]
Error code: 0x80070035
The network path was not found.
--------------------8<--------------------
If I wait over 3 seconds before I click Yes then the file runs.
If I select "Don't show again" and yes then I get the error every time.
This means that the network is not set up yet. Therefor put a delay into the script.
So now I I have two lines in the Windows User Connect
e.g.
start timeout /t 30
start \\192.168.10.170\VPNUser\shares.exe
Then it only runs the first line of the script
If I combine the commands onto one line.
e.g.
start timeout /t 30 && start \\192.168.10.170\VPNUser\shares.exe
Then they both run concurrently
I have verified that the script is in place using
./sacli --pfilt <USER_OR_GROUP> UserPropGet
I have changed this by both the GUI and CLI and confirmed that it has been pushed out to the client.
The client asks to run whatever I put into [prop_cli.script.win.user.connect]
Any idears?