Re: logon script not working - need hlep

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 12/27/04


Date: Tue, 28 Dec 2004 01:10:56 +1100


"John Leonard - Sage" <sagegrp@adelphia.net> wrote in message
news:uqxYvpB7EHA.4028@TK2MSFTNGP15.phx.gbl...
> I am trying to use the properties in the Profile of an account. logon
> script.
>
> Having a problem with Net Use with Windows 2003 Server NETLOGON.
> > >>
> > >> I share the psdata folder on the server
> > >>
> MY bat files are in %windir%\SYSVOL\sysvol\<Domain Name>\scripts.
>
> > >> I have roaming profiles (they show up ok) and have setup the logon
> script as folows:
> > >> pslogon.bat.
> > >>
> > >> My pslogon.bat is: ( located in %windir%\SYSVOL\sysvol\<Domain
> > >> Name>\scripts.)
>
> > >> @echo off
> > >> net use s: \\gateway\psdata
> > >> exit
> > >>
> > >> I am expecting to see the mapped dive S: on the client, after logon..
> > >> This will not work?
> > >>
>
> I can see the NETLOGON from the client MY Network ... and from the server
> using NET SHARE
>
> If I run the net use command on the client - it works great.
>
> > >> What am I doing wrong???

There are a few things you need to become aware of:
1. The physical location of your logon script is not important.
  What matters is that the logon script resides in the "netlogon"
  share of your server. Does it?
2. Did you specify pslogon.bat in your users' profiles?
3. Placing the "exit" command after the "net use" command is not
    only unnecessary; it also deprives you of any diagnostic feedback.
    A far better way would be to code the script like so during
    the debugging phase:
@echo off
echo Starting the logon script
net use s: \\gateway\psdata
pause

You will now have plenty of time to watch what's going on.



Relevant Pages

  • Re: Clearing Connections For A Specific Time
    ... You'll have to write a script which you run at a specific time ... Matthew Harris has posted a command file that kills all sessions, ... "change logon /disable". ...
    (microsoft.public.windows.terminal_services)
  • Re: Users last logon info from logon script
    ... I put this line in the users logon script: ... If I run the script manually, it shows the last logon time. ... I guess it is because Windows update the lastlogon attribute once a user ... Then, for each Domain Controller, ADO is used to search the ...
    (microsoft.public.security)
  • Re: slow logon
    ... in the logon time have been reduced so far. ... update the time for the clients that talk to the dc as the logon server. ... start up script in AD to apply updates to the clients machines which is ...
    (microsoft.public.windows.server.active_directory)
  • Constraining Group Policy
    ... I'm currently trying to rollout outlook 2003 to all of the machines in ... want to have to run the script on the command line for each user. ... The problem is that the user profile doesn't get created until the user ...
    (microsoft.public.windowsxp.security_admin)
  • Logon Script Causing Laptops To Hang - Problems in script?
    ... I'm using the following script to map drives, ... functions when users logon to our domain. ... 'Disconnects Drives This assures everyone has the same drive mappings. ... objNetwork.MapNetworkDrive strTrainDrv, strPath ...
    (microsoft.public.scripting.vbscript)