home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Technical Support
Ask a Tech Support Question (free)!

W2K logon script problem

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2506
Discussions: 201,011, Posts: 2,380,100, Members: 246,377
Old September 13th, 2002, 02:54 PM   Digg it!   #1 (permalink)
addicted
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 6,103
W2K logon script problem

Does anyone successfully use AD's User logon script (defined in GP at the OU level) successfully?

I created a simple test logon script but it doesn't work.

Script is...
Quote:
' declare variables
dim wshnetwork

' suppress error messages
on error resume next

' set reference to WSH network object
set wshnetwork=wscript.createobject("wscript.network")

' remove network drive in case it is already in use
wshnetwork.removenetworkdrive "m:"

' add network drive
wshnetwork.mapnetworkdrive "m:","\\ironman\data"

' add connection to a network printer
wshnetwork.addwindowsprinterconnection "\\godzilla\MO-LJ5000"

When I manually logonscrpt.vbs at the workstation under this test domain user it maps the drives and installs the printer. So the script itself seems okay.

This logonscrpt.vbs is replicating to all DCs so that is not a problem.

I checked the GP at the workstation with GPresults.exe. The related output is:
================================================== =============
The user received "Scripts" settings from these GPOs:

Acct logon script
Revision Number: 4 (Active Directory) 4 (Sysvol)
Unique Name: {2FD1B99A-B338-4538-84C8-F409494079E4}
Domain Name: xxxxx.com
Linked to: Organizational Unit (OU=xxxxx,OU=xxxxx,DC=xxxxx,DC=com)


Logon scripts specified in: Acct logon script
\\xxxxx.com\SysVol\xxxxx.com\scripts\logonscrpt.vb s


================================================== =============
...so it shows the user/workstation is getting the script information.

Help! Why doesn't this <<biting tongue here>> thing work!
DVNT1 is offline   Reply With Quote
Old September 13th, 2002, 03:06 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,402
I'm assuming that wonderful most useful (LOL yeah right) tool eventviewer shows nothing?

try to run the logonscript from command line to see if it gets errors that way

C:\>cscript logonscript.vbs
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old September 13th, 2002, 03:19 PM     #3 (permalink)
addicted
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 6,103
Copied the script locally and ran it with the cscript logonscrpt.vbs, worked fine, no errors.

Did it again but from the sysvol location (same as logon script does) and worked fine again, no errors.

Event viewer does not show any errors. Did show the successful manual run when it copied the printer drivers.
DVNT1 is offline   Reply With Quote
Old September 13th, 2002, 05:39 PM     #4 (permalink)
addicted
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 6,103
Figured it out!


In the GP I had to set User Configuration|Administrator Templates|System|Logon/Logoff|Run Scripts syncronously to Enabled


This may have something to do with the fact I have the Novell Client32 and related logon scripts running too.
DVNT1 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3137)
‘Rogue’ or ‘Rouge’? (10)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (6)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (14)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
windows vista security holes (19)
[F@H SPAM 11/16/09] ! 1/2 months to.. (43)
windows 7 problem (7)
Recent Discussions
Please Help. (1)
winrar decompresses, but video gone (0)
Advice for stopping IRQ BSOD is win7 (0)
Foxconn Blackops x48 MoBo (6)
downloading error for Creative prodik.. (0)
Outputing 1080p from my PC to my 720p.. (1)
Need idiot-proof help for building a .. (3)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (43)
Computer shutting down on its own (7)
Hp Artist Edition + Matching Bag (1)
cant access the internet (1)
COD radeon problems (0)
Browsers wont load websites (4)
Unallocated Space (3)
Size after cutting 700Mb file is 2.5 .. (1)
Blackberry Bold 9000 (0)
Can't open Word (13)
Rar volume (number 7) (1)
System restore :) (1)
Laptop with wireless problem. (14)
Looking for new motherboard (2)
add ram to existing (4)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)


All times are GMT -4. The time now is 06:49 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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