Solved

Logon Scripts with Kix32.exe

Posted on 2004-08-16
3
1,998 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
Comment Utility
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 82

Assisted Solution

by:oBdA
oBdA earned 200 total points
Comment Utility
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
Comment Utility
Hi gdewrell and oBdA,
Just want to say thank you to both of you so much for this.
Thanks again!

Simon
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

8 Experts available now in Live!

Get 1:1 Help Now