Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

KIX script: map drive based on OU membership

Posted on 2008-06-11
3
Medium Priority
?
2,725 Views
Last Modified: 2012-06-22
I am trying to convert our current vbs login script to kix script.

The script maps a drive based on OU membership, eg:
===============================
select case LCase (oParent.name)
     case "ou=execs"
      oNet.RemoveNetworkDrive "S:"
      oNet.MapNetworkDrive "S:", "\\CORPFS01\Execs$"
end select
==============================

I want to do the same thing with KIX, but am having no luck in getting the IF inOU("Execs") variable working.

Is there a simple way to do this?


Mapping drives via group memberships is working fine by using
IF InGroup("groupname") =1
   use f: \\corpfs01\fileshare
ENDIF

What am I missing???????
0
Comment
Question by:davewhy
[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
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Isorg earned 2000 total points
ID: 21764260
in kix there is no InOU() command.

but there is a really nice InContainer() UDF that can be found here.  http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=82433&site_id=1#import
0
 

Author Comment

by:davewhy
ID: 21764557
Thankyou Isorg.  I shall setup the UDF and try to call from the script.  Any tips?

0
 

Author Comment

by:davewhy
ID: 21767824
Isorg, the InContainer() and dependent TranslateName() UDF's worked a treat.  I have included both in a seperate UDF (.kxf) file, called them from the script, and got the result I wanted.  Brilliant.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

722 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