Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

logon scripts

Featured Replies

Alright so i have a basic mapped network drive batch file that works.

example:

net use z: \\server\share /persistent:no

and the batch file works, i've tested it and it works how i want it to, it's specified in ADUC, but it doesn't run when i login. i've done gpupdate /force, and everyone has read perms, but nothing's working. i've rebooted and nothing's working.


where is the group policy applied to in conjunction to what OU the users are in. Apply the script to authenticated users and over the OU the users are in and see if that works.. if it does, go back from there until you have it applied at the spot you want it.

is the path of the script in the user properties pointing to a local drive (c:\login.bat) or to a UNC that everyone has access to(\\server\share\login.bat)

and when you log on to the workstations can you take that same path that you typed in user properties and run it from the workstation?

does the event viewer(eventvwr) say anything. Normally, it a script is configured in the user properties and doesnt run, it will normally tell you why

Dns could be a problem use IP's in the UNC paths. also make sure permissions to the directory are correct. hope it works!

  • Author

i changed the unc path to IP, still nothing, checked the perms and yea...nothing. thanks for the suggestions tho.

Does the login script contain anything else besides the drive mapping? If so, does it work?

You might want to try to add some simple debugging info like echoing the command and output to some file or just echo something to a file to see if the file is even parsed.

Hi - long time listener, first time caller here :hello: .....

How many DCs do you have? And are you sure the change has replicated?

Can you check with ADUC against the DC that authenticated them?

Oh, and if you're specifying the logon script through ADUC's profile tab, is it just the filename that you've put in there, or the full UNC path?

If it's the full UNC path, can you try changing it to just the filename (eg logon.bat, rather than \\192.168.2.1\share\logon.bat) - and copying the file to sysvol\sysvol\domain.com\scripts folder?

Check that it appears in \\DC-Server\netlogon - and give it time to replicate to whichever DC is going to be authenticating them.

I *think* - but I don't *know* - that you can't specify full paths in the ADUC profile tab's field. If you want to point to a script outside of \\DC-Server\netlogon - you need to do it via Group Policy (and if your clients are NT/9x) - it won't run the script on them.

  • Author

1 domain controller, so no replication is taking place, i had the full unc path in there but i'll try just the file name.

EDIT: That worked, thanks a lot for all your help and replies!

Edited by luke.mccormick

  • 2 weeks later...
UNC and yes

there is NO need for UNC path for logon scripts, just write the script name like logon.vbs on the user profile tab and it should work ... scripts MUST reside inside NETLOGON folder within your SYSVOL share

Edited by klasika

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.