Make Authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stanley

    #1

    Make Authentication

    Hi all! Can someone tell me how to make network connecttion with a
    remote computer (win2k xp 2k3) when you know the Admin's password? Just
    like your use [net use \\hhw1\c$ "password" /user:"administr ator"]
    Thanks in advance!

  • Ken Tucker [MVP]

    #2
    Re: Make Authentication

    Hi,

    I am not sure if I understand the question but Impersonation
    will allow you to run code as another user.

    Choosing the right web hosting company is one of the most important — and most consequential — decisions you’ll make when starting or growing your website.


    Ken
    -------------------
    "Stanley" <xstanley@gmail .com> wrote in message
    news:1130333617 .246638.76070@f 14g2000cwb.goog legroups.com...[color=blue]
    > Hi all! Can someone tell me how to make network connecttion with a
    > remote computer (win2k xp 2k3) when you know the Admin's password? Just
    > like your use [net use \\hhw1\c$ "password" /user:"administr ator"]
    > Thanks in advance!
    >[/color]


    Comment

    • Jim Underwood

      #3
      Re: Make Authentication

      There may be a namespace that does this, but you can definately shell out
      and execute the dos command to map the drive...

      In the example below the X drive is mapped to your share. AppWinStyle.Hid e
      does it wihtout displaying the cmd window.

      shell("net use X: \\hhw1\c$ ""password" " /user:""administ rator""",
      AppWinStyle.Hid e)

      "Stanley" <xstanley@gmail .com> wrote in message
      news:1130333617 .246638.76070@f 14g2000cwb.goog legroups.com...[color=blue]
      > Hi all! Can someone tell me how to make network connecttion with a
      > remote computer (win2k xp 2k3) when you know the Admin's password? Just
      > like your use [net use \\hhw1\c$ "password" /user:"administr ator"]
      > Thanks in advance!
      >[/color]


      Comment

      • Stanley

        #4
        Re: Make Authentication

        Thanks for reply, but I don't really want to use external program like
        'net'! Do you have some more idea? Thanks!

        Comment

        Working...