login scripts help
Results 1 to 10 of 10

Thread: login scripts help

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    190

    login scripts help

    Hi! i'm trying to connect my w9x users to autorun a login script whenever they login to the domain.
    I've place the scripts in c:\winnt\system32\repl\imports\scripts
    but i've shared the scripts folders to have full access for all domain users also what is the path i should user for my user profile?
    Thks in advance

  2. #2
    Registered User emr's Avatar
    Join Date
    Sep 2001
    Location
    Amsterdam
    Posts
    1,312
    Quote Originally Posted by kababoom
    Hi! i'm trying to connect my w9x users to autorun a login script whenever they login to the domain.
    I've place the scripts in c:\winnt\system32\repl\imports\scripts
    but i've shared the scripts folders to have full access for all domain users also what is the path i should user for my user profile?
    Thks in advance
    Just the name of the script file in the user profile. eg. script.bat

    emr

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    190
    Quote Originally Posted by emr
    Just the name of the script file in the user profile. eg. script.bat

    emr
    thks for the info
    just one more question can i just share the scripts folder or i should share the whole "winnt\system32\repl\import\scripts" on the server end?

  4. #4
    Banned Ya_know's Avatar
    Join Date
    Jun 2001
    Posts
    10,692
    Quote Originally Posted by kababoom
    thks for the info
    just one more question can i just share the scripts folder or i should share the whole "winnt\system32\repl\import\scripts" on the server end?
    You never want people to have full control of this directory, only domain admins should have access like that, everyone else should have read only. If you manually created a share, delete it and use the system default share. There should be a default "netlogon" share, and if this is the domain controller, it will be the Export directory, not the import directory that is shared, and used for logon scripts. BDC's will use the Import directory as the shared netlogon share. You also need to (wait, what Network OS is this, I presume NT4, or are you 2k/2003? If so that's going to change the location). Anyway, you also need to setup replication for the scripts folder in Server Manager, the PDC will need to be setup to export, and not import, and in the server list, list all the BDC's you want to copy these scripts to. Then, for the BDC's in server manager replication, replication needs to be the reverse...setup to import, not export, and put the PDC in the list for where the script comes from, do this for all BDC’s.

    Then, anytime you want to update a script, you are to edit or replace the scripts in the export (netlogon) of the PDC only, and typically in less then 15 minutes replication will force it to the BDC's...

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    190
    Quote Originally Posted by Ya_know
    You never want people to have full control of this directory, only domain admins should have access like that, everyone else should have read only. If you manually created a share, delete it and use the system default share. There should be a default "netlogon" share, and if this is the domain controller, it will be the Export directory, not the import directory that is shared, and used for logon scripts. BDC's will use the Import directory as the shared netlogon share. You also need to (wait, what Network OS is this, I presume NT4, or are you 2k/2003? If so that's going to change the location). Anyway, you also need to setup replication for the scripts folder in Server Manager, the PDC will need to be setup to export, and not import, and in the server list, list all the BDC's you want to copy these scripts to. Then, for the BDC's in server manager replication, replication needs to be the reverse...setup to import, not export, and put the PDC in the list for where the script comes from, do this for all BDC’s.

    Then, anytime you want to update a script, you are to edit or replace the scripts in the export (netlogon) of the PDC only, and typically in less then 15 minutes replication will force it to the BDC's...
    Hi! i'm on w2k server there seems to be a netlogon share folder can i put the scripts there?

  6. #6
    Banned Ya_know's Avatar
    Join Date
    Jun 2001
    Posts
    10,692
    Quote Originally Posted by kababoom
    Hi! i'm on w2k server there seems to be a netlogon share folder can i put the scripts there?
    This is why I complained way back when they merged the 2000 and NT4 forums together. They really should be seporat forums so conflicting information isn't offered by mistake!!! (is anybody listening???)


    Anyway, off the top of my head I don't know if scripts and file replication is the same between 2000 and 2003, I have 2003, so I can only go from that example, so play this by ear. The Netlogon share is C:\WINDOWS\SYSVOL\sysvol\domainname.com\SCRIPTS
    In you're case the system root is going to be Winnt, but I don't know if you will have a domain name (this is the custom name of your domain) under the sysvol...best thing to do is look under computer management for the server and look under the shared directories column to find the exact path, but the short answer is yes, use the netlogon share. Don't change any default permissions to the share, if you've already changed them, you want to go back, admin's have all, everyone has read only.

    Replication is different in 2k then in NT. Read up on this for a better perspective:
    Configuration and operational recommendations for the File Replication service in Windows Server 2003 and Windows 2000 Server

  7. #7
    Registered User corturbra's Avatar
    Join Date
    Oct 2000
    Location
    Just to the Right of Sanity..
    Posts
    1,424
    Yeah - what Ya_know said.... and someone please sort out different forums for 2000 and NT.... they are completely different operating systems!!!

  8. #8
    Registered User
    Join Date
    Oct 2002
    Posts
    190
    thks for all the info & feedback
    so can i conclude as long as i put my scripts in the netlogon folder;
    all my win9x users can login wif scripts as long as i put the scripts name instead of scripts path in the user logon profile?
    eg: under user profile
    script logon : script.bat (correct method)

    e.g under user profile
    script logon : \\WINNT\SYSTEM32\REPL\IMPORT\SCRIPTS\script.bat (wrong method)

  9. #9
    Banned Ya_know's Avatar
    Join Date
    Jun 2001
    Posts
    10,692
    Yes. Just remember that 9x responds to batch commands differently or not at all compared to batch commands that work in NT/2k/xp. So that said, you may have to reword a few things if the scripts run, but not correctly.

  10. #10
    Registered User
    Join Date
    Oct 2002
    Posts
    190
    Quote Originally Posted by Ya_know
    Yes. Just remember that 9x responds to batch commands differently or not at all compared to batch commands that work in NT/2k/xp. So that said, you may have to reword a few things if the scripts run, but not correctly.
    thks for all ur help finally got it to work

Similar Threads

  1. Where'd the login scripts go?!?
    By drewmaztech in forum Windows NT/2000
    Replies: 1
    Last Post: January 29th, 2003, 03:55 PM
  2. Netware 6 - Login Script's
    By D@ve in forum Novell
    Replies: 3
    Last Post: April 23rd, 2002, 03:59 AM
  3. Login scripts?
    By rblockmon in forum Novell
    Replies: 2
    Last Post: April 5th, 2001, 08:29 PM
  4. [RESOLVED] WinFrame1.7 and Novell login scripts
    By mthames in forum Tech-To-Tech
    Replies: 0
    Last Post: April 16th, 2000, 09:54 PM
  5. [RESOLVED] Login scripts work intermittently
    By Xavier in forum Tech-To-Tech
    Replies: 2
    Last Post: April 5th, 2000, 08:15 AM

Bookmarks

Posting Permissions

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