Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Way to connect to a remote pc, other than net use command?

Status
Not open for further replies.

patrickdrd

Programmer
Nov 21, 2003
149
GR
Hi to all!

Is there any other way to connect to a remote pc other that net use?
I am working on a script at the time, and I found a way using the command:

NET USE DEVICENAME \\COMPUTERNAME\SHARENAME password /USER:DOMAINNAME\username

Is there any other way, without the need to map the drive?

Thanks in advance!
 
You don't have to map the drive. In internet explorer in the address field you can type \\computername\sharename
and hit enter or click GO. You can also do this under "My Computer" in the address field.

If there's security you'll be prompted for username and password otherwise the data in the share will appear.

FYI
 
OK, but I want to be able to connect with a script (without action from the user).
 
If so, under \\domain controller name\netlogon is where you would create your log on scripts. Enter your NET USE commands into a script file. For example: LOGON.BAT

Under the user's account profile is where you point to the log on script you want the user to use. Just type in the script file name (i.e. logon.bat). No need for the full path as the server already knows where to look for the scripts.

If NOT, create a batch file through DOS (make sure the extension you use is .bat). Insert your NET USE commands. Save it and copy/cut or create a shortcut to it in the START folder under Start>Programs>START.

fyi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top