Page 1 of 1 1
Topic Options
#115385 - 2004-03-03 07:10 AM Mapping Drives Across DOMAINS
Walshie Offline
Lurker

Registered: 2004-03-03
Posts: 3
I am trying to map drives across different domains.
I know in a batch file you use the net use * \\WHATEVER\IPC$ /user:DOMAIN\%username%
does something like this work in KIXTART???

Top
#115386 - 2004-03-03 08:36 AM Re: Mapping Drives Across DOMAINS
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Yep like this.

Code:
SHELL '%Comspec% /c net use \\WHATEVER\IPC$ /user:Domain\Account >NUL'



The IPC$ can not be assigned a drive though


Top
#115387 - 2004-03-03 09:03 AM Re: Mapping Drives Across DOMAINS
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
you saying this does not work(?):
$useraccount=Me
$domain=theirDome

use \\whateva\ipc$ /user:$domain\$useraccount
_________________________
!

download KiXnet

Top
#115388 - 2004-03-03 03:28 PM Re: Mapping Drives Across DOMAINS
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The use of USE (pun intended ) is well explained in the KiXtart Manual, including providing optional authentication information.
_________________________
There are two types of vessels, submarines and targets.

Top
#115389 - 2004-03-03 03:48 PM Re: Mapping Drives Across DOMAINS
Jose Offline
Seasoned Scripter
*****

Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
Walshie:
I have tryed several ways trying to map with credentials, The Kix Use command cannot make it, dunno if ever worked. I finnally made it work with shell like this.

Code:
 Shell "%COMSPEC% /C NET USE Q: \\"+$IP+"\"+$Share+" /USER:"+$domain+"\"+$userid+" "+$Pass+""



Hope it works.
_________________________
Life is fine.

Top
#115390 - 2004-03-04 12:53 AM Re: Mapping Drives Across DOMAINS
Walshie Offline
Lurker

Registered: 2004-03-03
Posts: 3
has anyone use the Net Use in command prompt, if you use the /user:whateverdomain\%username% this will also use the password of the current logged in user for the authentication if a password has not been specified. Can 'USE' perform the same command of do i have to do a shell command 7 times for each different server and shares??
Top
#115391 - 2004-03-04 09:17 AM Re: Mapping Drives Across DOMAINS
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Have not tested it but would assume it works just fine. Have not heard anyone complain that it did not work.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.057 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org