• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Pass username and password to the batch file for net use cmd

Scheduled Pinned Locked Moved OpenVPN
1 Posts 1 Posters 734 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    pfDriver
    last edited by Dec 30, 2014, 6:39 PM

    I'm in trouble because I couldn't pass user credentials to the batch file after successful openvpn logon.
    My remote users authenticate by ldap. At the beginning they need to provide username and password. I have also script which runs after connection have been established. Inside the script there is a simple net use command (drive mapping). Unfortunately I don't know how to reuse username and password provided before inside the script?
    Network share name and IP address are visible from the client computer.
    What should I do to avoid entering user credentials twice (for openvpn and network drive)?

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received