Solved

Logon Scripts with Kix32.exe

Posted on 2004-08-16
3
2,003 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 84

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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…
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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