Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

computer's don't get logon script

Posted on 2010-08-22
8
Medium Priority
?
577 Views
Last Modified: 2012-06-21
Hi, I have a huge problem:
I use AD 2008, & i Have a liitle logon script that map network drives:

On Error Resume Next

Set objSysInfo = CreateObject("ADSystemInfo")
Set objNetwork = CreateObject("Wscript.Network")

strUserPath = "LDAP://" & objSysInfo.UserName
Set objUser = GetObject(strUserPath)

For Each strGroup in objUser.MemberOf
    strGroupPath = "LDAP://" & strGroup
    Set objGroup = GetObject(strGroupPath)
    strGroupName = objGroup.CN

    Select Case strGroupName
        Case "IT"
                  objNetwork.MapNetworkDrive "I:", "\\file server\IT"

when i create a GPO - user logon script & link it - i don't get any drive...

i check rsop - & see that i get the policy - but i can't see network drive,
this happen in all my computers in the company

please assist,

it's work until last week, do you know update that can distroy somthing ?
0
Comment
Question by:BZNUSER
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
8 Comments
 

Author Comment

by:BZNUSER
ID: 33495745
in the events - i get EventID 1000
Could not execute the following script \\my dc\logon.vbs. The System cannot find the file specified
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 33495824
Were any changes made between last week and this week.  Does this happen to every user on every machine or is it isolated.

Have you verified the script exists in all the sysvols and replication is working.

On another note you can also start using group policy preferences to map drives...move away from logon scripts

http://blogs.technet.com/b/askds/archive/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership.aspx

Thanks

Mike
0
 

Author Comment

by:BZNUSER
ID: 33495864
nothing changed - or i don;t know what was changed,
this very steange, if i run 2 line script from the pc:
Set objNetwork = CreateObject("Wscript.Network")
            objNetwork.MapNetworkDrive "I:", "\\server\InternalMarketing"
it's work
but if i publish it via gpo logon script it's not work on all 150 pc's
please assist
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 

Author Comment

by:BZNUSER
ID: 33495908
i try to use using group policy preferences & get event id 1517
0
 
LVL 33

Assisted Solution

by:digitap
digitap earned 2000 total points
ID: 33496403
0
 
LVL 33

Accepted Solution

by:
digitap earned 2000 total points
ID: 33496419
If you want to use the script, you may need to get better logging on the workstations to get something better than the Event 1000.  Use the information below to get that information, then post here for us to look through.

Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system
Name: VerboseStatus
Type: REG_DWORD
Value: 1 default=0
Note: Status messages will not display if the following key is present and the value is set to 1: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableStatusMessages

2) Reboot disconnected.  Note the time.  Watch the status messages to see where it is hanging.
3) After it finally boots, check the Event Log for relevant messages that were logged during the boot process and post them here if you can't identify the problem from the verbose messages and Event log errors.


Having problems with login scripts and Group Policies? You can enable verbose logging to track all changes and settings applied using Group Policy and its extension to the local computer and to users who log on to the computer. The log file, userenv.log, will be written into the %windir%\debug folder. This folder is a hidden folder. To enable verbose logging (Userenv.log):

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Windows NT\Current Version\Winlogon
Name: UserenvDebugLevel
Type: REG_DWORD
Set UserenvDebugLevel=30002 is for verbose logging, UserenvDebugLevel=30001 is for errors and warnings only, and UserenvDebugLevel=30000 logs nothing.
0
 
LVL 33

Assisted Solution

by:digitap
digitap earned 2000 total points
ID: 33532048
The author has requested this question be closed for reason of, "no answer".  There have been answers and my last comment was for log information, but I've received no feedback from the author.

Suggesting the author engage in a discussion about the original challenge or delete without refund.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question