| Author |
Map network drive with logon.bat
|
|
|
| Windows newbi !!
I'm working with Windows 2000 server and trying to map network drive with
logon script. For general map network drive I use:
net use s: \\tcbs\share (tcbs is server name and share is share name)
However, I don't know how to map a drive just for people who belong to
certain group. In netware the command should be:
if member of "technical_group" then map t:= tcba\vol1:\techinfo
(the above command means if people who belong to technical group will have
access drive t: on tcba server - techinfo directory)
What command I should put in windows logon.bat to get similar result?
Thanks in advance
| |
| Andy Barkl [MVP] 2005-07-27, 8:01 pm |
| "Jimmy" <jimmy4b@sbcglobal.net> wrote in message
news:YyYfd.1880$fC4.918@newssvr11.news.prodigy.com...
> Windows newbi !!
>
> I'm working with Windows 2000 server and trying to map network drive with
> logon script. For general map network drive I use:
>
> net use s: \\tcbs\share (tcbs is server name and share is share name)
>
> However, I don't know how to map a drive just for people who belong to
> certain group. In netware the command should be:
>
> if member of "technical_group" then map t:= tcba\vol1:\techinfo
>
> (the above command means if people who belong to technical group will have
> access drive t: on tcba server - techinfo directory)
>
> What command I should put in windows logon.bat to get similar result?
>
> Thanks in advance
You can add the command you've created to a logon.bat file as you specified
and call it from the users' account profile tab.
| |
|
| You mean that regular users run logon.bat while technical user group will
run technical.bat (far example). The content of technical.bat includes
logon.bat plus any commands we specify for technical group. Right?
"Andy Barkl [MVP]" <abarkl@community.nospam> wrote in message
news:B1Zfd.120910$Lo6.75027@fed1read03...
> "Jimmy" <jimmy4b@sbcglobal.net> wrote in message
> news:YyYfd.1880$fC4.918@newssvr11.news.prodigy.com...
with[color=blue]
have[color=blue]
>
> You can add the command you've created to a logon.bat file as you
specified
> and call it from the users' account profile tab.
>
>
| |
| Andy Barkl [MVP] 2005-07-27, 8:01 pm |
|
"Jimmy" <jimmy4b@sbcglobal.net> wrote in message
news:tjZfd.1903$fC4.83@newssvr11.news.prodigy.com...
> You mean that regular users run logon.bat while technical user group will
> run technical.bat (far example). The content of technical.bat includes
> logon.bat plus any commands we specify for technical group. Right?
Correct!
> "Andy Barkl [MVP]" <abarkl@community.nospam> wrote in message
> news:B1Zfd.120910$Lo6.75027@fed1read03...
> with
> have
> specified
>
>
| |
|
| Thanks Andy
"Andy Barkl [MVP]" <abarkl@community.nospam> wrote in message
news:Fa_fd.120919$Lo6.77590@fed1read03...
>
> "Jimmy" <jimmy4b@sbcglobal.net> wrote in message
> news:tjZfd.1903$fC4.83@newssvr11.news.prodigy.com...
will[color=blue]
>
> Correct!
>
to[color=blue]
>
>
| |
| Outlaw 2005-07-27, 8:01 pm |
|
"Jimmy" <jimmy4b@sbcglobal.net> wrote in message
news:YyYfd.1880$fC4.918@newssvr11.news.prodigy.com...
> Windows newbi !!
>
> I'm working with Windows 2000 server and trying to map network drive with
> logon script. For general map network drive I use:
>
> net use s: \\tcbs\share (tcbs is server name and share is share name)
>
> However, I don't know how to map a drive just for people who belong to
> certain group. In netware the command should be:
>
> if member of "technical_group" then map t:= tcba\vol1:\techinfo
>
> (the above command means if people who belong to technical group will have
> access drive t: on tcba server - techinfo directory)
>
> What command I should put in windows logon.bat to get similar result?
>
> Thanks in advance
>
Personally i would say do some searching and reading for KixScript
(KIx32.exe etc). Since kix can handle group memberships you can make
something like:
If member of "tech"
use k: \\server\share
else
use k: \\server\othershare
Endif
Fun to make a nice script with kix :-))
| |
|
| You will find info (and program) on this powerfull scripting tools on
www.kixtart.org
Hugo
"Outlaw" <NoSpam@nospam-org> a écrit dans le message de
news:4180968f$0$99159$e4fe514c
@dreader14.news.xs4all.nl...
>
> "Jimmy" <jimmy4b@sbcglobal.net> wrote in message
> news:YyYfd.1880$fC4.918@newssvr11.news.prodigy.com...
with[color=blue]
have[color=blue]
>
> Personally i would say do some searching and reading for KixScript
> (KIx32.exe etc). Since kix can handle group memberships you can make
> something like:
> If member of "tech"
> use k: \\server\share
> else
> use k: \\server\othershare
> Endif
>
> Fun to make a nice script with kix :-))
>
>
| |
| TravistheGreat 2005-09-14, 3:34 pm |
| You can use "ifmember.exe" from the resource kit
you need to copy if member to all of your computers, but you can do that through the logon script.
I placed ifmember.exe in a shared location where everyone can access it.
Here is an example of the one we use:
@ECHO OFF
if not exist %windir%\system32\ifmember.exe copy \\server1\SYSVOL\wtwarch.com\scripts\ifmember.exe %windir%\system32
:Wind2
Net Use G: /Delete
ifmember "Accounting"
if not errorlevel 1 goto Timesheet
net use G: \\server1\Wind2 /persistent:no
:Timesheet
ifmember "PGH"
if not errorlevel 1 goto AcctgApps
net use G: \\server1\Wind2 /persistent:no
:AcctgApps
Net Use K: /Delete
ifmember "Accounting"
if not errorlevel 1 goto ComputerAdmin
net use K: \\server1\AcctgApps /persistent:no
:ComputerAdmin
Net Use I: /Delete
ifmember "SysMgr"
if not errorlevel 1 goto quit
Net Use I: \\server1\ComputerAdmin /persistent:no
:quit
Hope this helps
Travis |
|
|
|