Author Topic: Add-on: Logon Script Generator  (Read 6932 times)

bmathis

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Add-on: Logon Script Generator
« on: May 19, 2008, 07:49:46 am »
I think it would be a great idea to have a module that would help generate a logon script based on user/group setting the proper permissions, mapping drives, and adding printers. Its not hard to write your own, but it would help to automatic ebox even more than it already is.

Thanks for a great product!  8)

JO3RI

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Add-on: Logon Script Generator
« Reply #1 on: August 21, 2008, 08:35:30 am »
I am about to join the computers to the domain. I used to have login scripts on my old Debian installation and I want to use them again.

I'll be putting it myself in to samba config (just need to find out where) and then I'll post a howto with a link in this post.

BUT INDEED, logon scripting would be a nice feature.

PS: I use the little program: ifmember.exe to decide what user is in what group to map network drives. The loginscript then looks like this:

Code: [Select]
# SBS_LOGIN_SCRIPT
# DOMAIN: TEST
# SERVER: EBOX-PDC

:First we remove all networkdrives
net use * /d /y

:Now we check if the user is a member of the group "lan members"
\\ebox-pdc\netlogon\ifmember "TEST\lan members"
if not errorlevel 1 goto userend
net use p: "\\ebox-pdc\catalogus bib"  /y
net use s: "\\ebox-pdc\FILES_TEST"  /y
net use t: "\\ebox-pdc\GLOBAL_TEST"  /y
net use y: "\\ebox-pdc\COMPANY_TEST" /y

:user2
\\ebox-pdc\netlogon\ifmember "TEST\lan gantt"
if not errorlevel 1 goto user3
net use u: "\\server2\GANTT_TEST" /y

:user3
\\ebox-pdc\netlogon\ifmember "TEST\lan money"
if not errorlevel 1 goto userend
net use n: "\\server3\MONEY_TEST" /y

:userend

THat way you only will have the networkdrives if you are member of the according group.

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Add-on: Logon Script Generator
« Reply #2 on: August 21, 2008, 09:24:22 am »
There are other users talking about this topic http://forum.eboxplatform.com/index.php?topic=295.0.

:)
My secret is my silence...