omb
asked on
Customise login script for users & security groups
We have a SBS 2003 server. I would like to customise a single login script to do the following:
1. For specific users, map a certain drive to a share
2. For members of specific security groups, map a certain drive to a share
3. For all domain users, map certain printer shares.
Many thanks for your help.
1. For specific users, map a certain drive to a share
2. For members of specific security groups, map a certain drive to a share
3. For all domain users, map certain printer shares.
Many thanks for your help.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Haven't done anything with special characters. It wouldn't surprise me if a command based script cannot handle characters not found in the US based character set. That would mean either converting the group to have standard characters in it, or using another scripting language that can support those characters. KIX might - but I have never used that.
You could also do a work around where you have two groups - one with your preferred name which is used for setting permissions etc and an identical group that is used just for the script. As long as both groups were kept in sync (manually I am afraid) then anything based on ifmember would work.
It might be something that you want to browse through the German language newsgroups - as you cannot be the first person to have this problem. Someone in there might have another solution.
Simon.
You could also do a work around where you have two groups - one with your preferred name which is used for setting permissions etc and an identical group that is used just for the script. As long as both groups were kept in sync (manually I am afraid) then anything based on ifmember would work.
It might be something that you want to browse through the German language newsgroups - as you cannot be the first person to have this problem. Someone in there might have another solution.
Simon.
ASKER
I've come across a slight problem - how can I get characters such as ä, ö and ü accepted in a login script? We are based in Germany and work with German operating systems. Naturally, some of the groups / users have these characters within them and I am not sure how to build them within the script - just typing:
ifmember Geschäftsführung
does not work (even when putting in quotes).
Many thanks again for your help.