Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Feb 2003
    Location
    Melbourne, Victoria, Australia
    Posts
    139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Share on remote server (XP Pro SP3)

    I connect to a share on a remote W2K3 server using the below statement
    net use q: servernamesharename "password" "/u:servernameuserid" /Persistent:No
    which works quite well.

    As you can see I need to use a different userid to my network login userid to connect to this share.

    I'd like to be able to connect to this share, not by mapping to a drive letter, but by using the run box.
    Is there a way to pass the userid and password as a parameter to the UNC?

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Share on remote server (XP Pro SP3)

    I think you might be able to do this by first using NET USE to connect to the interprocess communication pipe IPC$ on the remote system...
    <code>net use servernameIPC$ "password" /u:servernameuserid </code>

    And then trying the run command. This should make use of the existing authenticated session.

    StuartR

  3. #3
    2 Star Lounger
    Join Date
    Feb 2003
    Location
    Melbourne, Victoria, Australia
    Posts
    139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Share on remote server (XP Pro SP3)

    Excellent! Works! Thanks!
    How do I drop the connection to IPC$ once I've finished with the connection?
    Is there a need to, or does it drop after a period of inactivity?

  4. #4
    2 Star Lounger
    Join Date
    Feb 2003
    Location
    Melbourne, Victoria, Australia
    Posts
    139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Share on remote server (XP Pro SP3)

    Should have done this research before I posted my previous question about deleting the connection.
    This deletes the connection
    net use servernameIPC$ /d
    Regards
    Zinger

  5. #5
    Uranium Lounger
    Join Date
    Mar 2001
    Location
    New Jersey
    Posts
    6,684
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Re: Share on remote server (XP Pro SP3)

    Thanks for posting back. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    <IMG SRC=http://www.wopr.com/w3tuserpics/DocWatson_sig.gif>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •