Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Script files  (Read 6585 times)

0 Members and 1 Guest are viewing this topic.

jmuench

  • Guest
Script files
« on: April 05, 2004, 12:50:03 PM »
I am trying to write a script for a NT4.0 server to map drives for users, depending on what groups they are members of.  I cannot find the proper syntax for these IF statements and group names.  

For example
IF member == group net use h: \\servername\dir

where member == group means to "If the member logging in is in this group"

I am unsure of the syntax for member == group.

Can anyone help me?

natesneat2000

  • Guest
Re: Script files
« Reply #1 on: April 12, 2004, 03:09:42 PM »
I don't think that will work, but try the tool mentioned in this article:
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5869
hope that helps, GL (good luck cuz im lazy now ;D)

mims1979

  • Guest
Re: Script files
« Reply #2 on: September 14, 2004, 02:45:24 PM »
I'd say just have the batch file call at vbs that would give you a lot more capabilities

For instance, to map a drive:

Dim net, shell
set net = Wscript.CreateObject("Wscript.Network")
set shell = Wscript.CreateObject("Wscript.Shell")
net.MapNetworkDrive "X:", "\\computer\share", true, net.username

and there are hundreds of sites out there with the functions to check membership in WSH.