Page 1 of 1 1
Topic Options
#130602 - 2004-12-05 05:49 PM Simple Script to map to a share
Googlezx Offline
Fresh Scripter

Registered: 2004-12-02
Posts: 6
I want to have a simple script in which a user will map to a Drive (P:)share called IT$ in my file server \\fs2 if a user user is member of a domain group (_IT).

File Server NAme \\FS2.my.com
Domain Group : _IT
Shares to map to if auser is a member : IT$

Can anybody please help. I'm stuglling on this one.
We have now a running kix script did by Nework Admins who is away, I just need code for this so I can insert it in the existing script.


thank you

Top
#130603 - 2004-12-05 06:02 PM Re: Simple Script to map to a share
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See the KiXtart Manual under USE and INGROUP.
Code:

IF INGROUP('_IT')
USE P: '\\fs2\IT$'
ENDIF

_________________________
There are two types of vessels, submarines and targets.

Top
#130604 - 2004-12-06 05:32 PM Re: Simple Script to map to a share
Anonymous
Unregistered


I tried to test it in my DC \\sysvol\ but I didnt work.
I tried to copy the scripts and kix files in my workstation just to test and it worked and mapped to the share.

I thought it might be the cache so I include /f in my script just to flush

%0\..\Kix32 kixlogin /f
but same..
Please assist more.




Top
#130605 - 2004-12-06 07:31 PM Re: Simple Script to map to a share
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
If I'm mistaken I apologize, but it appears that you have a thread on this subject already going over here.

http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=129586&page=&view=&sb=5&o=&fpart=2&vc=1

Please discontinue posting to this thread unless this is a completely new suject or issue.

Your issue is being addressed in the other post which appears to be a little more complex then a simple drive mapping from a Domain Controller in a single Domain.

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
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.066 seconds in which 0.028 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