0

Is it possible to run user logon script stored on a specific machine in domain, without using GPO?
I tried to set logon script for AD user as \\machine.domain.local\share\script.bat or cmd /k \\machine.domain.local\share\script.bat but it doesn't work.
there are no sessions at fsmgmt on script-storage-machine when user log in
eventvwr checked - no related events

Seriy_A
  • 1
  • 1

1 Answers1

1

User Logon Script attribute does not support absolute UNC paths. It also does not support CMD commands. The way it works, it will look for the script in NETLOGON share and try to run it.

If you really need to keep your scripts on non-DC server, just put a launcher script to your NETLOGON share. The launcher script can call another script located anywhere

Launcher script example

@echo off
call \\machine.domain.local\share\script.bat
J-M
  • 1,930
  • 1
  • 11
  • 17