Re: logon script not working - need hlep

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: John Leonard - Sage (sagegrp_at_adelphia.net)
Date: 12/28/04


Date: Tue, 28 Dec 2004 16:31:56 -0500

Thanks - I found my problem.

I had installed Windows 2003 development tools on the client and it changed
the environment path.

"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:egsDk3B7EHA.2012@TK2MSFTNGP15.phx.gbl...
>
> "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: mapped drives and desktop shortcut all a group of users
    ... I added the logon script in the user config area of the default domain GPO ... I updated group policy on the DC and the workstation I was working on ... A profile does not seem to run when you use a policy on an Organizational ... As mapped drives are generally profile specific, ...
    (microsoft.public.windows.server.active_directory)
  • Re: mapped drives and desktop shortcut all a group of users
    ... I added the logon script in the user config area of the default domain GPO ... I updated group policy on the DC and the workstation I was working on ... A profile does not seem to run when you use a policy on an Organizational ... As mapped drives are generally profile specific, ...
    (microsoft.public.windows.server.active_directory)
  • Re: RDP logn script override?
    ... I'm guessing you want to change the user account settings as opposed ... When you set the policy on the computer, ... setting if the computer will allow a roaming user's profile to be downloaded ... >> What this does is apply a different logon script when the users log on to ...
    (microsoft.public.scripting.vbscript)
  • Re: a way to set source for capinst.exe?
    ... I was just hoping for a legacy logon script solution that would work like ... Every morning if anything is in there I push the client to ... Puts ccmsetup and client.msi local on the client ... >>>> Client.msi file download and the client installation are both ...
    (microsoft.public.sms.admin)
  • Re: Script Execution Over Network
    ... a remote batch file is executed that checks if the ... we know that the client has the latest version of the ... Of course there is the bandwidth required to copy the logon script. ... more bandwidth is required to copy a program than to execute the program. ...
    (microsoft.public.scripting.vbscript)