473,387 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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:"administrator"]
Thanks in advance!

Nov 21 '05 #1
3 853
Hi,

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

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
-------------------
"Stanley" <xs******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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:"administrator"]
Thanks in advance!

Nov 21 '05 #2
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.Hide
does it wihtout displaying the cmd window.

shell("net use X: \\hhw1\c$ ""password"" /user:""administrator""",
AppWinStyle.Hide)

"Stanley" <xs******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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:"administrator"]
Thanks in advance!

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

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
3
by: Raquel | last post by:
I am confused between Authentication at Instance Vs Authentication at Database. Instance authentication is specified at Instance creation time (db2icrt) and is stored in db mgr. cfg. file while...
9
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
6
by: Jeremy S. | last post by:
Sorry if this is too far OT - I posted this in the IIS group and got no response - so here goes: What would be a good or recommended way to make a Web site in IIS6 inaccessible to users on the...
1
by: Marc Eggenberger | last post by:
Hi there .. I have the following scenario. I have a Webservice which is running under Win2003/IIS6 with .Net1.1 The Service itselfs connects to a database which is a SQL 2000 on a Server in...
18
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
1
by: =?Utf-8?B?cm9nZXJfMjc=?= | last post by:
hey, I need to make an app that can accept sql authentication or windows authentication. how do I do that?? isnt it either or? how do I switch between the two?? thanks Roger
30
by: Jorge | last post by:
Hi, I have a web app that loads 2 scripts incrementally. The first one handles authentication/login. If a user is authenticated, a second script gets loaded by inserting a script tag in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.