+ Post New Thread
Results 1 to 10 of 10
Windows Thread, NETLogon Folder in Technical; Whenever a user logs on the NETLOGON folder appears. I'm stumped as to why this happens. Can anyone tell me ...
  1. #1

    Join Date
    Jun 2008
    Posts
    719
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31

    NETLogon Folder

    Whenever a user logs on the NETLOGON folder appears. I'm stumped as to why this happens. Can anyone tell me how I can prevent this folder appearing when a user logs on to the network?

    Just to mention, when an admin logs on the folder doesn't appear. When a non-administrator logs on (could be teaching staff etc) it appears.

    Any suggestions will be welcomed.

    Many thanks in advance.

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,038
    Thank Post
    888
    Thanked 1,727 Times in 1,490 Posts
    Blog Entries
    12
    Rep Power
    453
    I had this issue a while back.

    On the logon scripts in both group policy and the individual user accounts, check there are no spaces at the end or begging on the script path. Also check there is a field simply with a space in and nothing else.

    Z

  3. Thanks to FN-GM from:

    Chuckster (20th August 2008)

  4. #3

    Join Date
    Jun 2008
    Posts
    719
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    Hi,

    I'm not sure what you mean by the beginning and end of the script path. Could you elaborate more on that, please?

    As far as the filenames go, they have no spaces inbetween them.

  5. #4

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,223
    Thank Post
    874
    Thanked 2,717 Times in 2,302 Posts
    Blog Entries
    11
    Rep Power
    780
    Quote Originally Posted by Chuckster View Post
    Hi,

    I'm not sure what you mean by the beginning and end of the script path. Could you elaborate more on that, please?

    As far as the filenames go, they have no spaces inbetween them.
    He means in the places like the active directory user object profiles tab or in gp where the files are pointed to. I.e. " global.vbs" or "global.vbs " in the logon script box instead of just "global.vbs"

  6. Thanks to SYNACK from:

    Chuckster (20th August 2008)

  7. #5

    Join Date
    Mar 2007
    Posts
    1,784
    Thank Post
    80
    Thanked 293 Times in 224 Posts
    Rep Power
    86
    double check the logon scripts of people who do have this problem and compare them to people that dont have this problem. also check the permissions on any files in the netlogon folder that people will access.

  8. #6

    Join Date
    Jun 2008
    Posts
    719
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    Quote Originally Posted by SYNACK View Post
    He means in the places like the active directory user object profiles tab or in gp where the files are pointed to. I.e. " global.vbs" or "global.vbs " in the logon script box instead of just "global.vbs"
    Oh, right. I've just checked the AD and in the profile tab --> login script path, there was a space. I've removed that space and every user account that now logs onto the network doesn't get the NETLOGON folder popping up.

    Many thanks SYNACK and many thanks to FN-Greatermanchester too!


  9. #7
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,203
    Thank Post
    394
    Thanked 278 Times in 239 Posts
    Rep Power
    74
    Just curious did the script still run when the netlogon folder opened?

  10. #8

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    Depending on how many people you might have with this problem, it sounds like something where a script will work wonders :-)

    the following script queries AD for a list of all users who have a script set for them. It then loops through and checks to see if the script has a space at start or end (checks to see if the trimmed name is not the same as the untrimmed name). If they're different then it resets the script.

    Code:
    sLogFile="C:\temp\problems.csv"
    
    Set oFSO=wscript.createobject("scripting.filesystemobject")
    set oFile=ofso.createtextfile(sLogFile,true)
    Set oRootDSE=GetObject("LDAP://RootDSE")
    sRoot=oRootDSE.Get("DefaultNamingContext")
    
    Set oConn = CreateObject("ADODB.Connection")
    oConn.Provider = "ADsDSOObject"
    oConn.Open
    Set oCommand = CreateObject("ADODB.Command")
    oCommand.ActiveConnection = oConn
    oCommand.properties("Page Size")=100
    
    oCommand.CommandText = "<LDAP://" & sRoot & ">;(&(objectCategory=person)(scriptpath=*));sAMAccountName,scriptpath,distinguishedname;subTree"
    Set oRS = oCommand.Execute
    Do While Not oRS.EOF
      sUsername=oRS("sAMAccountName")
      sLoginScript=ors("scriptpath")
      if sLoginScript<>trim(sLoginScript) then
        wscript.echo sUserName & ",>" & sLoginScript & "<"
        set oUser=getobject("LDAP://" & ors("distinguishedname"))
        oUser.scriptpath=trim(sLoginScript)
        oFile.writeline sUserName & ",>" & sLoginScript & "<"
      end if
      oRS.MoveNext
    Loop
    oFile.close

  11. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,038
    Thank Post
    888
    Thanked 1,727 Times in 1,490 Posts
    Blog Entries
    12
    Rep Power
    453
    Quote Originally Posted by cookie_monster View Post
    Just curious did the script still run when the netlogon folder opened?
    I think he had them set by group policy and the space on the user account was an error.

  12. #10

    Join Date
    Jun 2008
    Posts
    719
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    Quote Originally Posted by cookie_monster View Post
    Just curious did the script still run when the netlogon folder opened?
    The scripts that I had setup in the logon part of the GPO did still run even when the NETLOGON folder popped up.

SHARE:
+ Post New Thread

Similar Threads

  1. NETLOGON folder opens when admin logs on
    By FN-GM in forum Windows
    Replies: 28
    Last Post: 13th March 2008, 10:35 AM
  2. sporadic netlogon service problems
    By browolf in forum Windows
    Replies: 7
    Last Post: 29th February 2008, 04:54 PM
  3. Remove NETLOGON folder
    By robbied69 in forum Windows
    Replies: 7
    Last Post: 15th February 2008, 11:50 AM
  4. Missing Netlogon Service
    By BKGarry in forum Windows
    Replies: 0
    Last Post: 30th June 2006, 09:42 AM
  5. Netlogon error
    By dezt in forum Wireless Networks
    Replies: 20
    Last Post: 9th February 2006, 04:01 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •