Koozali.org: home of the SME Server

Netlogon/Loginscript Problems

Offline mjlyon

  • *
  • 17
  • +0/-0
Netlogon/Loginscript Problems
« on: June 04, 2009, 04:42:54 PM »
Hello All,

I've installed the loginscript contrib and have set up a login script so I can, at first, map the home drives as it was being done before.

Now, no drives are being mapped through the logon process.  Obviously, I can easily map once logged on within Windows, but the shares are not being automatically mapped.

My loginscript in server-manager shows:

@ECHO OFF

net use N: /home

The drive letter selected for 'home' is N


Offline jester

  • *
  • 496
  • +1/-0
Re: Netlogon/Loginscript Problems
« Reply #1 on: June 04, 2009, 07:59:32 PM »
I don't know about that contrib, but the line used for networkdrive mapping is wrong. It should be something like:

\\<YourServerName>\<ibayName>

Please do a search on the forums or Google for the correct syntax and options.

Offline versa

  • ****
  • 109
  • +0/-0
Re: Netlogon/Loginscript Problems
« Reply #2 on: June 04, 2009, 11:54:11 PM »
I have the contrib installed, mine looks like this

Code: [Select]
@ECHO OFF
ECHO Welcome to the TuamWan network
ECHO -----------------------------------
ECHO.

#ifg user
REM Map public-share iBay for users:
NET USE P: \\server\public-share
#endif
and I have set my home drive in the dropdown panel under the script window as U

It seems to work fine when I log in
I assume you are using XP Pro and have sme set as the domain controller and have sucessfully joined the domain.
......

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Netlogon/Loginscript Problems
« Reply #3 on: June 05, 2009, 04:42:02 AM »
As versa points out "home" already is mapped via the contrib, so you can't have that on the script.
For all the rest of the ibays, use the script.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Netlogon/Loginscript Problems
« Reply #4 on: June 06, 2009, 10:48:42 AM »
As versa points out "home" already is mapped via the contrib, so you can't have that on the script.
For all the rest of the ibays, use the script.
Home is already mapped via the core samba settings, you do not even need the netlogon.bat script for that on SME Server.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Re: Netlogon/Loginscript Problems
« Reply #5 on: June 07, 2009, 04:58:13 PM »
mjlyon

I'm gathering all your doing is just setting your home drive to something other then the default Z that SME sets it to.

Whether you want SME to control that or the logon script ... you have to join the domain before your drives show up ... sometimes it may take 2 restarts of the computer to kick start it even.

If all you want is a workgroup .. then map your drives manually and don't use the logon contrib as it won't do it for you.

Regards,

Tib

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Netlogon/Loginscript Problems
« Reply #6 on: June 07, 2009, 09:59:33 PM »
I'm gathering all your doing is just setting your home drive to something other then the default Z that SME sets it to.
If OP is looking for that then that can easily be done using a configuration db change see: http://wiki.contribs.org/DB_Variables_Configuration#Samba_global_settings_.28smbd.29 for LogonDrive.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)