Solved

Logon Scripts with Kix32.exe

Posted on 2004-08-16
3
2,005 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 85

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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…
Choosing a core focus or particular set of features and options can be tough. To help out, we’re going to highlight a handful of things your business needs on one of your social media pages. In other words, if one of these is missing, you should imp…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 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