Discussion Locked

IF member THEN map

0 helpful
22 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to find a reliable solution for creating drive mappings to share folders. In Novell it used to be easy to share a folder, create a group, then add a statement to the logon script using an IF THEN statement. In a Windows 2003 environment I did find a shareware script to do something similar, but it is not reliable. Does anyone know a solution for this, whether it is freeware, or a purchased solution similar to ScriptLogic, for example?
Thanks, Tracey

22 replies

by entawanabi

We will pretend it is on my system that you are a customer: now to include me in to share "A PORTION" of a file all I do is assign an attachment to your loggon that allows ou to see that portion of that file as below: Track-to-indenture,,,the three commas indicate that here is the indenture number that is followed by attache-to-...this is your loggon cliftnotes guide!!!the three exclamation marks indicate that this ends here and also that their can be more and that they can be removed.

ENTA WANABI

by entawanabi

I DID NOT TYPE IT WRONG; as it is above, AGAIN tech republic has chqnged one of my entries and now it is wrong and won't work!

ENTA WANABI

by beth blakely

That post hasn't been edited. It always shows when it has, even when I change it as moderator.

Are you copying and pasting from another application? If so, the characters may be jumbled. This is especially true if you're pasting from Word.

by entawanabi

If you knew what you were talking about it would be different - You do not edit my stuff, you will find yourself in prison and second in this vein you are a liar about editing anyway! Next "I"typed it in in a particular format period so that it could be used, it is not in that format and I'm damn tired of being called a liar about things that "I" have done!

ENTA WANABI

by jamesrl

Thats the most articulate post I've seen from him/her/it. Well done.

We will miss all those lessons -we learned some much from Enta Wanabi....

James

by charliespencer

Not my boy Enta! He's like Jeremiah the Bullfrog: I never understood a single word he said, but I helped him drink his wine. Pond Scum will be heartbroken. He's made a career of 'translating' Enta's babblings into something not unlike English.

Enta, don't let the virtual screen door hit you.

by maniacman

Well, he did run his mouth off and got all huffing and puffing, so I guess it was warranted. I'm not the judge here, but I'm sure Beth had a good reason for this.

by charliespencer

Have you considered using two login scripts? One for those who the drive mapped to the share, and one for those who don't?

by tig2

Even if Enta was still among us, you'd still never discover what all 16 classes were about! I think that the closest we ever came was Pond Scum's interpretations... and those were sometimes suspect.

Let Beth ban away! Let's face it, Enta crossed the line. Perhaps a break from TR will allow the nice medication begin to help him. We should give him at least that much.

And besides, he'll be back. You know he will. They never do stay away.

by boxfiddler

to a document for further study! I will be happy to send them to you if you like. :D

Seriously, I did. Theory was, especially after Class 15, that SETUP CLASS meant set the responders up for something, and that certain keywords (reginims comes immediately to mind) are twisted versions of some real word or regulation, or belief or...

Haven't gotten real far with it! :D

by the scummy one

send the message, and see how long it takes to be interpretatededed

then you can tell if we are actually anywhere close as for the intrepidations

by charliespencer

TR decoder rings are available as swag for only 2500 TR points. For those of you who joined after the points system went away, Beth's car needs washed and waxed ("I said two coats, Biff.")

by Member 25348569

Script Logons! Logoffs! ANYTHING! Power to heal! Power to BURN! Power to KILL! BWAHAHAHAHA!

Neil ]:)

Edit: Sorry, shouldn't post before third cup of tea...

The following simple vbscript snippet will check for group membership and map a drive:

' ---------------------
strDomain = "YourdomainName"
Set objNetwork = CreateObject("WScript.Network")
strUser = objNetwork.UserName
strADSPath = "WinNT://" & strDomain & "/" & strUser
Set objUser = GetObject(strADSPath)

For Each objGroup in objUser.Groups
Select case Trim(objGroup.Name)
Case "First group to check for"
objNetwork.MapNetworkDrive "X:", "\\UNC path to first drive"
Case "Second group to check for"
objNetwork.MapNetworkDrive "Y:", "\\UNC path to second drive"
' Repeat until bored...
End Select
Next
' ---------------------

This discussion is closed to new replies.