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 750 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

      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
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.