Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Users logon script fails without error

Reply
Thread Tools Display Modes

Re: Users logon script fails without error

 
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      10-22-2008

"gumby" <> wrote in message
news:...
>
> Hi all,
>
> I'm having issues with a simple logon script I am trying to run. The
> script simply removes existing network shares and then adds some network
> shares. I have put the script at \\domain.com\NETLOGON\LogonScript.vbs
> an that is what I put at the users User Properties->Profile->Login
> Script input box.
>
> The domain shares however never get added when the user logs in. I can
> run \\domain.com\NETLOGON\LogonScript.vbs from Start->run from the
> client PC without any problems. The server can also run the script
> without problems.
>
> I have also tried setting the users Login Script setting on the domain
> controller to a local file however the result is the same.
>
> We are running Windows Server 2003 Enterprise and the client is Windows
> XP Pro.
>
> Any help anyone could offer would be greatly appreciated.
>
>
> --
> gumby
> ------------------------------------------------------------------------
> gumby's Profile: http://forums.techarena.in/members/gumby.htm
> View this thread: http://forums.techarena.in/server-scripting/1059023.htm
>
> http://forums.techarena.in
>


If the logon script is saved in the location you specified, you should enter
"LogonScript.vbs" on the Profile tab of ADUC (without the path information).
For more, see this link:

http://www.rlmueller.net/LogonScriptFAQ.htm

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
 
 
 
Al Dunbar
Guest
Posts: n/a

 
      10-22-2008

"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:...
>
> "gumby" <> wrote in message
> news:...
>>
>> Hi all,
>>
>> I'm having issues with a simple logon script I am trying to run. The
>> script simply removes existing network shares and then adds some network
>> shares. I have put the script at \\domain.com\NETLOGON\LogonScript.vbs
>> an that is what I put at the users User Properties->Profile->Login
>> Script input box.
>>
>> The domain shares however never get added when the user logs in. I can
>> run \\domain.com\NETLOGON\LogonScript.vbs from Start->run from the
>> client PC without any problems. The server can also run the script
>> without problems.
>>
>> I have also tried setting the users Login Script setting on the domain
>> controller to a local file however the result is the same.
>>
>> We are running Windows Server 2003 Enterprise and the client is Windows
>> XP Pro.
>>
>> Any help anyone could offer would be greatly appreciated.
>>
>>
>> --
>> gumby
>> ------------------------------------------------------------------------
>> gumby's Profile: http://forums.techarena.in/members/gumby.htm
>> View this thread: http://forums.techarena.in/server-scripting/1059023.htm
>>
>> http://forums.techarena.in
>>

>
> If the logon script is saved in the location you specified, you should
> enter "LogonScript.vbs" on the Profile tab of ADUC (without the path
> information). For more, see this link:
>
> http://www.rlmueller.net/LogonScriptFAQ.htm


If you still have problems, another approach you could take would be to set
your logon script to "LogonScript.cmd" (co-located in the NETLOGON folder
with your original .vbs file), containing the following batch script:

@echo off
echo/starting script...
cscript //nologo "%~dp0LogonScript.vbs"
pause

Then you could write to the console window using wscript.echo statements
that will tell you the state of the script.

/Al


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dumping logon name and logon script values to a text file - blank logon script field Phil McNeill Scripting 2 08-14-2008 04:13 PM
How to run a script when users logon due VPN pieter Windows Small Business Server 10 08-27-2007 08:26 PM
GP Logon Scripts VS Logon Script In users Properties AJ Active Directory 1 07-10-2006 09:12 PM
Admin -> User Logon script fails Ascnet Windows Small Business Server 3 03-07-2005 05:55 PM
logon script with lnk works than fails on second try Peter Serko Scripting 2 08-14-2003 10:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59