Solved

Logon Scripts with Kix32.exe

Posted on 2004-08-16
3
2,000 Views
Last Modified: 2012-06-22
Hi guys,
Id like to use Kix somehow to do the following when users logon.
I have created a logon.bat file for all users, but now need to add mapped drives automatically for some users who belong to certain groups in a Windows 2000 domain. Ive been told that this is possible to do by calling a kix script after the logon.bat file runs.
For example, the logon.bat file will map for ALL users, the drives G: and S:
After these are mapped, members of the Accounts group need drives M: and N: mapped, while users of the Marketing team need drive U: mapped.
If you guys have any ideas how to do this with Kix, Id really appreciate it.

Thanks in advance.

Simon
0
Comment
Question by:Simon336697
3 Comments
 
LVL 12

Accepted Solution

by:
Gary Dewrell earned 300 total points
ID: 11816989
Hi Simon336697,

Simon I found this sample script that will do what you want plus a whole lot more!
http://www.adminscripteditor.com/scriptlibrary/view.asp?id=26

God Bless
0
 
LVL 83

Assisted Solution

by:oBdA
oBdA earned 200 total points
ID: 11818107
No need yet to use external scripting tools. Copy ifmember.exe from the Resource Kit into your netlogon share, and you can map depending on group membership in batch.

Resource Kits - Free Tool Downloads - Ifmember.exe
http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/ifmember-o.asp

@echo off
:: *** Note that ifmember returns errorlevel 1 if the user *is* group member!
ifmember %UserDomain%\Accounts
if not errorlevel 1 goto endAccounts
net use M: \\SomeServer\SomeShare
net use N: \\SomeServer\SomeShare
:endAccounts

ifmember %UserDomain%\Marketing
if not errorlevel 1 goto endMarketing
net use U: \\SomeServer\SomeShare
:endMarketing
0
 
LVL 1

Author Comment

by:Simon336697
ID: 11818179
Hi gdewrell and oBdA,
Just want to say thank you to both of you so much for this.
Thanks again!

Simon
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server 2008 Server 2003 Server 2000 12 643
Remote desktop app for windows 2000 as a host - cheap and easy? 8 847
Domain dunctional level. 4 313
Retrieve process time in memory in VB 6 121
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now